nl:: Weave:: DeviceOverlay:: Nội bộ:: genericSoftwareUpdateManagerImpl
#include <src/adaptations/device-layer/include/Weave/DeviceLayer/internal/GenericSoftwareUpdateManagerImpl.h>
Cung cấp cách triển khai chung cho các tính năng của Trình quản lý cập nhật phần mềm hoạt động trên nhiều nền tảng.
Tóm tắt
Mẫu này chứa cách triển khai một số tính năng từ giao diện trừu tượng SoftwareUpdateManager, phù hợp để sử dụng trên tất cả các nền tảng. Lớp này dự kiến sẽ được kế thừa (trực tiếp hoặc gián tiếp) bằng lớp SoftwareUpdateManagerimpl, lớp này cũng xuất hiện dưới dạng thông số ImplClass của mẫu\39;
Tính kế thừa
Các lớp con đã biết trực tiếp:nl::Weave::DeviceOverlay::SoftwareUpdateManagerImpl
nl::Weave::Devicelayer::SoftwareUpdateManagerimpl
nl::Weave::DeviceUpdateManagerImpl
Hàm được bảo vệ |
|
---|---|
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
|
Hàm tĩnh được bảo vệ |
|
---|---|
_DefaultEventHandler(void *apAppState, SoftwareUpdateManager::EventType aEvent, const SoftwareUpdateManager::InEventParam & aInParam, SoftwareUpdateManager::OutEventParam & aOutParam)
|
void
|
Hàm được bảo vệ
Tiếng Doinit
void DoInit()
Tải xuống hoàn tất
void DownloadComplete( void )
Danh sách cập nhật nhanh
WEAVE_ERROR GetIntegrityTypeList( ::nl::Weave::Profiles::SoftwareUpdate::IntegrityTypeList *aIntegrityTypeList )
Cài đặt hình ảnh
WEAVE_ERROR InstallImage( void )
Không cập nhật được phần mềm
void SoftwareUpdateFailed( WEAVE_ERROR aError, StatusReport *aStatusReport )
Đã hoàn tất cập nhật phần mềm
void SoftwareUpdateFinished( WEAVE_ERROR aError )
Lưu trữ hình ảnh
WEAVE_ERROR StoreImageBlock( uint32_t aLength, uint8_t *aData )
_Hủy
WEAVE_ERROR _Abort( void )
_Kiểm tra ngay
WEAVE_ERROR _CheckNow( void )
_GetState
SoftwareUpdateManager::State _GetState( void )
_ImageInstallcomplete
WEAVE_ERROR _ImageInstallComplete( WEAVE_ERROR aError )
_Đang tiến hành
bool _IsInProgress( void )
_Chuẩn bị hình ảnh hình ảnh
WEAVE_ERROR _PrepareImageStorageComplete( WEAVE_ERROR aError )
_SetEventCallback
WEAVE_ERROR _SetEventCallback( void *const aAppState, const SoftwareUpdateManager::EventCallback aEventCallback )
_SetQueryIntervalInterval
WEAVE_ERROR _SetQueryIntervalWindow( uint32_t aMinWaitTimeMs, uint32_t aMaxWaitTimeMs )
_SetSetPolicyCallback
void _SetRetryPolicyCallback( const SoftwareUpdateManager::RetryPolicyCallback aRetryPolicyCallback )
Hàm tĩnh được bảo vệ
_Trình xử lý sự kiện mặc định
void _DefaultEventHandler( void *apAppState, SoftwareUpdateManager::EventType aEvent, const SoftwareUpdateManager::InEventParam & aInParam, SoftwareUpdateManager::OutEventParam & aOutParam )