#include <clientConnection.h>
Public Member Functions | |
~ClientConnection () | |
destructor clearing the class | |
bool | checkClientCapabilities (int capability) |
check if we have a connected client with a specific capability | |
int | count () |
get number of clients connected | |
bool | addClient (const char *name, int modes) |
adds a client to the list of connected clients | |
bool | checkClientRemoval (const char *name) |
check if given client should get removed | |
void | getClients (std::list< std::string > &names, std::list< int > &caps) |
get all connected clients with their capabilities | |
Private Attributes | |
std::list< cNode > | _clients |
Base class for administrate clients which connect to a server socket provided by powersaved. Everytime one of the above defined states changes, all client which requested this state will be notified. Additionally it is also possible that acpi_events occurring on /proc/acpi/events will be forwarded to the clients instead of changes.
The class clientStorage is a list which holds all the registered clients.
|
destructor clearing the class
|
|
adds a client to the list of connected clients
|
|
check if we have a connected client with a specific capability
|
|
check if given client should get removed
|
|
get number of clients connected
|
|
get all connected clients with their capabilities
|
|
list for storing all connected clients |