• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

NepomukDaemons

nepomukserver.h

Go to the documentation of this file.
00001 /* This file is part of the KDE Project
00002    Copyright (c) 2007 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_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

NepomukDaemons

Skip menu "NepomukDaemons"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • KCMShell
  • KNotify
  • KStyles
  • Nepomuk Daemons
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal