• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

Nepomuk-Core

  • sources
  • kde-4.12
  • kdelibs
  • nepomuk-core
  • server
nepomukserver.h
Go to the documentation of this file.
1 /* This file is part of the KDE Project
2  Copyright (c) 2007 Sebastian Trueg <trueg@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2 as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 */
18 
19 #ifndef _NEPOMUK_SERVER_H_
20 #define _NEPOMUK_SERVER_H_
21 
22 #include <QtCore/QObject>
23 
24 #include <KSharedConfig>
25 
26 namespace Soprano {
27  class Backend;
28 }
29 
30 namespace Nepomuk2 {
31 
32  class ServiceManager;
33 
34  class Server : public QObject
35  {
36  Q_OBJECT
37 
38  public:
39  Server( bool noServices, QObject* parent = 0 );
40  virtual ~Server();
41 
42  KSharedConfig::Ptr config() const;
43 
44  static Server* self();
45 
46  public Q_SLOTS:
47  void enableNepomuk(bool enabled);
48  void enableFileIndexer(bool enabled);
49  bool isNepomukEnabled() const;
50  bool isFileIndexerEnabled() const;
51 
55  QString defaultRepository() const;
56  void reconfigure();
57 
62  void quit();
63 
64  Q_SIGNALS:
66  void nepomukEnabled();
67 
69  void nepomukDisabled();
70 
71  private Q_SLOTS:
72  void slotServiceInitialized( const QString& name );
73  void slotServiceStopped( const QString& name );
74 
75  private:
76  void init();
77 
78  ServiceManager* m_serviceManager;
79 
80  KSharedConfigPtr m_config;
81 
82  const QString m_fileIndexerServiceName;
83  const bool m_noServices;
84 
85  enum State {
86  StateDisabled,
87  StateEnabled,
88  StateDisabling,
89  StateEnabling
90  };
91  State m_currentState;
92 
93  static Server* s_self;
94  };
95 }
96 
97 #endif
Nepomuk2::Server::enableFileIndexer
void enableFileIndexer(bool enabled)
Definition: nepomukserver.cpp:117
QObject
Nepomuk2::Server::quit
void quit()
Asyncronically quits the server by first stopping all services and then calling QCoreApplication::qui...
Definition: nepomukserver.cpp:157
Nepomuk2::Server::nepomukEnabled
void nepomukEnabled()
emitted once Nepomuk has been enabled and is fully operational
Nepomuk2::Server::~Server
virtual ~Server()
Definition: nepomukserver.cpp:72
Nepomuk2::Server::isFileIndexerEnabled
bool isFileIndexerEnabled() const
Definition: nepomukserver.cpp:137
Nepomuk2::ServiceManager
Manages all Nepomuk services.
Definition: servicemanager.h:34
Nepomuk2::Server::reconfigure
void reconfigure()
Definition: nepomukserver.cpp:149
Nepomuk2::Server::isNepomukEnabled
bool isNepomukEnabled() const
Definition: nepomukserver.cpp:131
Nepomuk2::Server::nepomukDisabled
void nepomukDisabled()
emitted once Nepomuk has been disabled and all services are down
Nepomuk2::Server
Definition: nepomukserver.h:34
Nepomuk2::Server::enableNepomuk
void enableNepomuk(bool enabled)
Definition: nepomukserver.cpp:86
Nepomuk2::Server::Server
Server(bool noServices, QObject *parent=0)
Definition: nepomukserver.cpp:38
Nepomuk2::Server::config
KSharedConfig::Ptr config() const
Definition: nepomukserver.cpp:171
Nepomuk2::Server::defaultRepository
QString defaultRepository() const
Definition: nepomukserver.cpp:143
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Nepomuk-Core

Skip menu "Nepomuk-Core"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal