ArnLib
4.0.x
Active Registry Network
|
Class for advertising that a service is available. More...
#include <ArnDepend.hpp>
Public Member Functions | |
ArnDependOffer (QObject *parent=arnNullptr) | |
~ArnDependOffer () | |
void | advertise (const QString &serviceName) |
Advertise an available service More... | |
void | setStateName (const QString &name) |
Set the state of the service by a logic name. More... | |
QString | stateName () const |
void | setStateId (int id) |
Set the state of the service by an id number. More... | |
int | stateId () const |
Class for advertising that a service is available.
Additionally it's possible to indicate the state of the service. The state can either be indicated by a logic name or by an id number whichever is prefered.
Example usage
Definition at line 59 of file ArnDepend.hpp.
|
explicit |
Definition at line 56 of file ArnDepend.cpp.
ArnDependOffer::~ArnDependOffer | ( | ) |
Definition at line 70 of file ArnDepend.cpp.
void ArnDependOffer::advertise | ( | const QString & | serviceName | ) |
Advertise an available service
[in] | serviceName | is the name of the service. |
Definition at line 76 of file ArnDepend.cpp.
void ArnDependOffer::setStateId | ( | int | id | ) |
Set the state of the service by an id number.
The state starts of by 0 as default.
[in] | id | is the state id number. |
Definition at line 114 of file ArnDepend.cpp.
void ArnDependOffer::setStateName | ( | const QString & | name | ) |
Set the state of the service by a logic name.
The state starts of by "Start" as default.
[in] | name | is the state name. |
Definition at line 98 of file ArnDepend.cpp.
int ArnDependOffer::stateId | ( | ) | const |
QString ArnDependOffer::stateName | ( | ) | const |
Definition at line 106 of file ArnDepend.cpp.