#include <ServiceMessages.h>
|
| ServiceMessages (BaseLib::SharedObjects *baseLib, uint64_t peerId, std::string peerSerial, IServiceEventSink *eventHandler) |
|
virtual | ~ServiceMessages () |
|
virtual void | setPeerId (uint64_t peerId) |
|
virtual void | setPeerSerial (std::string peerSerial) |
|
virtual void | load () |
|
virtual void | save (ServiceMessagePriority priority, int64_t timestamp, uint32_t index, bool value) |
|
virtual void | save (ServiceMessagePriority priority, int64_t timestamp, int32_t channel, std::string id, uint8_t value) |
|
virtual bool | set (std::string id, bool value) |
|
virtual void | set (std::string id, uint8_t value, uint32_t channel) |
|
virtual std::shared_ptr< Variable > | get (const PRpcClientInfo &clientInfo, bool returnId, const std::string &language) |
|
virtual void | setConfigPending (bool value) |
|
virtual bool | getConfigPending () |
|
virtual void | resetConfigPendingSetTime () |
|
virtual int64_t | getConfigPendingSetTime () |
|
virtual void | setUnreach (bool value, bool requeue) |
|
virtual bool | getUnreach () |
|
virtual void | checkUnreach (int32_t cyclicTimeout, int64_t lastPacketReceived) |
|
virtual void | endUnreach () |
|
virtual bool | getLowbat () |
|
| IEvents () |
|
virtual | ~IEvents () |
|
virtual void | setEventHandler (IEventSinkBase *eventHandler) |
|
virtual void | resetEventHandler () |
|
virtual IEventSinkBase * | getEventHandler () |
|
|
virtual void | raiseConfigPending (bool configPending) |
|
virtual void | raiseEvent (std::string &source, uint64_t peerId, int32_t channel, std::shared_ptr< std::vector< std::string >> &variables, std::shared_ptr< std::vector< std::shared_ptr< BaseLib::Variable >>> &values) |
|
virtual void | raiseRPCEvent (std::string &source, uint64_t peerId, int32_t channel, std::string &deviceAddress, std::shared_ptr< std::vector< std::string >> &valueKeys, std::shared_ptr< std::vector< std::shared_ptr< Variable >>> &values) |
|
virtual void | raiseServiceMessageEvent (const PServiceMessage &serviceMessage) |
|
virtual void | raiseSaveParameter (std::string name, uint32_t channel, std::vector< uint8_t > &data) |
|
virtual std::shared_ptr< Database::DataTable > | raiseGetServiceMessages () |
|
virtual void | raiseSaveServiceMessage (Database::DataRow &data) |
|
virtual void | raiseDeleteServiceMessage (uint64_t databaseID) |
|
virtual void | raiseEnqueuePendingQueues () |
|
§ ServiceMessages()
§ ~ServiceMessages()
BaseLib::Systems::ServiceMessages::~ServiceMessages |
( |
| ) |
|
|
virtual |
§ checkUnreach()
void BaseLib::Systems::ServiceMessages::checkUnreach |
( |
int32_t |
cyclicTimeout, |
|
|
int64_t |
lastPacketReceived |
|
) |
| |
|
virtual |
§ endUnreach()
void BaseLib::Systems::ServiceMessages::endUnreach |
( |
| ) |
|
|
virtual |
§ get()
PVariable BaseLib::Systems::ServiceMessages::get |
( |
const PRpcClientInfo & |
clientInfo, |
|
|
bool |
returnId, |
|
|
const std::string & |
language |
|
) |
| |
|
virtual |
§ getConfigPending()
virtual bool BaseLib::Systems::ServiceMessages::getConfigPending |
( |
| ) |
|
|
inlinevirtual |
§ getConfigPendingSetTime()
virtual int64_t BaseLib::Systems::ServiceMessages::getConfigPendingSetTime |
( |
| ) |
|
|
inlinevirtual |
§ getLowbat()
virtual bool BaseLib::Systems::ServiceMessages::getLowbat |
( |
| ) |
|
|
inlinevirtual |
§ getUnreach()
virtual bool BaseLib::Systems::ServiceMessages::getUnreach |
( |
| ) |
|
|
inlinevirtual |
§ load()
void BaseLib::Systems::ServiceMessages::load |
( |
| ) |
|
|
virtual |
§ raiseConfigPending()
void BaseLib::Systems::ServiceMessages::raiseConfigPending |
( |
bool |
configPending | ) |
|
|
protectedvirtual |
§ raiseDeleteServiceMessage()
void BaseLib::Systems::ServiceMessages::raiseDeleteServiceMessage |
( |
uint64_t |
databaseID | ) |
|
|
protectedvirtual |
§ raiseEnqueuePendingQueues()
void BaseLib::Systems::ServiceMessages::raiseEnqueuePendingQueues |
( |
| ) |
|
|
protectedvirtual |
§ raiseEvent()
void BaseLib::Systems::ServiceMessages::raiseEvent |
( |
std::string & |
source, |
|
|
uint64_t |
peerId, |
|
|
int32_t |
channel, |
|
|
std::shared_ptr< std::vector< std::string >> & |
variables, |
|
|
std::shared_ptr< std::vector< std::shared_ptr< BaseLib::Variable >>> & |
values |
|
) |
| |
|
protectedvirtual |
§ raiseGetServiceMessages()
std::shared_ptr< Database::DataTable > BaseLib::Systems::ServiceMessages::raiseGetServiceMessages |
( |
| ) |
|
|
protectedvirtual |
§ raiseRPCEvent()
void BaseLib::Systems::ServiceMessages::raiseRPCEvent |
( |
std::string & |
source, |
|
|
uint64_t |
peerId, |
|
|
int32_t |
channel, |
|
|
std::string & |
deviceAddress, |
|
|
std::shared_ptr< std::vector< std::string >> & |
valueKeys, |
|
|
std::shared_ptr< std::vector< std::shared_ptr< Variable >>> & |
values |
|
) |
| |
|
protectedvirtual |
§ raiseSaveParameter()
void BaseLib::Systems::ServiceMessages::raiseSaveParameter |
( |
std::string |
name, |
|
|
uint32_t |
channel, |
|
|
std::vector< uint8_t > & |
data |
|
) |
| |
|
protectedvirtual |
§ raiseSaveServiceMessage()
void BaseLib::Systems::ServiceMessages::raiseSaveServiceMessage |
( |
Database::DataRow & |
data | ) |
|
|
protectedvirtual |
§ raiseServiceMessageEvent()
void BaseLib::Systems::ServiceMessages::raiseServiceMessageEvent |
( |
const PServiceMessage & |
serviceMessage | ) |
|
|
protectedvirtual |
§ resetConfigPendingSetTime()
void BaseLib::Systems::ServiceMessages::resetConfigPendingSetTime |
( |
| ) |
|
|
virtual |
§ save() [1/2]
void BaseLib::Systems::ServiceMessages::save |
( |
ServiceMessagePriority |
priority, |
|
|
int64_t |
timestamp, |
|
|
uint32_t |
index, |
|
|
bool |
value |
|
) |
| |
|
virtual |
§ save() [2/2]
void BaseLib::Systems::ServiceMessages::save |
( |
ServiceMessagePriority |
priority, |
|
|
int64_t |
timestamp, |
|
|
int32_t |
channel, |
|
|
std::string |
id, |
|
|
uint8_t |
value |
|
) |
| |
|
virtual |
§ set() [1/2]
bool BaseLib::Systems::ServiceMessages::set |
( |
std::string |
id, |
|
|
bool |
value |
|
) |
| |
|
virtual |
§ set() [2/2]
void BaseLib::Systems::ServiceMessages::set |
( |
std::string |
id, |
|
|
uint8_t |
value, |
|
|
uint32_t |
channel |
|
) |
| |
|
virtual |
§ setConfigPending()
void BaseLib::Systems::ServiceMessages::setConfigPending |
( |
bool |
value | ) |
|
|
virtual |
§ setPeerId()
virtual void BaseLib::Systems::ServiceMessages::setPeerId |
( |
uint64_t |
peerId | ) |
|
|
inlinevirtual |
§ setPeerSerial()
virtual void BaseLib::Systems::ServiceMessages::setPeerSerial |
( |
std::string |
peerSerial | ) |
|
|
inlinevirtual |
§ setUnreach()
void BaseLib::Systems::ServiceMessages::setUnreach |
( |
bool |
value, |
|
|
bool |
requeue |
|
) |
| |
|
virtual |
§ _bl
§ _configPending
bool BaseLib::Systems::ServiceMessages::_configPending = false |
|
protected |
§ _configPendingSetTime
int64_t BaseLib::Systems::ServiceMessages::_configPendingSetTime = 0 |
|
protected |
§ _configPendingTime
int64_t BaseLib::Systems::ServiceMessages::_configPendingTime = 0 |
|
protected |
§ _disposing
bool BaseLib::Systems::ServiceMessages::_disposing = false |
|
protected |
§ _errorMutex
std::mutex BaseLib::Systems::ServiceMessages::_errorMutex |
|
protected |
§ _errors
std::map<uint32_t, std::map<std::string, ErrorInfo> > BaseLib::Systems::ServiceMessages::_errors |
|
protected |
§ _lowbat
bool BaseLib::Systems::ServiceMessages::_lowbat = false |
|
protected |
§ _lowbatTime
int64_t BaseLib::Systems::ServiceMessages::_lowbatTime = 0 |
|
protected |
§ _peerId
uint64_t BaseLib::Systems::ServiceMessages::_peerId = 0 |
|
protected |
§ _peerSerial
std::string BaseLib::Systems::ServiceMessages::_peerSerial |
|
protected |
§ _stickyUnreach
bool BaseLib::Systems::ServiceMessages::_stickyUnreach = false |
|
protected |
§ _stickyUnreachTime
int64_t BaseLib::Systems::ServiceMessages::_stickyUnreachTime = 0 |
|
protected |
§ _unreach
bool BaseLib::Systems::ServiceMessages::_unreach = false |
|
protected |
§ _unreachResendCounter
int32_t BaseLib::Systems::ServiceMessages::_unreachResendCounter = 0 |
|
protected |
§ _unreachTime
int64_t BaseLib::Systems::ServiceMessages::_unreachTime = 0 |
|
protected |
§ _variableDatabaseIDs
std::map<uint32_t, uint32_t> BaseLib::Systems::ServiceMessages::_variableDatabaseIDs |
|
protected |
§ last_unreach_event_
The documentation for this class was generated from the following files: