mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-05-19 05:57:30 -04:00
39 lines
1.1 KiB
C++
39 lines
1.1 KiB
C++
// Copyright (c) 2017-2024, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/blob/master/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
#include "ThreadsModel.hpp"
|
|
|
|
#include <AppWindow.hpp>
|
|
#include <gui/widgets/Icon.hpp>
|
|
#include <Image.hpp>
|
|
#include <Label.hpp>
|
|
#include <ListView.hpp>
|
|
#include <Text.hpp>
|
|
|
|
#include <functional>
|
|
#include <string>
|
|
|
|
namespace gui
|
|
{
|
|
class MessagesMainWindow : public AppWindow, public app::AsyncCallbackReceiver
|
|
{
|
|
protected:
|
|
Icon *emptyListIcon = nullptr;
|
|
std::shared_ptr<ThreadsModel> threadsModel = nullptr;
|
|
gui::ListView *list = nullptr;
|
|
|
|
public:
|
|
explicit MessagesMainWindow(app::ApplicationCommon *app);
|
|
|
|
// virtual methods
|
|
bool onInput(const InputEvent &inputEvent) override;
|
|
void onBeforeShow(ShowMode mode, SwitchData *data) override;
|
|
bool onDatabaseMessage(sys::Message *msgl) override;
|
|
|
|
void rebuild() override;
|
|
void buildInterface() override;
|
|
};
|
|
} /* namespace gui */
|