kpilot/kpilot
internalEditorAction.h00001 #ifndef _INTERNALEDITORACTION_H_
00002 #define _INTERNALEDITORACTION_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 #include "syncAction.h"
00033 #include "syncStack.h"
00034 class QStringList;
00035
00036 class InternalEditorAction : public SyncAction
00037 {
00038 Q_OBJECT
00039
00040 public:
00041 InternalEditorAction(KPilotLink *);
00042 ~InternalEditorAction() {}
00043
00044 protected:
00045 virtual bool exec();
00046
00047 private:
00048 private slots:
00049 void syncDirtyDB();
00050 void syncFlagsChangedDB();
00051 void syncAppBlockChangedDB();
00052 void cleanup();
00053
00054 private:
00055 bool queryUseKPilotChanges(QString dbName, recordid_t id,
00056 PilotRecord*localrec, PilotRecord*serialrec, PilotDatabase*db);
00057 QStringList dirtyDBs;
00058 QStringList::Iterator dbIter;
00059 enum eInternalEditorSyncStatus {
00060 eSyncStarted,
00061 eSyncDirtyDB,
00062 eSyncFlagsChangedDB,
00063 eSyncAppBlockChangedDB,
00064 eSyncFinished
00065 } fInternalEditorSyncStatus;
00066 } ;
00067
00068 #endif
|