Nepomuk
nepomukservice.h
Go to the documentation of this file.
00001 /* This file is part of the KDE Project 00002 Copyright (c) 2008 Sebastian Trueg <trueg@kde.org> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License version 2 as published by the Free Software Foundation. 00007 00008 This library is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 Library General Public License for more details. 00012 00013 You should have received a copy of the GNU Library General Public License 00014 along with this library; see the file COPYING.LIB. If not, write to 00015 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00016 Boston, MA 02110-1301, USA. 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
KDE 4.6 API Reference