nl:: بافت:: DeviceLayer:: درونی؛ داخلی:: GenericSoftwareUpdateManagerImpl

#include <src/adaptations/device-layer/include/Weave/DeviceLayer/internal/GenericSoftwareUpdateManagerImpl.h>

اجرای عمومی ویژگی های Software Update Manager را ارائه می دهد که بر روی چندین پلتفرم کار می کند.

خلاصه

این الگو شامل پیاده سازی هایی از ویژگی های انتخاب شده از رابط انتزاعی 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()

دانلود کامل شد

void DownloadComplete(
  void
)

GetIntegrityTypeList

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

InstallImage

WEAVE_ERROR InstallImage(
  void
)

نرم افزار به روز نشد

void SoftwareUpdateFailed(
  WEAVE_ERROR aError,
  StatusReport *aStatusReport
)

نرم افزار به روز رسانی تمام شد

void SoftwareUpdateFinished(
  WEAVE_ERROR aError
)

StoreImageBlock

WEAVE_ERROR StoreImageBlock(
  uint32_t aLength,
  uint8_t *aData
)

_سقط کن

WEAVE_ERROR _Abort(
  void
)

_اکنون بررسی کنید

WEAVE_ERROR _CheckNow(
  void
)

_GetState

SoftwareUpdateManager::State _GetState(
  void
)

_ImageInstallComplete

WEAVE_ERROR _ImageInstallComplete(
  WEAVE_ERROR aError
)

_IsInProgress

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
)

_SetRetryPolicyCallback

void _SetRetryPolicyCallback(
  const SoftwareUpdateManager::RetryPolicyCallback aRetryPolicyCallback
)

توابع استاتیک محافظت شده

_DefaultEventHandler

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