mcu_hi3321_watch/tjd/ui/app/phone/phone_app/TjdUiAppPhoneModel.h
2025-05-26 20:15:20 +08:00

47 lines
1.1 KiB
C++

/*----------------------------------------------------------------------------
* Copyright (c) TJD Technologies Co., Ltd. 2025. All rights reserved.
*
* Description: TjdUiAppPhoneModel.h
*
* Author: luziquan@ss-tjd.com
*
* Create: 2025-08-16
*--------------------------------------------------------------------------*/
#ifndef TJD_UI_APP_PHONE_MODEL_H
#define TJD_UI_APP_PHONE_MODEL_H
#include "cmsis_os2.h"
#include <string>
#include <vector>
#include "TjdPhoneService.h"
namespace TJD {
class TjdUiAppPhoneModel
{
public:
static TjdUiAppPhoneModel &GetInstance(void)
{
static TjdUiAppPhoneModel instance;
return instance;
};
bool IsBtConnected(void);
/* 拨打电话 */
int32_t DialCall(const std::string &phoneNumber);
int32_t SetMuteCall(bool mute);
int32_t DialCallEnd(void);
int32_t CallInAnswer(void);
int32_t CallInReply(void);
int32_t CallInReject(void);
std::vector<CallLogInfo> GetCallLogList(void);
private:
TjdUiAppPhoneModel() {};
~TjdUiAppPhoneModel() {};
};
} // namespace TJD
#endif