nl :: Dệt :: Hồ sơ :: DataManagement_Legacy :: ClientNotifier
#include <src/lib/profiles/data-management/Legacy/ClientNotifier.h>
Một lớp bổ trợ được sử dụng khi hỗ trợ đăng ký và thông báo được mong muốn trên máy khách WDM.
Tóm lược
Các ClientNotifier là một lớp mà thực hiện cử thông báo đến cho khách hàng quan tâm dựa trên các chủ đề ID được cung cấp bởi nhà xuất bản tại thời gian đăng ký hoặc nếu không dựa trên một nổi tiếng ID topic. Các ClientNotifier cũng trả về một tình trạng cho nhà xuất bản.
Đăng ký và thông báo là không bắt buộc trong WDM nhưng nếu họ được hỗ trợ khách hàng phải được cung cấp một notifier lúc khởi tạo.
Người xây dựng và Người phá hủy | |
---|---|
ClientNotifier (void) | |
~ClientNotifier (void) |
Thuộc tính được bảo vệ | |
---|---|
mExchangeMgr | |
mNotifierTable [kNotifierTableSize] | |
mSubscriptionCount | uint16_t |
Chức năng công cộng | |
---|---|
Clear (void) | void |
DispatchNotifyIndication ( ExchangeContext *aResponseCtx, PacketBuffer *payload) | |
FailSubscription (const TopicIdentifier & aTopicId, const uint64_t & aPublisherId, DMClient *aClient, StatusReport & aReport) | void |
HasSubscription (const TopicIdentifier & aTopicId, const uint64_t & aPublisherId, DMClient *aClient) const | bool |
InstallSubscription (const TopicIdentifier & aTopicId, const TopicIdentifier & aRequestedId, const uint64_t & aPublisherId, DMClient *aClient) | |
RemoveSubscription (const TopicIdentifier & aTopicId, const uint64_t & aPublisherId, DMClient *aClient) | void |
SubscriptionIsEnabled (void) | bool |
Các lớp học | |
---|---|
nl :: Weave :: Profiles :: DataManagement_Legacy :: ClientNotifier :: Subscription | Đăng ký phía khách hàng. |
Thuộc tính được bảo vệ
mExchangeMgr
WeaveExchangeManager * mExchangeMgr
mNotifierTable
Subscription mNotifierTable[kNotifierTableSize]
mSubscriptionCount
uint16_t mSubscriptionCount
Chức năng công cộng
Thông thoáng
void Clear( void )
ClientNotifier
ClientNotifier( void )
DispatchNotifyIndication
WEAVE_ERROR DispatchNotifyIndication( ExchangeContext *aResponseCtx, PacketBuffer *payload )
FailSubscription
void FailSubscription( const TopicIdentifier & aTopicId, const uint64_t & aPublisherId, DMClient *aClient, StatusReport & aReport )
HasSubscription
bool HasSubscription( const TopicIdentifier & aTopicId, const uint64_t & aPublisherId, DMClient *aClient ) const
InstallSubscription
WEAVE_ERROR InstallSubscription( const TopicIdentifier & aTopicId, const TopicIdentifier & aRequestedId, const uint64_t & aPublisherId, DMClient *aClient )
RemoveSubscription
void RemoveSubscription( const TopicIdentifier & aTopicId, const uint64_t & aPublisherId, DMClient *aClient )
SubscriptionIsEnabled
bool SubscriptionIsEnabled( void )
~ ClientNotifier
virtual ~ClientNotifier( void )