#include <callbackmanager.hh>
Public Member Functions | |
void | decrementLifeSignCounter () |
Decrements the counter/timer of all registered connections. | |
void | resetLifeSignCounter (const AsynchId &id) |
Resets the timeout value of all registered connections. | |
void | addConnection (Callback *callback, const AsynchId &id, Device &device) |
Registers a connection for life sign reception. | |
void | connectionToBeRemoved (const AsynchId &id) |
Removes a connection. | |
void | removeConnectionsOfCb (Callback *cb) |
Remove all connections of a certain callback. | |
Static Public Member Functions | |
static CallbackManager * | getInstance () |
Get instance of the callback manager. | |
static void | destroy () |
Destroy the instance of the callback manager. |
void connectionToBeRemoved | ( | const AsynchId & | id | ) |
Removes a connection.
Is called from the destructor of a connection. Connection is removed at the beginning of the next call of decrementLifeSignCounter.
id | AsynchId to be removed. |
void decrementLifeSignCounter | ( | ) |
Decrements the counter/timer of all registered connections.
Is called by the callbacktimer. If the counter has reached 0 a timeout occurs an the error function is called.
static void destroy | ( | ) | [static] |
Destroy the instance of the callback manager.
static CallbackManager* getInstance | ( | ) | [static] |
Get instance of the callback manager.
void removeConnectionsOfCb | ( | Callback * | cb | ) |
Remove all connections of a certain callback.
Is called from the destructor of the specific callback
cb | Pointer to the callback |
void resetLifeSignCounter | ( | const AsynchId & | id | ) |
Resets the timeout value of all registered connections.
Is called by the lifeSign method of the callback if it has received a call from the frontend.
id | AsynchId of the connection. |