core.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KSYNC_CORE_H
00022 #define KSYNC_CORE_H
00023
00024 #include "actionpart.h"
00025 #include "profile.h"
00026
00027 #include <kdebug.h>
00028
00029 #include <qwidget.h>
00030
00031 namespace KSync
00032 {
00033
00034 class ProfileManager;
00035 class KonnectorManager;
00036 class SyncUi;
00037 class SyncAlgorithm;
00038 class Engine;
00039
00040 enum KonnectorMode { KONNECTOR_ONLINE = 0, KONNECTOR_OFFLINE };
00041
00047 class Core : public QWidget
00048 {
00049 Q_OBJECT
00050 public:
00051 Core( QWidget *parent );
00052 ~Core();
00053
00057 virtual Profile currentProfile() const = 0;
00058
00063 virtual ProfileManager *profileManager() const = 0;
00064
00065 virtual Engine *engine() const = 0;
00066
00070 virtual SyncUi *syncUi() = 0;
00071
00075 virtual SyncAlgorithm *syncAlgorithm() = 0;
00076
00080 virtual const QPtrList<ActionPart> parts() const = 0;
00081
00082 signals:
00088 void profileChanged( const Profile &oldProfile );
00089
00095 void konnectorProgress( Konnector *konnector , const Progress &prog );
00096
00101 void konnectorError( Konnector *konnector, const Error &err );
00102
00107 void partChanged( ActionPart *newPart );
00108
00114 void partProgress( ActionPart *part, const Progress &prog );
00115
00121 void partError( ActionPart *part, const Error &error );
00122
00126 void startSync();
00127
00131 void startSync( ActionPart * );
00132
00133 void syncProgress( ActionPart *, int, int );
00137 void doneSync();
00138
00142 void doneSync( ActionPart * );
00143 };
00144
00145 }
00146
00147 #endif
This file is part of the documentation for kitchensync Library Version 3.3.2.