NepomukDaemons
nepomukserver.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef _NEPOMUK_SERVER_H_
00020 #define _NEPOMUK_SERVER_H_
00021
00022 #include <QtCore/QObject>
00023
00024 #include <KSharedConfig>
00025
00026 namespace Soprano {
00027 class Backend;
00028 }
00029
00030 namespace Nepomuk {
00031
00032 class ServiceManager;
00033 class LegacyStorageBridge;
00034
00035 class Server : public QObject
00036 {
00037 Q_OBJECT
00038
00039 public:
00040 Server( QObject* parent = 0 );
00041 virtual ~Server();
00042
00043 KSharedConfig::Ptr config() const;
00044
00045 static Server* self();
00046
00047 public Q_SLOTS:
00048 void enableNepomuk(bool enabled);
00049 void enableStrigi(bool enabled);
00050 bool isNepomukEnabled() const;
00051 bool isStrigiEnabled() const;
00052
00056 QString defaultRepository() const;
00057 void reconfigure();
00058 void quit();
00059
00060 private:
00061 void init();
00062
00063 ServiceManager* m_serviceManager;
00064 bool m_enabled;
00065
00066 LegacyStorageBridge* m_legacyStorageBridge;
00067
00068 KSharedConfigPtr m_config;
00069
00070 const QString m_strigiServiceName;
00071
00072 static Server* s_self;
00073 };
00074 }
00075
00076 #endif