• 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
  • servicestub
servicecontrol.h
Go to the documentation of this file.
1 /* This file is part of the KDE Project
2  Copyright (c) 2008-2011 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_SERVICE_CONTROL_H_
20 #define _NEPOMUK_SERVICE_CONTROL_H_
21 
22 #include <QtCore/QObject>
23 
24 #include <KService>
25 
26 namespace Nepomuk2 {
27  class Service;
28 
29  class ServiceControl : public QObject
30  {
31  Q_OBJECT
32 
33  public:
34  ServiceControl( const QString& serviceName, const KService::Ptr& service, QObject* parent = 0 );
35  ~ServiceControl();
36 
37  static QString dbusServiceName( const QString& serviceName );
38 
39  enum Errors {
40  ErrorUnknownServiceName = -9,
41  ErrorServiceAlreadyRunning = -10,
42  ErrorFailedToStart = -11,
43  ErrorMissingDependency = -12
44  };
45 
46  Q_SIGNALS:
47  void serviceInitialized( bool success );
48 
49  public Q_SLOTS:
50  void start();
51  void setServiceInitialized( bool success );
52  bool isInitialized() const;
53  void shutdown();
54  QString description() const;
55  QString name() const;
56 
57  private:
58  QString m_serviceName;
59  QString m_description;
60  QString m_readableName;
61  KService::Ptr m_service;
62  Nepomuk2::Service* m_nepomukServiceModule;
63  bool m_initialized;
64  };
65 }
66 
67 #endif
Nepomuk2::ServiceControl::~ServiceControl
~ServiceControl()
Definition: servicecontrol.cpp:40
Nepomuk2::ServiceControl::setServiceInitialized
void setServiceInitialized(bool success)
Definition: servicecontrol.cpp:45
Nepomuk2::ServiceControl::ErrorMissingDependency
Definition: servicecontrol.h:43
QObject
Nepomuk2::ServiceControl::dbusServiceName
static QString dbusServiceName(const QString &serviceName)
Definition: servicecontrol.cpp:121
Nepomuk2::ServiceControl::ErrorServiceAlreadyRunning
Definition: servicecontrol.h:41
Nepomuk2::ServiceControl::shutdown
void shutdown()
Definition: servicecontrol.cpp:115
Nepomuk2::ServiceControl::description
QString description() const
Definition: servicecontrol.cpp:57
Nepomuk2::ServiceControl::ErrorUnknownServiceName
Definition: servicecontrol.h:40
Nepomuk2::ServiceControl
Definition: servicecontrol.h:29
Nepomuk2::ServiceControl::ErrorFailedToStart
Definition: servicecontrol.h:42
Nepomuk2::ServiceControl::isInitialized
bool isInitialized() const
Definition: servicecontrol.cpp:52
Nepomuk2::ServiceControl::Errors
Errors
Definition: servicecontrol.h:39
Nepomuk2::ServiceControl::ServiceControl
ServiceControl(const QString &serviceName, const KService::Ptr &service, QObject *parent=0)
Definition: servicecontrol.cpp:28
Nepomuk2::ServiceControl::name
QString name() const
Definition: servicecontrol.cpp:62
Nepomuk2::ServiceControl::start
void start()
Definition: servicecontrol.cpp:67
Nepomuk2::ServiceControl::serviceInitialized
void serviceInitialized(bool success)
Nepomuk2::Service
Base class for all Nepomuk services.
Definition: nepomukservice.h:87
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:09 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