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

45 lines
1.1 KiB
C++

/*
* Copyright (c) CompanyNameMagicTag 2021-2021. All rights reserved.
* Description: CallingView.h
* Author:
* Create: 2021-10-12
*/
#ifndef CALLING_VIEW_H
#define CALLING_VIEW_H
#include "View.h"
#include "components/ui_label.h"
#include "components/ui_image_animator.h"
#include "components/ui_view_group.h"
#include "ohos_types.h"
#include "UiConfig.h"
#include "ChangeSliceListener.h"
namespace OHOS {
class CallingView {
public:
CallingView();
~CallingView();
UIViewGroup *CreateUIViewGroup();
UIImageView *GetImageMicrophone();
static CallingView *GetInstance();
UILabel *GetCallingDisplayLabel();
UILabel *GetCallingDurationLabel();
private:
bool InitAddOnclickevent(void);
bool InitImageViewDisplay(void);
bool InitUILabelDisplay(void);
UIImageView *imageMicrophone{nullptr};
UIViewGroup *group{nullptr};
UIView::OnClickListener* clickLeftListener{nullptr};
UIImageView *imageHandUp{nullptr};
UIImageView *imageHorns{nullptr};
UILabel *callerDisplay{nullptr};
UILabel *currentTimes{nullptr};
UILabel *callDuration{nullptr};
};
}
#endif