Nepomuk-Core
#include <servicecontroller.h>
Public Types | |
enum | State { StateStopped, StateRunning, StateStarting, StateStopping } |
Signals | |
void | serviceInitialized (ServiceController *) |
void | serviceStopped (ServiceController *) |
Public Member Functions | |
ServiceController (KService::Ptr service, QObject *parent) | |
~ServiceController () | |
bool | autostart () const |
QStringList | dependencies () const |
bool | isInitialized () const |
bool | isRunning () const |
QString | name () const |
bool | runOnce () const |
KService::Ptr | service () const |
void | setAutostart (bool enable) |
void | start () |
bool | startOnDemand () const |
State | state () const |
void | stop () |
Detailed Description
Definition at line 28 of file servicecontroller.h.
Member Enumeration Documentation
Enumerator | |
---|---|
StateStopped | |
StateRunning | |
StateStarting | |
StateStopping |
Definition at line 65 of file servicecontroller.h.
Constructor & Destructor Documentation
Nepomuk2::ServiceController::ServiceController | ( | KService::Ptr | service, |
QObject * | parent | ||
) |
Definition at line 110 of file servicecontroller.cpp.
Nepomuk2::ServiceController::~ServiceController | ( | ) |
Definition at line 127 of file servicecontroller.cpp.
Member Function Documentation
bool Nepomuk2::ServiceController::autostart | ( | ) | const |
Definition at line 163 of file servicecontroller.cpp.
QStringList Nepomuk2::ServiceController::dependencies | ( | ) | const |
All the service's direct dependencies.
Definition at line 145 of file servicecontroller.cpp.
bool Nepomuk2::ServiceController::isInitialized | ( | ) | const |
Definition at line 256 of file servicecontroller.cpp.
bool Nepomuk2::ServiceController::isRunning | ( | ) | const |
Definition at line 250 of file servicecontroller.cpp.
QString Nepomuk2::ServiceController::name | ( | ) | const |
The name of the service.
This equals service()->desktopEntryName().
Definition at line 139 of file servicecontroller.cpp.
bool Nepomuk2::ServiceController::runOnce | ( | ) | const |
Definition at line 175 of file servicecontroller.cpp.
KService::Ptr Nepomuk2::ServiceController::service | ( | ) | const |
Definition at line 133 of file servicecontroller.cpp.
|
signal |
Emitted once the service has been initialized properly, i.e.
once its D-Bus interface is active.
|
signal |
Emitted once the service has stopped, i.e.
once its DBus service is gone.
void Nepomuk2::ServiceController::setAutostart | ( | bool | enable | ) |
Definition at line 156 of file servicecontroller.cpp.
void Nepomuk2::ServiceController::start | ( | ) |
Make sure the service is running.
This is done by either starting the service asynchronical or by attaching to an already running.
Definition at line 181 of file servicecontroller.cpp.
bool Nepomuk2::ServiceController::startOnDemand | ( | ) | const |
Definition at line 169 of file servicecontroller.cpp.
Nepomuk2::ServiceController::State Nepomuk2::ServiceController::state | ( | ) | const |
Definition at line 343 of file servicecontroller.cpp.
void Nepomuk2::ServiceController::stop | ( | ) |
Definition at line 223 of file servicecontroller.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.