Nepomuk-Core
#include <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) |
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.
|
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 byservicename
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 byservicename
is running.
- See also
- isServiceInitialized
Definition at line 454 of file servicemanager.cpp.
|
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.
|
inlinestatic |
Definition at line 42 of file servicemanager.h.
|
signal |
Emitted once a new service finished its initialization and is ready for use.
|
signal |
Emitted once a service has been stopped.
|
slot |
Set the service indicated by name to be autostarted.
Definition at line 476 of file servicemanager.cpp.
|
slot |
Starts all autoload services.
Definition at line 365 of file servicemanager.cpp.
|
slot |
Start a specific service.
Blocks until the service and all dependencies are running.
Definition at line 391 of file servicemanager.cpp.
|
slot |
Stops all services.
Definition at line 380 of file servicemanager.cpp.
|
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:
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.