File indexing completed on 2024-12-22 04:45:35
0001 /* 0002 SPDX-FileCopyrightText: 2021-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "administratorcustomemojicreateorupdatewidget.h" 0010 #include "libruqolawidgets_private_export.h" 0011 #include <QDialog> 0012 class LIBRUQOLAWIDGETS_TESTS_EXPORT AdministratorCustomEmojiCreateOrUpdateDialog : public QDialog 0013 { 0014 Q_OBJECT 0015 public: 0016 explicit AdministratorCustomEmojiCreateOrUpdateDialog(QWidget *parent = nullptr); 0017 ~AdministratorCustomEmojiCreateOrUpdateDialog() override; 0018 0019 void setCustomEmojiInfo(const AdministratorCustomEmojiCreateOrUpdateWidget::CustomEmojiCreateInfo &info); 0020 [[nodiscard]] AdministratorCustomEmojiCreateOrUpdateWidget::CustomEmojiCreateInfo info() const; 0021 0022 [[nodiscard]] AdministratorCustomEmojiCreateOrUpdateWidget::AdministratorCustomEmojiCreateOrUpdateType type() const; 0023 void setType(AdministratorCustomEmojiCreateOrUpdateWidget::AdministratorCustomEmojiCreateOrUpdateType newType); 0024 0025 private: 0026 LIBRUQOLAWIDGETS_NO_EXPORT void readConfig(); 0027 LIBRUQOLAWIDGETS_NO_EXPORT void writeConfig(); 0028 AdministratorCustomEmojiCreateOrUpdateWidget *const mCreateWidget; 0029 };