// 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 "OptionWindow.hpp" #include "application-phonebook/data/PhonebookItemData.hpp" #include namespace gui { class PhonebookContactOptions : public OptionWindow { public: PhonebookContactOptions(app::ApplicationCommon *app); ~PhonebookContactOptions() override = default; auto handleSwitchData(SwitchData *data) -> bool override; private: PhonebookItemData::RequestType requestType = PhonebookItemData::RequestType::Internal; enum class NotificationType { Block, Delete, Unblock }; std::shared_ptr contact = nullptr; auto contactOptionsList() -> std::list; auto contactRemove() -> bool; auto showNotification(NotificationType notificationType) -> bool; }; }; // namespace gui