Files
MuditaOS/module-apps/application-messages/windows/ThreadWindowOptions.hpp
Przemyslaw Brudny d731a85dfa [EGD-7920] GUI fixes after deleting/add contact
After deleting/add a contact from the calllog, sms options,
and sms thread options, we return to the start screen
of the current application
2021-11-22 12:25:13 +01:00

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