-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqgsftptransaction.h
41 lines (35 loc) · 1.61 KB
/
qgsftptransaction.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/***************************************************************************
qgsftptransaction.h
-------------------
begin : May 16, 2008
copyright : (C) 2008 by Marco Hugentobler
email : marco dot hugentobler at karto dot baug dot ethz dot ch
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include <QFtp>
/** A class for synchronous ftp access (using QFtp in background)*/
class QgsFtpTransaction: public QObject
{
Q_OBJECT
public:
QgsFtpTransaction();
~QgsFtpTransaction();
/** Transfers the file with the given Url and stores it into ba
@param ftpUrl url of the file to access
@param pointer to buffer to store file contents
@return 0 in case of success*/
int get( const QString& ftpUrl, QByteArray& ba );
public slots:
void setFinishedFlag( bool error );
private:
QFtp* mFtp;
bool mRequestFinished;
bool mErrorFlag;
};