nl:: Weave:: Profiles:: DataManagement_Current:: UpdateClient
Zusammenfassung
Konstruktoren und Zerstörer |
|
---|---|
UpdateClient(void)
|
Öffentliche Typen |
|
---|---|
EventCallback)(void *apAppState, EventType aEvent, const InEventParam &aInParam, OutEventParam &aOutParam)
|
typedefvoid(*
|
EventType
|
enum |
UpdateClientState{
|
enum |
Öffentliche Attribute |
|
---|---|
mpAppState
|
void *
|
mpBinding
|
Binding *
|
Öffentliche statische Funktionen |
|
---|---|
DefaultEventHandler(void *apAppState, EventType aEvent, const InEventParam & aInParam, OutEventParam & aOutParam)
|
void
|
Öffentliche Funktionen |
|
---|---|
CancelUpdate(void)
|
void
Updateclient auf den Status „Initialisiert“ zurücksetzen.
|
CloseUpdate(bool aAbort)
|
void
|
Init(Binding *const apBinding, void *const apAppState, EventCallback const aEventCallback)
|
AddRef dem Speicherverweis Binding auf die Bindung und das Delegieren hinzufügen.
|
SendUpdate(bool aIsPartialUpdate, PacketBuffer *aPBuf, bool aIsFirstPayload)
|
EC aus Bindung beziehen, Nachricht senden, Kickoff-Nachricht senden
|
Shutdown(void)
|
Releasebindung für das Update.
|
Strukturen |
|
---|---|
nl:: |
|
nl:: |
Öffentliche Typen
EventCallback
void(* EventCallback)(void *apAppState, EventType aEvent, const InEventParam &aInParam, OutEventParam &aOutParam)
EventType
EventType
UpdateClientState
UpdateClientState
Attribute | |
---|---|
kState_AwaitingResponse
|
Der Update-Client hat die Aktualisierungsanfrage gesendet. Eine Antwort steht aus. |
kState_Initialized
|
Der Update-Client wurde initialisiert und ist bereit. |
kState_Uninitialized
|
Der Update-Client wurde nicht initialisiert. |
Öffentliche Attribute
mpAppState
void * mpAppState
mpBinding
Binding * mpBinding
Öffentliche statische Funktionen
DefaultEventHandler
void DefaultEventHandler( void *apAppState, EventType aEvent, const InEventParam & aInParam, OutEventParam & aOutParam )
Öffentliche Funktionen
CancelUpdate
void CancelUpdate( void )
Updateclient auf den Status „Initialisiert“ zurücksetzen.
Zwischenspeicher leeren
Details | |||
---|---|---|---|
Rückgabewerte |
|
CloseUpdate
void CloseUpdate( bool aAbort )
Init
WEAVE_ERROR Init( Binding *const apBinding, void *const apAppState, EventCallback const aEventCallback )
AddRef dem Speicherverweis Binding auf die Bindung und das Delegieren hinzufügen.
Details | |||
---|---|---|---|
Rückgabewerte |
|
SendUpdate
WEAVE_ERROR SendUpdate( bool aIsPartialUpdate, PacketBuffer *aPBuf, bool aIsFirstPayload )
EC aus Bindung beziehen, Nachricht senden, Kickoff-Nachricht senden
Details | |||||
---|---|---|---|---|---|
Rückgabewerte |
|
Herunterfahren
WEAVE_ERROR Shutdown( void )
Releasebindung für das Update.
Sollte nur einmal aufgerufen werden.
Details | |||
---|---|---|---|
Rückgabewerte |
|
UpdateClient
UpdateClient( void )