nl:: Weave:: DeviceLayer:: Internal:: GenericSoftwareUpdateManagerImpl
#include <src/adaptations/device-layer/include/Weave/DeviceLayer/internal/GenericSoftwareUpdateManagerImpl.h>
提供適用於多個平台的軟體更新管理員功能通用實作方式。
摘要
此範本包含 SoftwareUpdateManager 抽象介面的特定功能實作,適合所有平台使用。其打算由 SoftwareUpdateManagerImpl 類別直接 (直接或間接) 繼承,同時也會顯示為範本的 ImplClass 參數。
繼承
直接已知子類別:nl::Weave::DeviceLayer::SoftwareUpdateManagerImpl
nl::Weave::DeviceLayer::SoftwareUpdateManagerImpl
nl::Weave::DeviceLayer::SoftwareUpdateManagerImpl
受保護的函式 |
|
---|---|
DoInit()
|
void
|
DownloadComplete(void)
|
void
|
GetIntegrityTypeList(::nl::Weave::Profiles::SoftwareUpdate::IntegrityTypeList *aIntegrityTypeList)
|
|
InstallImage(void)
|
|
SoftwareUpdateFailed(WEAVE_ERROR aError, StatusReport *aStatusReport)
|
void
|
SoftwareUpdateFinished(WEAVE_ERROR aError)
|
void
|
StoreImageBlock(uint32_t aLength, uint8_t *aData)
|
|
_Abort(void)
|
|
_CheckNow(void)
|
|
_GetState(void)
|
SoftwareUpdateManager::State
|
_ImageInstallComplete(WEAVE_ERROR aError)
|
|
_IsInProgress(void)
|
bool
|
_PrepareImageStorageComplete(WEAVE_ERROR aError)
|
|
_SetEventCallback(void *const aAppState, const SoftwareUpdateManager::EventCallback aEventCallback)
|
|
_SetQueryIntervalWindow(uint32_t aMinWaitTimeMs, uint32_t aMaxWaitTimeMs)
|
|
_SetRetryPolicyCallback(const SoftwareUpdateManager::RetryPolicyCallback aRetryPolicyCallback)
|
void
|
受保護的靜態函式 |
|
---|---|
_DefaultEventHandler(void *apAppState, SoftwareUpdateManager::EventType aEvent, const SoftwareUpdateManager::InEventParam & aInParam, SoftwareUpdateManager::OutEventParam & aOutParam)
|
void
|
受保護的函式
DoInit
void DoInit()
DownloadComplete
void DownloadComplete( void )
GetIntegrityTypeList
WEAVE_ERROR GetIntegrityTypeList( ::nl::Weave::Profiles::SoftwareUpdate::IntegrityTypeList *aIntegrityTypeList )
InstallImage
WEAVE_ERROR InstallImage( void )
SoftwareUpdateFailed
void SoftwareUpdateFailed( WEAVE_ERROR aError, StatusReport *aStatusReport )
SoftwareUpdateFinished
void SoftwareUpdateFinished( WEAVE_ERROR aError )
StoreImageBlock
WEAVE_ERROR StoreImageBlock( uint32_t aLength, uint8_t *aData )
_取消
WEAVE_ERROR _Abort( void )
_立即檢查
WEAVE_ERROR _CheckNow( void )
_取得狀態
SoftwareUpdateManager::State _GetState( void )
_圖片安裝完成
WEAVE_ERROR _ImageInstallComplete( WEAVE_ERROR aError )
_處理中
bool _IsInProgress( void )
_PrepareImageStorageComplete
WEAVE_ERROR _PrepareImageStorageComplete( WEAVE_ERROR aError )
_SetEventCallback
WEAVE_ERROR _SetEventCallback( void *const aAppState, const SoftwareUpdateManager::EventCallback aEventCallback )
_SetQueryIntervalWindow
WEAVE_ERROR _SetQueryIntervalWindow( uint32_t aMinWaitTimeMs, uint32_t aMaxWaitTimeMs )
_SetRetriePolicyCallback
void _SetRetryPolicyCallback( const SoftwareUpdateManager::RetryPolicyCallback aRetryPolicyCallback )
受保護的靜態函式
_DefaultEventHandler
void _DefaultEventHandler( void *apAppState, SoftwareUpdateManager::EventType aEvent, const SoftwareUpdateManager::InEventParam & aInParam, SoftwareUpdateManager::OutEventParam & aOutParam )