// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #pragma once #include #include #include #include #include #include namespace gui { class SMSThreadViewWindow : public AppWindow, public app::AsyncCallbackReceiver { private: std::shared_ptr smsModel; gui::ListView *smsList = nullptr; auto requestContactName(unsigned int ContactID) -> void; auto handleContactNameQueryResponse(db::QueryResult *) -> bool; public: explicit SMSThreadViewWindow(app::Application *app); ~SMSThreadViewWindow() override; bool onInput(const InputEvent &inputEvent) override; void onBeforeShow(ShowMode mode, SwitchData *data) override; void onClose() override; bool onDatabaseMessage(sys::Message *msgl) override; void rebuild() override; void buildInterface() override; void destroyInterface() override; }; } /* namespace gui */