mcu_hi3321_watch/application/wearable/nativeapp/nativeui/rebootdevice/include/RebootModel.h
2025-05-26 20:15:20 +08:00

35 lines
720 B
C++

/*
* Copyright (c) CompanyNameMagicTag 2022-2022. All rights reserved.
* Description: Reboot Model
* Create: 2022-04-28
*/
#ifndef REBOOT_MODEL_H
#define REBOOT_MODEL_H
#include <stdint.h>
namespace OHOS {
enum RebootModelView : uint8_t {
REBOOT,
REBOOTDEVICE,
SHUTDOWNDEVICE,
};
class RebootModel {
public:
~RebootModel();
static RebootModel *GetInstance(void);
int16_t GetSelectView(void);
void SetSelectViewId(int16_t value);
bool GetExitsView(void);
void SetExitsView(bool value);
void SoftRebootDevice(void);
void ShutdownDevice(void);
private:
RebootModel();
int16_t selectView{0};
bool exitsView{false};
};
}
#endif