-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloudsync.h
43 lines (34 loc) · 897 Bytes
/
cloudsync.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
42
43
#ifndef CLOUDSYNC_H
#define CLOUDSYNC_H
#include <QThread>
#include "SmtpClient-for-Qt/src/SmtpMime"
typedef struct cloudSyncData_s {
bool working;
QString filesDirName;
QString emailDirName;
QString S3Access;
QString S3Secret;
QString S3Bucket;
QString S3URL;
QString emailServer;
QString emailUser;
QString emailFrom;
QString emailDomain;
QString emailPassword;
int emailPort;
QString emailTransport;
QString emailSubject;
QString emailPreamble;
QString emailPostamble;
} cloudSyncData_t;
class cloudSyncThread : public QThread
{
public:
cloudSyncThread();
void run();
cloudSyncData_t data;
};
void cloudSyncWork(cloudSyncData_t* data);
int cloudSyncFilesWork(cloudSyncData_t* data, QStringList &files);
int cloudSyncEmailsWork(cloudSyncData_t* data, QStringList &emails);
#endif // CLOUDSYNC_H