nl:: Weave:: Profiles:: DataManagement_Legacy:: ClientNotifier
#include <src/lib/profiles/data-management/Legacy/ClientNotifier.h>
Một lớp phụ trợ được sử dụng khi muốn hỗ trợ gói thuê bao và thông báo trên ứng dụng WDM.
Tóm tắt
ClientNotifier là một lớp thực hiện việc gửi các thông báo đến đến khách hàng quan tâm dựa trên mã chủ đề do nhà xuất bản cung cấp tại thời điểm đăng ký hoặc dựa trên mã chủ đề phổ biến. ClientNotifier cũng trả về một trạng thái cho nhà xuất bản.
Gói thuê bao và thông báo là không bắt buộc trong WDM nhưng nếu được hỗ trợ, máy khách phải được cung cấp một trình thông báo tại thời điểm khởi chạy.
Hàm khởi tạo và hàm phá |
|
---|---|
ClientNotifier(void)
|
|
~ClientNotifier(void)
|
Thuộc tính được bảo vệ |
|
---|---|
mExchangeMgr
|
|
mNotifierTable[kNotifierTableSize]
|
|
mSubscriptionCount
|
uint16_t
|
Hàm công khai |
|
---|---|
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
|
Lớp |
|
---|---|
nl:: |
Gói thuê bao phía máy khách. |
Thuộc tính được bảo vệ
mExchangeMgr
WeaveExchangeManager * mExchangeMgr
mNotifierTable
Subscription mNotifierTable[kNotifierTableSize]
mSubscriptionCount
uint16_t mSubscriptionCount
Hàm công khai
Xoá
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 )