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

NepomukDaemons

Nepomuk::ServiceManager

Nepomuk::ServiceManager Class Reference

#include <servicemanager.h>

Inheritance diagram for Nepomuk::ServiceManager:

Inheritance graph
[legend]

List of all members.


Detailed Description

Manages all Nepomuk services.

Uses ServiceController to control the runtime of each service.

Definition at line 34 of file servicemanager.h.


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)

Public Member Functions

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

Static Public Member Functions

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

Constructor & Destructor Documentation

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

Definition at line 286 of file servicemanager.cpp.

Nepomuk::ServiceManager::~ServiceManager (  ) 

Definition at line 295 of file servicemanager.cpp.


Member Function Documentation

QStringList Nepomuk::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 398 of file servicemanager.cpp.

bool Nepomuk::ServiceManager::isServiceAutostarted ( const QString &  name  )  [slot]

Returns:
true if the service indicated by name is started automatically.

Definition at line 415 of file servicemanager.cpp.

bool Nepomuk::ServiceManager::isServiceInitialized ( const QString &  servicename  )  const

Returns:
true if the service identified by servicename is running and initialized.

Definition at line 404 of file servicemanager.cpp.

static void Nepomuk::ServiceManager::messageFilter ( const QDBusMessage &   )  [static]

QStringList Nepomuk::ServiceManager::runningServices (  )  const

Even uninitialized services are running.

Returns:
A list of names of all running services.

Definition at line 384 of file servicemanager.cpp.

static ServiceManager* Nepomuk::ServiceManager::self (  )  [inline, static]

Definition at line 42 of file servicemanager.h.

void Nepomuk::ServiceManager::serviceInitialized ( const QString &  name  )  [signal]

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

void Nepomuk::ServiceManager::setServiceAutostarted ( const QString &  name,
bool  autostart 
) [slot]

Set the service indicated by name to be autostarted.

Definition at line 426 of file servicemanager.cpp.

void Nepomuk::ServiceManager::startAllServices (  )  [slot]

Starts all autoload services.

Definition at line 302 of file servicemanager.cpp.

bool Nepomuk::ServiceManager::startService ( const QString &  name  )  [slot]

Start a specific service.

Blocks until the service and all dependencies are running.

Definition at line 327 of file servicemanager.cpp.

void Nepomuk::ServiceManager::stopAllServices (  )  [slot]

Stops all services.

Definition at line 317 of file servicemanager.cpp.

bool Nepomuk::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 371 of file servicemanager.cpp.


The documentation for this class was generated from the following files:
  • servicemanager.h
  • servicemanager.cpp

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