mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-10-26 16:38:31 -04:00
* [EGD-2569] added # and * as numeric inputs * [EGD-2569] added '+' input sign * [EGD-2569] created defines with window names for call app * [EGD-2547] contact recognition during call * [EGD-2547] moved UiCommon * [fix][EGD-2547] fix for setting empty UTF string to text gui field * [EGD-2547] adding new contact from call enter window * [EGD-2547] minor clean up and added param validation * [EGD-2547] easier method to add contact * [EGD-2569] added new keyboard profile (numeric with special signs) Desktop is passing it properly to Call app. * [EGD-2569] added transaltor to enternumberwindow * [EGD-2569] reverted unnecessary changes [EGD-2569] revert [EGD-2569] revert of not needed changes * [EGD-2569] fix in phone.kprof * [EGD-2547] unified API to call and send sms * [EGD-2547] changed default to true * [EGD-2547] minor clean up. * [EGD-2569] revert changes in PinLockWindow.cpp * [EGD-2569][fix] eneter as null char * [EGD-2547] PR fixes [EGD-2547] code review fixes / refactored UiCommon [EGD-2547] more code review fixes [EGD-2547] rem not needed cast * [EGD-2547] PR fixes * [EGD-2547] splitting of UiCommon * [EGD-2547] typo fix * [EGD-2547] revereted one line conversion from char to string.
56 lines
1.8 KiB
C++
56 lines
1.8 KiB
C++
/*
|
|
* @file ApplicationCall.hpp
|
|
* @author Robert Borzecki (robert.borzecki@mudita.com)
|
|
* @date 1 lip 2019
|
|
* @brief
|
|
* @copyright Copyright (C) 2019 mudita.com
|
|
* @details
|
|
*/
|
|
#ifndef MODULE_APPS_APPLICATION_CALL_APPLICATIONCALL_HPP_
|
|
#define MODULE_APPS_APPLICATION_CALL_APPLICATIONCALL_HPP_
|
|
|
|
#include "Application.hpp"
|
|
#include "SystemManager/SystemManager.hpp"
|
|
#include "Service/Message.hpp"
|
|
|
|
namespace app {
|
|
|
|
inline const std::string name_call = "ApplicationCall";
|
|
namespace window
|
|
{
|
|
inline const std::string name_call = "CallWindow";
|
|
inline const std::string name_enterNumber = "EnterNumberWindow";
|
|
inline const std::string name_emergencyCall = "EmergencyCallWindow";
|
|
} // namespace window
|
|
/*
|
|
*
|
|
*/
|
|
class ApplicationCall: public Application {
|
|
protected:
|
|
std::string phoneNumber;
|
|
AppTimer timerCall;
|
|
uint32_t callDuration = 0;
|
|
uint32_t callEndTime = -1;
|
|
void timerCallCallback();
|
|
public:
|
|
ApplicationCall( std::string name=name_call, std::string parent = "", bool startBackgound = false );
|
|
virtual ~ApplicationCall();
|
|
sys::Message_t DataReceivedHandler(sys::DataMessage* msgl,sys::ResponseMessage* resp) override;
|
|
sys::ReturnCodes InitHandler() override;
|
|
sys::ReturnCodes DeinitHandler() override;
|
|
|
|
sys::ReturnCodes SwitchPowerModeHandler(const sys::ServicePowerMode mode) override final{return sys::ReturnCodes::Success;}
|
|
|
|
void createUserInterface() override;
|
|
void destroyUserInterface() override;
|
|
void setDisplayedNumber( std::string num );
|
|
const std::string& getDisplayedNumber();
|
|
//starts timer that upon triggering, if no user action was performed, will hide application to background and move to previous application
|
|
void runCallTimer();
|
|
void stopCallTimer();
|
|
};
|
|
|
|
} /* namespace app */
|
|
|
|
#endif /* MODULE_APPS_APPLICATION_CALL_APPLICATIONCALL_HPP_ */
|