Nepomuk
nepomukservice.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_SERVICE_H_
00020 #define _NEPOMUK_SERVICE_H_
00021
00022 #include <QtCore/QObject>
00023 #include "nepomuk_export.h"
00024
00025 namespace Soprano {
00026 class Model;
00027 }
00028
00029 namespace Nepomuk {
00087 class NEPOMUK_EXPORT Service : public QObject
00088 {
00089 Q_OBJECT
00090
00091 public:
00101 Service( QObject* parent = 0, bool delayedInitialization = false );
00102
00106 virtual ~Service();
00107
00108 protected:
00113 Soprano::Model* mainModel();
00114
00127 void setServiceInitialized( bool success );
00128
00129 private:
00130 class Private;
00131 Private* const d;
00132 };
00133 }
00134
00141 #define NEPOMUK_EXPORT_SERVICE( classname, libname ) \
00142 K_PLUGIN_FACTORY(factory, registerPlugin<classname>();) \
00143 K_EXPORT_PLUGIN(factory(#libname))
00144
00145 #endif