hotSync.h
00001 #ifndef _KPILOT_HOTSYNC_H
00002 #define _KPILOT_HOTSYNC_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 class QTimer;
00036
00037 #include <qstring.h>
00038 #include <qstringlist.h>
00039
00040 #include "syncAction.h"
00041
00042
00043 class TestLink : public SyncAction
00044 {
00045 Q_OBJECT
00046
00047 public:
00048 TestLink(KPilotDeviceLink *);
00049
00050 protected:
00051 virtual bool exec();
00052 } ;
00053
00054 class BackupAction : public SyncAction
00055 {
00056 Q_OBJECT
00057
00058 public:
00059 BackupAction(KPilotDeviceLink *);
00060
00061 enum Status { Init,
00062 Error,
00063 FullBackup,
00064 BackupIncomplete,
00065 BackupEnded,
00066 BackupComplete
00067 } ;
00068 virtual QString statusString() const;
00069
00070 protected:
00071 virtual bool exec();
00072
00073 private:
00077 void endBackup();
00078 bool createLocalDatabase(DBInfo *);
00079
00080 private slots:
00081 void backupOneDB();
00082
00083 private:
00084 QTimer *fTimer;
00085 int fDBIndex;
00086 QString fDatabaseDir;
00087 } ;
00088
00089 class FileInstallAction : public SyncAction
00090 {
00091 Q_OBJECT
00092 public:
00093 FileInstallAction(KPilotDeviceLink *,
00094 const QString &fileDir,
00095 const QStringList &fileNames);
00096 virtual ~FileInstallAction();
00097
00098 virtual QString statusString() const;
00099
00100 protected:
00101 virtual bool exec();
00102
00103 protected slots:
00104 void installNextFile();
00105
00106 private:
00107 int fDBIndex;
00108 QTimer *fTimer;
00109 QString fDir;
00110 QStringList fList;
00111 } ;
00112
00113 class CleanupAction : public SyncAction
00114 {
00115 public:
00116 CleanupAction(KPilotDeviceLink * p);
00117 virtual ~CleanupAction();
00118
00119 protected:
00120 virtual bool exec();
00121 } ;
00122
00123 #endif
This file is part of the documentation for kdelibs Version 3.1.4.