Public Types | Public Member Functions | Static Public Member Functions | List of all members
QtServiceController Class Reference

#include <qtservice.h>

Public Types

enum  StartupType { AutoStartup = 0, ManualStartup }
 

Public Member Functions

 QtServiceController (const QString &name)
 
virtual ~QtServiceController ()
 
bool isInstalled () const
 
bool isRunning () const
 
QString serviceName () const
 
QString serviceDescription () const
 
StartupType startupType () const
 
QString serviceFilePath () const
 
bool uninstall ()
 
bool start (const QStringList &arguments)
 
bool start ()
 
bool stop ()
 
bool pause ()
 
bool resume ()
 
bool sendCommand (int code)
 

Static Public Member Functions

static bool install (const QString &serviceFilePath, const QString &account=QString(), const QString &password=QString())
 

Detailed Description

Definition at line 65 of file qtservice.h.

Member Enumeration Documentation

Enumerator
AutoStartup 
ManualStartup 

Definition at line 69 of file qtservice.h.

Constructor & Destructor Documentation

QtServiceController::QtServiceController ( const QString &  name)
virtual QtServiceController::~QtServiceController ( )
virtual

Member Function Documentation

static bool QtServiceController::install ( const QString &  serviceFilePath,
const QString &  account = QString(),
const QString &  password = QString() 
)
static
bool QtServiceController::isInstalled ( ) const
bool QtServiceController::isRunning ( ) const
bool QtServiceController::pause ( )
bool QtServiceController::resume ( )
bool QtServiceController::sendCommand ( int  code)
QString QtServiceController::serviceDescription ( ) const
QString QtServiceController::serviceFilePath ( ) const
QString QtServiceController::serviceName ( ) const
bool QtServiceController::start ( const QStringList &  arguments)
bool QtServiceController::start ( )
StartupType QtServiceController::startupType ( ) const
bool QtServiceController::stop ( )
bool QtServiceController::uninstall ( )

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

© 2007-2017 Witold Gantzke and Kirill Lepskiy