nl::Weave::Profiles::DataManagement_Current::UpdateClient
Stay organized with collections
Save and categorize content based on your preferences.
Summary
Constructors and Destructors |
|
---|---|
UpdateClient(void)
|
Public types |
|
---|---|
EventCallback)(void *apAppState, EventType aEvent, const InEventParam &aInParam, OutEventParam &aOutParam)
|
typedefvoid(*
|
EventType
|
enum |
UpdateClientState{
|
enum |
Public attributes |
|
---|---|
mpAppState
|
void *
|
mpBinding
|
Binding *
|
Public static functions |
|
---|---|
DefaultEventHandler(void *apAppState, EventType aEvent, const InEventParam & aInParam, OutEventParam & aOutParam)
|
void
|
Public functions |
|
---|---|
CancelUpdate(void)
|
void
Reset update client to initialized status.
|
CloseUpdate(bool aAbort)
|
void
|
Init(Binding *const apBinding, void *const apAppState, EventCallback const aEventCallback)
|
AddRef to Binding store pointers to binding and delegate.
|
SendUpdate(bool aIsPartialUpdate, PacketBuffer *aPBuf, bool aIsFirstPayload)
|
acquire EC from binding, kick off send message
|
Shutdown(void)
|
Release binding for the update.
|
Structs |
|
---|---|
nl:: |
|
nl:: |
Public types
EventCallback
void(* EventCallback)(void *apAppState, EventType aEvent, const InEventParam &aInParam, OutEventParam &aOutParam)
EventType
EventType
UpdateClientState
UpdateClientState
Properties | |
---|---|
kState_AwaitingResponse
|
The update client has sent the update request, and pending for response. |
kState_Initialized
|
The update client has been initialized and is ready. |
kState_Uninitialized
|
The update client has not been initialized. |
Public attributes
mpAppState
void * mpAppState
mpBinding
Binding * mpBinding
Public static functions
DefaultEventHandler
void DefaultEventHandler( void *apAppState, EventType aEvent, const InEventParam & aInParam, OutEventParam & aOutParam )
Public functions
CancelUpdate
void CancelUpdate( void )
Reset update client to initialized status.
clear the buffer
Details | |||
---|---|---|---|
Return Values |
|
CloseUpdate
void CloseUpdate( bool aAbort )
Init
WEAVE_ERROR Init( Binding *const apBinding, void *const apAppState, EventCallback const aEventCallback )
AddRef to Binding store pointers to binding and delegate.
Details | |||
---|---|---|---|
Return Values |
|
SendUpdate
WEAVE_ERROR SendUpdate( bool aIsPartialUpdate, PacketBuffer *aPBuf, bool aIsFirstPayload )
acquire EC from binding, kick off send message
Details | |||||
---|---|---|---|---|---|
Return Values |
|
Shutdown
WEAVE_ERROR Shutdown( void )
Release binding for the update.
Should only be called once.
Details | |||
---|---|---|---|
Return Values |
|
UpdateClient
UpdateClient( void )