kpilot Library API Documentation

internalEditorAction.h

00001 #ifndef _INTERNALEDITORACTION_H_
00002 #define _INTERNALEDITORACTION_H_
00003 /* internalEditorAction.h                            KPilot
00004 **
00005 ** Copyright (C) 2003 by Dan Pilone
00006 ** Writtenn 2003 by Reinhold Kainhofer
00007 **
00008 */
00009 
00010 /*
00011 ** This program is free software; you can redistribute it and/or modify
00012 ** it under the terms of the GNU General Public License as published by
00013 ** the Free Software Foundation; either version 2 of the License, or
00014 ** (at your option) any later version.
00015 **
00016 ** This program is distributed in the hope that it will be useful,
00017 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00018 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00019 ** GNU General Public License for more details.
00020 **
00021 ** You should have received a copy of the GNU General Public License
00022 ** along with this program in a file called COPYING; if not, write to
00023 ** the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
00024 ** MA 02111-1307, USA.
00025 */
00026 
00027 /*
00028 ** Bug reports and questions can be sent to kde-pim@kde.org
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
KDE Logo
This file is part of the documentation for kpilot Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:36:47 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003