mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-02-23 10:17:18 -05:00
Fix of the issue that copy to clipboard option was missing from the menu on 'New message' window.
39 lines
1.3 KiB
C++
39 lines
1.3 KiB
C++
// Copyright (c) 2017-2023, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
#include "ApplicationMessages.hpp"
|
|
|
|
#include <OptionWindow.hpp>
|
|
#include <Interface/SMSRecord.hpp>
|
|
#include <Option.hpp>
|
|
|
|
namespace gui
|
|
{
|
|
class SmsWindowOptions : public OptionWindow
|
|
{
|
|
public:
|
|
SmsWindowOptions(app::ApplicationCommon *app, const std::string &windowName);
|
|
void onBeforeShow(ShowMode mode, SwitchData *data) override;
|
|
|
|
private:
|
|
SMSRecord record;
|
|
gui::option::OptionRecordValidity recordValidCode{gui::option::OptionRecordValidity::Uninitialized};
|
|
|
|
std::list<gui::Option> smsWindowOptions(app::ApplicationMessages *app, const SMSRecord &record);
|
|
gui::option::OptionRecordValidity getRecordValid();
|
|
};
|
|
} // namespace gui
|
|
|
|
/// @brief options for New Message Window
|
|
///
|
|
/// @param app - application pointer
|
|
/// @param requestingWindow -requesting window - intentionally return point from an "action"
|
|
/// @param text - text object to be eventually modified by options operations
|
|
///
|
|
/// @return list of options
|
|
std::list<gui::Option> newMessageWindowOptions(app::ApplicationMessages *app,
|
|
const std::string &requestingWindow,
|
|
gui::Text *text);
|