mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-15 09:32:00 -05:00
After deleting/add a contact from the calllog, sms options, and sms thread options, we return to the start screen of the current application
29 lines
867 B
C++
29 lines
867 B
C++
// Copyright (c) 2017-2021, 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/ThreadRecord.hpp>
|
|
|
|
namespace gui
|
|
{
|
|
|
|
class ThreadWindowOptions : public OptionWindow
|
|
{
|
|
public:
|
|
explicit ThreadWindowOptions(app::ApplicationCommon *app, std::string windowName);
|
|
void onBeforeShow(ShowMode mode, SwitchData *data) override;
|
|
|
|
private:
|
|
std::shared_ptr<ThreadRecord> thread;
|
|
gui::option::OptionRecordValidity threadValidCode{gui::option::OptionRecordValidity::Uninitialized};
|
|
|
|
std::list<Option> threadWindowOptions(app::ApplicationMessages *app, const ThreadRecord *record);
|
|
gui::option::OptionRecordValidity getThreadValid();
|
|
};
|
|
|
|
} // namespace gui
|