17 #ifndef CLIENTSTATUS_HPP_
18 #define CLIENTSTATUS_HPP_
24 #include <boost/bimap.hpp>
27 #include "kaa/gen/EndpointGen.hpp"
34 enum class ClientParameterT;
35 class IPersistentParameter;
38 boost::bimaps::set_of<ClientParameterT>
39 , boost::bimaps::set_of<std::string>
40 , boost::bimaps::left_based
82 return isConfigVersionUpdated;
89 void checkSDKPropertiesForUpdates();
90 void checkConfigVersionForUpdates();
93 std::string filename_;
94 std::map<ClientParameterT, std::shared_ptr<IPersistentParameter> > parameters_;
96 bool isConfigVersionUpdated;
98 KAA_MUTEX_MUTABLE_DECLARE(sequenceNumberGuard_);
100 static const bimap parameterToToken_;
102 static const bool isRegisteredDefault_;
106 static const std::string endpointAccessToken_;
107 static const bool endpointDefaultAttachStatus_;
108 static const std::string endpointKeyHashDefault_;
void setAttachedEndpoints(const AttachedEndpoints &endpoints)
std::string getEndpointKeyHash() const
std::int32_t getConfigurationSequenceNumber() const
void setEndpointAccessToken(const std::string &token)
std::string getEndpointAccessToken() const
ClientStatus(const std::string &filename)
std::int32_t getEventSequenceNumber() const
void setNotificationSequenceNumber(std::int32_t sequenceNumber)
void setConfigurationSequenceNumber(std::int32_t sequenceNumber)
virtual bool isConfigurationVersionUpdated() const
SharedDataBuffer getProfileHash() const
void setTopicStates(const DetailedTopicStates &stateContainer)
SequenceNumber getAppSeqNumber() const
boost::bimaps::bimap< boost::bimaps::set_of< ClientParameterT >, boost::bimaps::set_of< std::string >, boost::bimaps::left_based > bimap
std::map< std::string, std::string > AttachedEndpoints
void setEndpointAttachStatus(bool isAttached)
void setAppSeqNumber(SequenceNumber appSeqNumber)
bool isRegistered() const
void setEndpointKeyHash(const std::string &keyHash)
void setEventSequenceNumber(std::int32_t sequenceNumber)
AttachedEndpoints getAttachedEndpoints() const
DetailedTopicStates getTopicStates() const
void setRegistered(bool isRegistered)
std::map< std::string, DetailedTopicState > DetailedTopicStates
std::int32_t getNotificationSequenceNumber() const
bool getEndpointAttachStatus() const
std::pair< boost::shared_array< std::uint8_t >, std::uint32_t > SharedDataBuffer
void setProfileHash(SharedDataBuffer hash)