mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-03 20:57:19 -04:00
* [EGD-2546] added contact details/addition per contact type * [EGD-2546] gui::Option - controlability of displaying arrow * [EGD-2546] rewritten calllof options window to OptionsWindon framework * [EGD-2546] minor clean up * [EGD-2546] clean up * [EGD-2546] PR fixes * [EGD-2546] new namespace for gui options * [EGD-2546] PR fixes * [EGD-2546] PR fix
107 lines
3.4 KiB
C++
107 lines
3.4 KiB
C++
#pragma once
|
|
|
|
#include "Application.hpp"
|
|
#include <OptionWindow.hpp>
|
|
#include <service-db/api/DBServiceAPI.hpp>
|
|
|
|
namespace app
|
|
{
|
|
enum class CallOperation
|
|
{
|
|
ExecuteCall,
|
|
PrepareCall
|
|
};
|
|
|
|
/// @brief requests selected call operation
|
|
///
|
|
/// @param app - requesting application
|
|
/// @param CallOperation - selected call operation.
|
|
///
|
|
/// @parem contact - contact record on which the operation is requested
|
|
///
|
|
/// @return true if succeed
|
|
bool call(Application *app, CallOperation callOperation, const ContactRecord &contact);
|
|
|
|
/// @brief requests selected call operation
|
|
///
|
|
/// @param app - requesting application
|
|
/// @param CallOperation - selected call operation.
|
|
///
|
|
/// @param number - phone number (assigned to contact) on which the operation is requested
|
|
///
|
|
/// @return true if succeed
|
|
bool call(Application *app, CallOperation callOperation, const std::string &number);
|
|
|
|
/// @brief requests selected call operation
|
|
///
|
|
/// @param app - requesting application
|
|
/// @param CallOperation - selected call operation.
|
|
///
|
|
/// @param key - phone key on which the operation is requested
|
|
///
|
|
/// @return true if succeed
|
|
bool call(Application *app, CallOperation callOperation, uint32_t key);
|
|
|
|
enum class SmsOperation
|
|
{
|
|
Add
|
|
};
|
|
|
|
/// @brief requests selected sms operation
|
|
///
|
|
/// @param app - requesting application
|
|
/// @param smsOperation - selected sms operation.
|
|
///
|
|
/// @parem contact - contact record on which the operation is requested
|
|
///
|
|
/// @return true if succeed
|
|
bool sms(Application *app, SmsOperation smsOperation, const ContactRecord &contact);
|
|
|
|
/// @brief requests selected sms operation
|
|
///
|
|
/// @param app - requesting application
|
|
/// @param smsOperation - selected sms operation.
|
|
///
|
|
/// @parem number - phone number (assigned to contact) on which the operation is requested
|
|
///
|
|
/// @return true if succeed
|
|
bool sms(Application *app, SmsOperation smsOperation, const std::string &number);
|
|
|
|
enum class ContactOperation
|
|
{
|
|
Add,
|
|
Details,
|
|
Edit
|
|
};
|
|
|
|
/// @brief requests selected contact operation
|
|
///
|
|
/// @param app - requesting application
|
|
/// @param contactOperation - selected contact operation.
|
|
///
|
|
/// @parem contact - contact record on which the operation is requested
|
|
///
|
|
/// @return true if succeed
|
|
bool contact(Application *app, ContactOperation contactOperation, const ContactRecord &contact);
|
|
|
|
/// @brief requests selected contact operation
|
|
///
|
|
/// @param app - requesting application
|
|
/// @param contactOperation - selected contact operation.
|
|
///
|
|
/// @parem number - phone number (assigned to contact) on which the operation is requested
|
|
///
|
|
/// @return true if succeed
|
|
bool contact(Application *app, ContactOperation contactOperation, const std::string &number);
|
|
|
|
/// @brief requests selected contact operation
|
|
///
|
|
/// @param app - requesting application
|
|
/// @param contactOperation - selected contact operation. @note ContactOperation::Add is no valid in this case
|
|
///
|
|
/// @parem contactId - id of contact on which the operation is requested
|
|
///
|
|
/// @return true if succeed
|
|
bool contact(Application *app, ContactOperation contactOperation, uint32_t contactId);
|
|
} // namespace app
|