kpilot Library API Documentation

knotes-action.h

00001 #ifndef _KPILOT_KNOTES_ACTION_H
00002 #define _KPILOT_KNOTES_ACTION_H
00003 /* knotes-action.h                      KPilot
00004 **
00005 ** Copyright (C) 2001 by Dan Pilone
00006 **
00007 ** This file defines the SyncAction that the KNotes conduit performs.
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 #include "plugin.h"
00032 
00033 class KNotesAction : public ConduitAction
00034 {
00035 Q_OBJECT
00036 public:
00037         KNotesAction(
00038                 KPilotDeviceLink *o,
00039                 const char *n = 0L,
00040                 const QStringList &a = QStringList() );
00041         virtual ~KNotesAction();
00042 
00043         enum Status { Init,
00044                 ModifiedNotesToPilot,
00045                 NewNotesToPilot,
00046                 MemosToKNotes,
00047                 Cleanup,
00048                 Done } ;
00049         virtual QString statusString() const;
00050 
00051 protected:
00052         virtual bool exec();
00053 
00054 protected:
00058         void listNotes();
00059 
00067         void getAppInfo();
00068         void getConfigInfo();
00069         bool modifyNoteOnPilot();
00070         bool addNewNoteToPilot();
00071         bool syncMemoToKNotes();
00072         void cleanupMemos();
00073 
00074         void resetIndexes();
00075 
00076         static const char * const noteIdsKey;
00077         static const char * const memoIdsKey;
00078 
00079 protected slots:
00080         void process();
00081 
00082 private:
00083         class KNotesActionPrivate;
00084         KNotesActionPrivate *fP;
00085 } ;
00086 
00087 
00088 #endif
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sun Feb 15 11:40:43 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001