Heart 1.3.848.aa44c26
Heart is base back end library for your c++ Qt projects.
|
The WorkState class is simple class with data of work state of node. More...
#include <workstate.h>
Public Member Functions | |
WorkState () | |
WorkState. | |
QString | toString () const |
toString This method convert state of work to string value. | |
int | getMaxConnectionCount () const |
getMaxConnectionCount This method return of limit of connections. | |
void | setMaxConnectionCount (int value) |
setMaxConnectionCount this method set a new value of limit of connections. | |
QList< HostAddress > | getBanedList () const |
getBanedList This method return banned list of server. | |
void | setBanedList (const QList< HostAddress > &banedList) |
setBanedList -this method set banned list for this object. | |
bool | IsRun () const |
getIsRun This method return true if server is runed. | |
void | setIsRun (bool value) |
setIsRun This method set new value for run flag. | |
const QList< HostAddress > & | getConnections () const |
getConnections This method return list of the current server connections. | |
void | setConnections (const QList< HostAddress > &connections) |
setConnections This method sets connections list. | |
const QList< HostAddress > & | activeConnections () const |
activeConnections This method return list of actived connections. | |
void | setActiveConnections (const QList< HostAddress > &newActiveConnections) |
setActiveConnections this method sets new list of active connections. | |
The WorkState class is simple class with data of work state of node.
Definition at line 19 of file workstate.h.
QH::WorkState::WorkState | ( | ) |
Definition at line 50 of file workstate.cpp.
const QList< HostAddress > & QH::WorkState::activeConnections | ( | ) | const |
activeConnections This method return list of actived connections.
Definition at line 30 of file workstate.cpp.
QList< HostAddress > QH::WorkState::getBanedList | ( | ) | const |
getBanedList This method return banned list of server.
Definition at line 91 of file workstate.cpp.
const QList< HostAddress > & QH::WorkState::getConnections | ( | ) | const |
getConnections This method return list of the current server connections.
Definition at line 22 of file workstate.cpp.
int QH::WorkState::getMaxConnectionCount | ( | ) | const |
getMaxConnectionCount This method return of limit of connections.
Definition at line 83 of file workstate.cpp.
bool QH::WorkState::IsRun | ( | ) | const |
getIsRun This method return true if server is runed.
Definition at line 14 of file workstate.cpp.
void QH::WorkState::setActiveConnections | ( | const QList< HostAddress > & | newActiveConnections | ) |
setActiveConnections this method sets new list of active connections.
newActiveConnections | This is new list of active connections |
Definition at line 34 of file workstate.cpp.
void QH::WorkState::setBanedList | ( | const QList< HostAddress > & | banedList | ) |
setBanedList -this method set banned list for this object.
banedList | set new banned list. |
Definition at line 95 of file workstate.cpp.
void QH::WorkState::setConnections | ( | const QList< HostAddress > & | connections | ) |
setConnections This method sets connections list.
connections | This is a new value of the connections list. |
Definition at line 26 of file workstate.cpp.
void QH::WorkState::setIsRun | ( | bool | value | ) |
setIsRun This method set new value for run flag.
value | change node state. |
Definition at line 18 of file workstate.cpp.
void QH::WorkState::setMaxConnectionCount | ( | int | value | ) |
setMaxConnectionCount this method set a new value of limit of connections.
value | This is a new limit of connection value. |
Definition at line 87 of file workstate.cpp.
QString QH::WorkState::toString | ( | ) | const |
toString This method convert state of work to string value.
Definition at line 52 of file workstate.cpp.