akonadi
servermanager.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef AKONADI_SERVERMANAGER_H
00021 #define AKONADI_SERVERMANAGER_H
00022
00023 #include "akonadi_export.h"
00024
00025 #include <QtCore/QObject>
00026
00027 namespace Akonadi {
00028
00029 class ServerManagerPrivate;
00030
00041 class AKONADI_EXPORT ServerManager : public QObject
00042 {
00043 Q_OBJECT
00044 public:
00053 static bool start();
00054
00062 static bool stop();
00063
00069 static void showSelfTestDialog( QWidget *parent );
00070
00074 static bool isRunning();
00075
00080 static ServerManager* self();
00081
00082 Q_SIGNALS:
00086 void started();
00087
00091 void stopped();
00092
00093 private:
00094
00095 friend class ServerManagerPrivate;
00096 ServerManager( ServerManagerPrivate *dd );
00097 ServerManagerPrivate* const d;
00098 Q_PRIVATE_SLOT( d, void serviceOwnerChanged( const QString&, const QString&, const QString& ) )
00099 Q_PRIVATE_SLOT( d, void checkStatusChanged() )
00100
00101 };
00102
00103 }
00104
00105 #endif