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

NepomukDaemons

Nepomuk::ServiceController

Nepomuk::ServiceController Class Reference

#include <servicecontroller.h>

Inheritance diagram for Nepomuk::ServiceController:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 26 of file servicecontroller.h.


Signals

void serviceInitialized (ServiceController *)

Public Member Functions

bool autostart () const
QStringList dependencies () const
bool isInitialized () const
bool isRunning () const
QString name () const
bool runOnce () const
KService::Ptr service () const
 ServiceController (KService::Ptr service, QObject *parent)
void setAutostart (bool enable)
bool start ()
bool startOnDemand () const
void stop ()
bool waitForInitialized (int timeout=30000)
 ~ServiceController ()

Constructor & Destructor Documentation

Nepomuk::ServiceController::ServiceController ( KService::Ptr  service,
QObject *  parent 
)

Definition at line 87 of file servicecontroller.cpp.

Nepomuk::ServiceController::~ServiceController (  ) 

Definition at line 95 of file servicecontroller.cpp.


Member Function Documentation

bool Nepomuk::ServiceController::autostart (  )  const

Definition at line 132 of file servicecontroller.cpp.

QStringList Nepomuk::ServiceController::dependencies (  )  const

All the service's direct dependencies.

Definition at line 114 of file servicecontroller.cpp.

bool Nepomuk::ServiceController::isInitialized (  )  const

Definition at line 215 of file servicecontroller.cpp.

bool Nepomuk::ServiceController::isRunning (  )  const

Definition at line 209 of file servicecontroller.cpp.

QString Nepomuk::ServiceController::name (  )  const

The name of the service.

This equals service()->desktopEntryName().

Definition at line 108 of file servicecontroller.cpp.

bool Nepomuk::ServiceController::runOnce (  )  const

Definition at line 144 of file servicecontroller.cpp.

KService::Ptr Nepomuk::ServiceController::service (  )  const

Definition at line 102 of file servicecontroller.cpp.

void Nepomuk::ServiceController::serviceInitialized ( ServiceController *   )  [signal]

Emitted once the service has been initialized properly, i.e.

once its D-Bus interface is active.

void Nepomuk::ServiceController::setAutostart ( bool  enable  ) 

Definition at line 125 of file servicecontroller.cpp.

bool Nepomuk::ServiceController::start (  ) 

Make sure the service is running.

This will attach to an already running instance or simple return true in case the service has been started already.

Definition at line 150 of file servicecontroller.cpp.

bool Nepomuk::ServiceController::startOnDemand (  )  const

Definition at line 138 of file servicecontroller.cpp.

void Nepomuk::ServiceController::stop (  ) 

Definition at line 187 of file servicecontroller.cpp.

bool Nepomuk::ServiceController::waitForInitialized ( int  timeout = 30000  ) 

Wait for the service to become initialized.

Will return immeadetely if the service has not been started or is already initialized.

A service is initialized once it is registered with D-Bus.

Definition at line 221 of file servicecontroller.cpp.


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