/
NeoChapay
/
telegraf
Обзор
Документация
Войти
/
NeoChapay
/
telegraf
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/stickermanager.h
51 строка
1 KB
Mikhail Barashkov
refactor: remove standard comments from header of all source files
07 сен 2024, 14:40
07 сен 2024, 14:40
c79ea8f
Код
Авторство
О чём код?
#ifndef STICKERMANAGER_H #define STICKERMANAGER_H #include <QObject> #include <QVariantMap> #include <QVariantList> #include "tdlibwrapper.h" class StickerManager : public QObject { Q_OBJECT public: explicit StickerManager(TDLibWrapper *tdLibWrapper, QObject *parent = nullptr); ~StickerManager(); Q_INVOKABLE QVariantList getRecentStickers(); Q_INVOKABLE QVariantList getInstalledStickerSets(); Q_INVOKABLE QVariantMap getStickerSet(const QString &stickerSetId); Q_INVOKABLE bool hasStickerSet(const QString &stickerSetId); Q_INVOKABLE bool isStickerSetInstalled(const QString &stickerSetId); Q_INVOKABLE bool needsReload(); Q_INVOKABLE void setNeedsReload(const bool &reloadNeeded); signals: void stickerSetsReceived(); private slots: void handleRecentStickersUpdated(const QVariantList &stickerIds); void handleStickersReceived(const QVariantList &stickers); void handleInstalledStickerSetsUpdated(const QVariantList &stickerSetIds); void handleStickerSetsReceived(const QVariantList &stickerSets); void handleStickerSetReceived(const QVariantMap &stickerSet); private: TDLibWrapper *tdLibWrapper; QVariantList recentStickers; QVariantList recentStickerIds; QVariantList installedStickerSets; QVariantList installedStickerSetIds; QVariantMap stickers; QVariantMap stickerSets; QVariantMap stickerSetMap; bool reloadNeeded; }; #endif // STICKERMANAGER_H