internalEditorAction.h
00001 #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
00033 #include <qstringlist.h>
00034 #include "syncAction.h"
00035 #include "syncStack.h"
00036
00037 class InternalEditorAction : public SyncAction
00038 {
00039 Q_OBJECT
00040
00041 public:
00042 InternalEditorAction(KPilotDeviceLink *, int mode=ActionQueue::BackupMode);
00043 ~InternalEditorAction() {}
00044
00045 protected:
00046 virtual bool exec();
00047
00048 private:
00049 private slots:
00050 void syncDirtyDB();
00051 void syncFlagsChangedDB();
00052 void syncAppBlockChangedDB();
00053 void cleanup();
00054
00055 private:
00056 bool queryUseKPilotChanges(QString dbName, recordid_t id,
00057 PilotRecord*localrec, PilotRecord*serialrec, PilotDatabase*db);
00058 QStringList dirtyDBs;
00059 QStringList::Iterator dbIter;
00060 enum eInternalEditorSyncStatus {
00061 eSyncStarted,
00062 eSyncDirtyDB,
00063 eSyncFlagsChangedDB,
00064 eSyncAppBlockChangedDB,
00065 eSyncFinished
00066 } fInternalEditorSyncStatus;
00067 } ;
00068
00069 #endif
This file is part of the documentation for kpilot Library Version 3.2.2.