added Message::setPollPriority and MessageMap::addPollMessage

This commit is contained in:
john30
2015-05-25 14:08:29 +02:00
parent e2538caf35
commit 6725cb526f
2 changed files with 32 additions and 5 deletions
+14 -1
View File
@@ -156,6 +156,13 @@ public:
*/
unsigned char getPollPriority() const { return m_pollPriority; }
/**
* Set the polling priority.
* @param priority the polling priority, or 0 for no polling at all.
* @return true when the priority was changed, false otherwise.
*/
bool setPollPriority(unsigned char priority);
/**
* Prepare the master @a SymbolString for sending a query or command to the bus.
* @param srcAddress the source address to set.
@@ -290,7 +297,7 @@ private:
const bool m_deleteData;
/** the priority for polling, or 0 for no polling at all. */
const unsigned char m_pollPriority;
unsigned char m_pollPriority;
/** the last seen master data. */
SymbolString m_lastMasterData;
@@ -390,6 +397,12 @@ public:
*/
Message* find(SymbolString& master);
/**
* Add a @a Message to the list of instances to poll.
* @param message the @a Message to poll.
*/
void addPollMessage(Message* message);
/**
* Removes all @a Message instances.
*/