organizerpart.h
00001 #ifndef ksync_organizerpart_h
00002 #define ksync_organizerpart_h
00003
00004 #include <klocale.h>
00005 #include <qpixmap.h>
00006 #include <kurlrequester.h>
00007
00008 #include <manipulatorpart.h>
00009
00010 #include "organizerbase.h"
00011
00012 class KAboutData;
00013 class KConfig;
00014 class KSimpleConfig;
00015
00016
00017 namespace KCal {
00018 class CalendarLocal;
00019 }
00020
00021 namespace KSync {
00022 class Syncee;
00023 class EventSyncee;
00024 class TodoSyncee;
00025 class OrganizerPart : public ManipulatorPart {
00026 Q_OBJECT
00027 public:
00028 OrganizerPart(QWidget *parent, const char *name,
00029 QObject *obj = 0, const char *na=0,
00030 const QStringList & = QStringList() );
00031 virtual ~OrganizerPart();
00032
00033 static KAboutData *createAboutData();
00034
00035 QString type()const;
00036 QString name()const;
00037 QString description()const;
00038 QString iconName()const;
00039 QPixmap *pixmap();
00040 bool hasGui()const;
00041 bool configIsVisible()const;
00042 QWidget* configWidget();
00043 void sync( const SynceeList&, SynceeList& );
00044 public:
00045
00046 void slotConfigOk();
00047 private:
00048 enum Data{ Calendar = 0,
00049 Todo };
00050
00051 QPixmap m_pixmap;
00052 QWidget *m_widget;
00053 OrganizerDialogBase *m_config;
00054 TodoSyncee* loadTodos(const QString& path, const QString& timeZoneId );
00055 EventSyncee* loadEvents( const QString& path, const QString& timeZoneId );
00056 void doMeta( EventSyncee*, TodoSyncee*, const QString& path);
00057 void doMetaIntern( Syncee*, KSimpleConfig*, const QString& key);
00058 void writeMeta( EventSyncee*, TodoSyncee*, const QString& path );
00059 void writeMetaIntern( Syncee*, KSimpleConfig*, const QString& key );
00060 void save( EventSyncee*, TodoSyncee*, const QString& path, const QString& timeZoneId );
00061 bool isEvolutionSync()const;
00062 QString path( Data d, const QString& str );
00063 };
00064 }
00065
00066 #endif
This file is part of the documentation for kitchensync Library Version 3.3.2.