mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-10-26 00:18:31 -04:00
* [EGD-2825] clipboard class implementation * [EGD-2825] returnToPreviousView moved from appwindow to application class * [EGD-2825] paste * [EGD-2825] fixed paste label * [EGD-2825] copy * [EGD-2825] comment * [EGD-2825] removed init data * [EDG-2825] add clipboard UT * [EGD-2825] add sms fw option renamed SMSTemplateData to SMSTextData * [EGD-2825] fxies in EventStore * [EGD-2825] PR fixes * [EGD-2825] rem not needed comment
73 lines
1.6 KiB
C++
73 lines
1.6 KiB
C++
#pragma once
|
|
|
|
#include <SwitchData.hpp>
|
|
#include <SMSTemplateRecord.hpp>
|
|
#include <ContactRecord.hpp>
|
|
#include <ThreadRecord.hpp>
|
|
#include <Database/Database.hpp>
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
class SMSThreadData : public gui::SwitchData
|
|
{
|
|
public:
|
|
std::shared_ptr<ThreadRecord> thread = nullptr;
|
|
SMSThreadData(std::shared_ptr<ThreadRecord> thread) : thread(thread)
|
|
{}
|
|
virtual ~SMSThreadData() = default;
|
|
};
|
|
|
|
class SMSRequest : public gui::SwitchData
|
|
{
|
|
protected:
|
|
utils::PhoneNumber::View phoneNumber;
|
|
|
|
public:
|
|
SMSRequest() = delete;
|
|
SMSRequest(const utils::PhoneNumber::View &phoneNumber) : phoneNumber(phoneNumber)
|
|
{}
|
|
virtual ~SMSRequest() = default;
|
|
|
|
const utils::PhoneNumber::View &getPhoneNumber() const
|
|
{
|
|
return phoneNumber;
|
|
};
|
|
};
|
|
|
|
class SMSSendRequest : public SMSRequest
|
|
{
|
|
public:
|
|
SMSSendRequest(const utils::PhoneNumber::View &phoneNumber) : SMSRequest(phoneNumber)
|
|
{}
|
|
virtual ~SMSSendRequest() = default;
|
|
};
|
|
|
|
class SMSSendTemplateRequest : public SMSRequest
|
|
{
|
|
public:
|
|
SMSSendTemplateRequest(const utils::PhoneNumber::View &phoneNumber) : SMSRequest(phoneNumber)
|
|
{}
|
|
virtual ~SMSSendTemplateRequest() = default;
|
|
};
|
|
|
|
class SMSTemplateSent : public gui::SwitchData
|
|
{};
|
|
|
|
class SMSTextData : public gui::SwitchData
|
|
{
|
|
public:
|
|
SMSTextData(const UTF8 &text) : text(text)
|
|
{}
|
|
virtual ~SMSTextData() = default;
|
|
UTF8 text;
|
|
};
|
|
|
|
class SMSTemplateRequest : public gui::SwitchData
|
|
{
|
|
public:
|
|
SMSTemplateRequest(const std::string &requestingWindow) : requestingWindow(requestingWindow)
|
|
{}
|
|
virtual ~SMSTemplateRequest() = default;
|
|
|
|
std::string requestingWindow;
|
|
}; |