class ViewClient
Defined at line 44 of file gen/third_party/openweave-core/src/include/Weave/Profiles/data-management/Current/ViewClient.h
Protected Members
mCurrentMode
Binding * mBinding
void * mAppState
EventCallback mEventCallback
bool mPrevIsPartialChange
TraitDataHandle mPrevTraitDataHandle
nl::Weave::ExchangeContext * mEC
Public Methods
void ViewClient ()
Do nothing
WEAVE_ERROR Init (Binding *constapBinding,void *constapAppState,const EventCallbackaEventCallback)
AddRef to Binding
store pointers to binding and delegate
null out EC
WEAVE_ERROR SendRequest (const AppendToPathList aAppendToPathList, const HandleDataElement aHandleDataElement)
acquire EC from binding, kick off send message
WEAVE_ERROR SendRequest (TraitCatalogBase<TraitDataSink> *apCatalog,const TraitPath[]aPathList,const size_taPathListSize)
WEAVE_ERROR Cancel ()
InternalCancel(false)
Protected Methods
void DataSinkOperation_NoMoreData (void *const apOpState, TraitDataSink *const apDataSink)
void OnSendError (ExchangeContext *aEC,WEAVE_ERRORaErrorCode,void *aMsgSpecificContext)
void OnResponseTimeout (nl::Weave::ExchangeContext * aEC)
void OnMessageReceived (nl::Weave::ExchangeContext *aEC,const nl::Inet::IPPacketInfo *aPktInfo,const nl::Weave::WeaveMessageInfo *aMsgInfo,uint32_taProfileId,uint8_taMsgType,PacketBuffer *aPayload)
Enumerations
enum EventID
| Name | Value | Comments |
|---|---|---|
| kEvent_RequestFailed | 1 |
Cancel is already called when this callback happens |
| kEvent_AboutToSendRequest | 2 |
Last chance to adjust EC, mEC is valid and can be tuned for timeout settings |
| kEvent_ViewResponseReceived | 3 |
Response just arrived, mEC is valid |
| kEvent_ViewResponseConsumed | 4 |
Cancel is already called when this callback happens |
| kEvent_StatusReportReceived | 5 |
Cancel is already called when this callback happens |
Defined at line 47 of file gen/third_party/openweave-core/src/include/Weave/Profiles/data-management/Current/ViewClient.h
enum (unnamed)
| Name | Value |
|---|---|
| kMode_Canceled | 1 |
| kMode_Initialized | 2 |
| kMode_DataSink | 3 |
| kMode_WithoutDataSink | 4 |
Defined at line 133 of file gen/third_party/openweave-core/src/include/Weave/Profiles/data-management/Current/ViewClient.h