NepomukDaemons
Nepomuk::ServiceManager Class Reference
#include <servicemanager.h>

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 byservicename
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] |
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] |
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: