ServiceBase Class Reference

#include <ServiceBase.h>

Inherits NamedObject.

Inherited by Service< T >, Service< Browser >, Service< FSh >, Service< Inetd >, Service< Init >, Service< Syslogd >, and Service< Test >.

Inheritance diagram for ServiceBase:

Inheritance graph
Collaboration diagram for ServiceBase:

Collaboration graph
List of all members.

Public Member Functions

 ServiceBase (const String &name, const ValueList &params, const String &manual="")
virtual ~ServiceBase ()
virtual ServiceBasefork ()=0
virtual bool forkable () const
int kill ()
virtual int suspend ()
virtual int resume ()
int notify (const ValueList &params)
 SIGNAL (forked)
 SIGNAL (killed)
 SIGNAL (suspended)
 SIGNAL (resumed)
 SIGNAL (notified, const ValueList &)

Static Public Member Functions

static unsigned int instancesNumberLimit ()

Protected Attributes

ValueList _params

Detailed Description

Definition at line 17 of file ServiceBase.h.

Constructor & Destructor Documentation

ServiceBase::ServiceBase ( const String name,
const ValueList params,
const String manual = "" 

Definition at line 13 of file ServiceBase.cpp.

ServiceBase::~ServiceBase (  )  [virtual]

Definition at line 18 of file ServiceBase.cpp.

Member Function Documentation

virtual ServiceBase* ServiceBase::fork (  )  [pure virtual]

Implemented in Service< T >, Service< Syslogd >, Service< FSh >, Service< Test >, Service< Browser >, Service< Inetd >, and Service< Init >.

bool ServiceBase::forkable (  )  const [inline, virtual]

Definition at line 52 of file ServiceBase.h.

unsigned int ServiceBase::instancesNumberLimit (  )  [static]

Reimplemented in Browser, Inetd, Init, and Syslogd.

Definition at line 22 of file ServiceBase.cpp.

int ServiceBase::kill (  ) 

Definition at line 27 of file ServiceBase.cpp.

References DEBUG, Object::deleteLater(), EMIT, and OK.

Referenced by Core::killAll().

int ServiceBase::suspend (  )  [virtual]

Reimplemented from Object.

Definition at line 35 of file ServiceBase.cpp.

References EMIT, ERROR_BACKTRACE(), FAILED(), OK, Object::suspend(), and Object::suspended().

Referenced by Core::suspendAll().

int ServiceBase::resume (  )  [virtual]

Reimplemented from Object.

Definition at line 49 of file ServiceBase.cpp.

References EMIT, ERROR_BACKTRACE(), FAILED(), OK, Object::resume(), and Object::suspended().

Referenced by Core::resumeAll().

int ServiceBase::notify ( const ValueList params  ) 

Definition at line 63 of file ServiceBase.cpp.

References EMIT, and OK.

Referenced by Core::notifyAll().

ServiceBase::SIGNAL ( forked   ) 

ServiceBase::SIGNAL ( killed   ) 

ServiceBase::SIGNAL ( suspended   ) 

ServiceBase::SIGNAL ( resumed   ) 

ServiceBase::SIGNAL ( notified  ,
const ValueList  

Member Data Documentation

ValueList ServiceBase::_params [protected]

Definition at line 47 of file ServiceBase.h.

Referenced by Service< T >::fork(), and Service< T >::~Service().

The documentation for this class was generated from the following files:
Generated on Thu Sep 6 20:13:51 2007 for Pylon Application Platform by  doxygen 1.5.1