nl::Weave::DeviceLayer::ภายใน::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

ฟังก์ชันที่ได้รับการคุ้มครอง

เอกสารเริ่มต้น

void DoInit()

ดาวน์โหลดเสร็จสมบูรณ์

void DownloadComplete(
  void
)

รายการประเภท GetIntegrity

WEAVE_ERROR GetIntegrityTypeList(
  ::nl::Weave::Profiles::SoftwareUpdate::IntegrityTypeList *aIntegrityTypeList
)

ติดตั้งรูปภาพ

WEAVE_ERROR InstallImage(
  void
)

การอัปเดตซอฟต์แวร์ล้มเหลว

void SoftwareUpdateFailed(
  WEAVE_ERROR aError,
  StatusReport *aStatusReport
)

อัปเดตซอฟต์แวร์เสร็จแล้ว

void SoftwareUpdateFinished(
  WEAVE_ERROR aError
)

บล็อกรูปภาพร้านค้า

WEAVE_ERROR StoreImageBlock(
  uint32_t aLength,
  uint8_t *aData
)

ล้มเลิก

WEAVE_ERROR _Abort(
  void
)

_CheckNow

WEAVE_ERROR _CheckNow(
  void
)

_GetState

SoftwareUpdateManager::State _GetState(
  void
)

_ImageInstallComplete

WEAVE_ERROR _ImageInstallComplete(
  WEAVE_ERROR aError
)

_อยู่ระหว่างดําเนินการ

bool _IsInProgress(
  void
)

_เตรียมพร้อมรูปภาพพื้นที่เก็บข้อมูลเสร็จสมบูรณ์

WEAVE_ERROR _PrepareImageStorageComplete(
  WEAVE_ERROR aError
)

_SetEventback

WEAVE_ERROR _SetEventCallback(
  void *const aAppState,
  const SoftwareUpdateManager::EventCallback aEventCallback
)

_SetQueryIntervalWindow

WEAVE_ERROR _SetQueryIntervalWindow(
  uint32_t aMinWaitTimeMs,
  uint32_t aMaxWaitTimeMs
)

_SetTryPolicyCallback

void _SetRetryPolicyCallback(
  const SoftwareUpdateManager::RetryPolicyCallback aRetryPolicyCallback
)

ฟังก์ชันแบบคงที่ที่มีการปกป้อง

เครื่องจัดการเริ่มต้น

void _DefaultEventHandler(
  void *apAppState,
  SoftwareUpdateManager::EventType aEvent,
  const SoftwareUpdateManager::InEventParam & aInParam,
  SoftwareUpdateManager::OutEventParam & aOutParam
)