File indexing completed on 2024-12-08 10:25:49
0001 /* 0002 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "libruqolacore_export.h" 0010 #include <TextEmoticonsCore/CustomEmojiIconManager> 0011 class RocketChatAccount; 0012 class LIBRUQOLACORE_EXPORT CustomEmojiIconManager : public TextEmoticonsCore::CustomEmojiIconManager 0013 { 0014 Q_OBJECT 0015 public: 0016 explicit CustomEmojiIconManager(QObject *parent = nullptr); 0017 ~CustomEmojiIconManager() override; 0018 0019 [[nodiscard]] QIcon generateIcon(const QString &customIdentifier) override; 0020 [[nodiscard]] QString fileName(const QString &customIdentifier) override; 0021 0022 void setCurrentRocketChatAccount(RocketChatAccount *currentRocketChatAccount); 0023 0024 RocketChatAccount *currentRocketChatAccount() const; 0025 0026 private: 0027 RocketChatAccount *mCurrentRocketChatAccount = nullptr; 0028 };