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

37 lines
989 B
C++

/*
* Copyright (c) CompanyNameMagicTag 2021-2021. All rights reserved.
* Description: Alarm
* Author:
* Create: 2021-09-11
*/
#ifndef ALARM_SET_TIME_VIEW_H
#define ALARM_SET_TIME_VIEW_H
#include "components/ui_label_button.h"
#include "components/ui_picker.h"
#include "components/ui_scroll_view.h"
#include "components/ui_time_picker.h"
#include "View.h"
#include "AlarmPresenter.h"
#include "AlarmClockModel.h"
#include "wearable_log.h"
namespace OHOS {
class AlarmSetTimeView {
public:
AlarmSetTimeView();
~AlarmSetTimeView();
static AlarmSetTimeView *GetInstance(void);
UIScrollView *InitSetTimeView();
void RefreshSetTime(uint32_t time);
private:
UIScrollView *group{nullptr};
UILabelButton *timeImage{nullptr};
UILabel *title{nullptr};
UITimePicker *picker{nullptr};
UILabel *GetTitleLabel(const char *titleName);
void SetLabelButton(void);
};
} // namespace OHOS
#endif // ALARM_SET_TIME_VIEW_H