Public Member Functions | Protected Member Functions | List of all members
QtService< Application > Class Template Reference

#include <qtservice.h>

Inheritance diagram for QtService< Application >:
QtServiceBase

Public Member Functions

 QtService (int argc, char **argv, const QString &name)
 
 ~QtService ()
 
- Public Member Functions inherited from QtServiceBase
 QtServiceBase (int argc, char **argv, const QString &name)
 
virtual ~QtServiceBase ()
 
QString serviceName () const
 
QString serviceDescription () const
 
void setServiceDescription (const QString &description)
 
QtServiceController::StartupType startupType () const
 
void setStartupType (QtServiceController::StartupType startupType)
 
ServiceFlags serviceFlags () const
 
void setServiceFlags (ServiceFlags flags)
 
int exec ()
 
void logMessage (const QString &message, MessageType type=Success, int id=0, uint category=0, const QByteArray &data=QByteArray())
 

Protected Member Functions

Application * application () const
 
virtual void createApplication (int &argc, char **argv)
 
virtual int executeApplication ()
 
- Protected Member Functions inherited from QtServiceBase
virtual void start ()=0
 
virtual void stop ()
 
virtual void pause ()
 
virtual void resume ()
 
virtual void processCommand (int code)
 

Additional Inherited Members

- Public Types inherited from QtServiceBase
enum  MessageType { Success = 0, Error, Warning, Information }
 
enum  ServiceFlag { Default = 0x00, CanBeSuspended = 0x01, CannotBeStopped = 0x02, NeedsStopOnShutdown = 0x04 }
 
- Static Public Member Functions inherited from QtServiceBase
static QtServiceBaseinstance ()
 

Detailed Description

template<typename Application>
class QtService< Application >

Definition at line 162 of file qtservice.h.

Constructor & Destructor Documentation

template<typename Application >
QtService< Application >::QtService ( int  argc,
char **  argv,
const QString &  name 
)
inline

Definition at line 165 of file qtservice.h.

template<typename Application >
QtService< Application >::~QtService ( )
inline

Definition at line 168 of file qtservice.h.

Member Function Documentation

template<typename Application >
Application* QtService< Application >::application ( ) const
inlineprotected

Definition at line 173 of file qtservice.h.

template<typename Application >
virtual void QtService< Application >::createApplication ( int &  argc,
char **  argv 
)
inlineprotectedvirtual

Implements QtServiceBase.

Definition at line 176 of file qtservice.h.

template<typename Application >
virtual int QtService< Application >::executeApplication ( )
inlineprotectedvirtual

Implements QtServiceBase.

Definition at line 183 of file qtservice.h.


The documentation for this class was generated from the following file:

© 2007-2017 Witold Gantzke and Kirill Lepskiy