AbstractService::ServiceStateΒΆ

class kanzi::connect::AbstractService::ServiceState

Public Types

enum State

Values:

enumerator Undefined

-> not initialized. hardly ever exposed to outside.

enumerator Initializing

-> under initialization.

enumerator Running

Running.

enumerator Stopped

Stopped.

enumerator Failed

Some error occurred.

enumerator Upgrading

under upgrade.

Public Functions

ServiceState(int State = Undefined, string description = string())

c++ constructor

bool initialized() const

Checks whether service has been successfully initialized.

Return

true if service is initialized.

bool running() const

Checks whether service is running.

Return

true if service is running.

bool stopped() const

Checks whether service is stopped.

Return

true if service is stopped.

Public Members

int m_state

Service state value.

string m_stateDescription

detailed description