mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-24 06:55:37 -04:00
* [EGD-3169] added sms templates model and item fixed common class name convention * [EGD-3169] added templates window Passing template to new sms window is already working * [EGD-3169] PR fixes from DB PR * [EGD-3169] add universal callback for templates items * [EGD-3169] requesting templates from more 2 windows * [EGD-3169] missign change - display template in threads window * [EGD-3169] minor fixes * [EGD-3169] minimal clean up * [EGD-3169] fixed some layout constatnt * [EGD-3169] rem minor comments and logs * [EGD-3089] rem redundant vector include * [EGD-3169] PR fixes * [EGD-3169] fixes afeter rebase * [EGD-3169] workaround for list view issue - added 2 dump entries * [EGD-3169] PR fixes * [EGD-3169] style fixes * [EGD-3169] fix for 0x0D char on enter in text widget * [EGD-3169] PR fixes * [EGD-3169] compilation issue
46 lines
1.2 KiB
C++
46 lines
1.2 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 SMSSendRequest : public gui::SwitchData
|
|
{
|
|
public:
|
|
std::shared_ptr<ContactRecord> contact = nullptr;
|
|
SMSSendRequest(std::shared_ptr<ContactRecord> contact) : contact(contact)
|
|
{}
|
|
virtual ~SMSSendRequest() = default;
|
|
};
|
|
|
|
class SMSTemplateData : public gui::SwitchData
|
|
{
|
|
public:
|
|
SMSTemplateData(std::shared_ptr<SMSTemplateRecord> templ) : templ(templ)
|
|
{}
|
|
virtual ~SMSTemplateData() = default;
|
|
std::shared_ptr<SMSTemplateRecord> templ = nullptr;
|
|
};
|
|
|
|
class SMSTemplateRequest : public gui::SwitchData
|
|
{
|
|
public:
|
|
SMSTemplateRequest(const std::string &requestingWindow) : requestingWindow(requestingWindow)
|
|
{}
|
|
virtual ~SMSTemplateRequest() = default;
|
|
|
|
std::string requestingWindow;
|
|
}; |