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

Nepomuk-Core

  • Nepomuk2
  • ServiceManager
Public Slots | Signals | Public Member Functions | Static Public Member Functions | List of all members
Nepomuk2::ServiceManager Class Reference

#include <servicemanager.h>

Inheritance diagram for Nepomuk2::ServiceManager:
Inheritance graph
[legend]

Public Slots

bool isServiceAutostarted (const QString &name)
 
void setServiceAutostarted (const QString &name, bool autostart)
 
void startAllServices ()
 
bool startService (const QString &name)
 
void stopAllServices ()
 
bool stopService (const QString &name)
 

Signals

void serviceInitialized (const QString &name)
 
void serviceStopped (const QString &name)
 

Public Member Functions

 ServiceManager (QObject *parent=0)
 
 ~ServiceManager ()
 
QStringList availableServices () const
 
bool isServiceInitialized (const QString &servicename) const
 
bool isServiceRunning (const QString &servicename) const
 
QStringList pendingServices () const
 
QStringList runningServices () const
 

Static Public Member Functions

static void messageFilter (const QDBusMessage &)
 
static ServiceManager * self ()
 

Detailed Description

Manages all Nepomuk services.

Uses ServiceController to control the runtime of each service.

Definition at line 34 of file servicemanager.h.

Constructor & Destructor Documentation

Nepomuk2::ServiceManager::ServiceManager ( QObject *  parent = 0)

Definition at line 349 of file servicemanager.cpp.

Nepomuk2::ServiceManager::~ServiceManager ( )

Definition at line 358 of file servicemanager.cpp.

Member Function Documentation

QStringList Nepomuk2::ServiceManager::availableServices ( ) const

All services that are available in the system.

Started and not started. This list does only include valid services, i.e. those that have a proper dependency tree.

Returns
A list of names of all running services.

Definition at line 437 of file servicemanager.cpp.

bool Nepomuk2::ServiceManager::isServiceAutostarted ( const QString &  name)
slot
Returns
true if the service indicated by name is started automatically.

Definition at line 465 of file servicemanager.cpp.

bool Nepomuk2::ServiceManager::isServiceInitialized ( const QString &  servicename) const
Returns
true if the service identified by servicename is running and initialized.
See also
isServiceRunning

Definition at line 443 of file servicemanager.cpp.

bool Nepomuk2::ServiceManager::isServiceRunning ( const QString &  servicename) const
Returns
true if the service identified by servicename is running.
See also
isServiceInitialized

Definition at line 454 of file servicemanager.cpp.

static void Nepomuk2::ServiceManager::messageFilter ( const QDBusMessage &  )
static
QStringList Nepomuk2::ServiceManager::pendingServices ( ) const

The services that are scheduled to be started but are waiting for dependancies to get initialized.

Definition at line 428 of file servicemanager.cpp.

QStringList Nepomuk2::ServiceManager::runningServices ( ) const

Even uninitialized services are running.

Returns
A list of names of all running services.
See also
isServiceRunning, isServiceInitialized

Definition at line 414 of file servicemanager.cpp.

static ServiceManager* Nepomuk2::ServiceManager::self ( )
inlinestatic

Definition at line 42 of file servicemanager.h.

void Nepomuk2::ServiceManager::serviceInitialized ( const QString &  name)
signal

Emitted once a new service finished its initialization and is ready for use.

void Nepomuk2::ServiceManager::serviceStopped ( const QString &  name)
signal

Emitted once a service has been stopped.

void Nepomuk2::ServiceManager::setServiceAutostarted ( const QString &  name,
bool  autostart 
)
slot

Set the service indicated by name to be autostarted.

Definition at line 476 of file servicemanager.cpp.

void Nepomuk2::ServiceManager::startAllServices ( )
slot

Starts all autoload services.

Definition at line 365 of file servicemanager.cpp.

bool Nepomuk2::ServiceManager::startService ( const QString &  name)
slot

Start a specific service.

Blocks until the service and all dependencies are running.

Definition at line 391 of file servicemanager.cpp.

void Nepomuk2::ServiceManager::stopAllServices ( )
slot

Stops all services.

Definition at line 380 of file servicemanager.cpp.

bool Nepomuk2::ServiceManager::stopService ( const QString &  name)
slot

Stop a specific service.

Blocks until the service and all services depending on it have been stopped.

Definition at line 404 of file servicemanager.cpp.


The documentation for this class was generated from the following files:
  • servicemanager.h
  • servicemanager.cpp
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