/
NeoChapay
/
telegraf
Обзор
Документация
Войти
/
NeoChapay
/
telegraf
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/notificationmanager.h
52 строки
2 KB
Mikhail Barashkov
refactor: remove standard comments from header of all source files
07 сен 2024, 14:40
07 сен 2024, 14:40
c79ea8f
Код
Авторство
О чём код?
#ifndef NOTIFICATIONMANAGER_H #define NOTIFICATIONMANAGER_H #include <QObject> #include <nemonotifications-qt5/notification.h> #include "tdlibwrapper.h" #include "appsettings.h" #include "mceinterface.h" class ChatModel; class NotificationManager : public QObject { Q_OBJECT class ChatInfo; class NotificationGroup; public: NotificationManager(TDLibWrapper *tdLibWrapper, AppSettings *appSettings, MceInterface *mceInterface, ChatModel *chatModel); ~NotificationManager() override; public slots: void handleUpdateActiveNotifications(const QVariantList ¬ificationGroups); void handleUpdateNotificationGroup(const QVariantMap ¬ificationGroupUpdate); void handleUpdateNotification(const QVariantMap &updatedNotification); void handleChatDiscovered(const QString &chatId, const QVariantMap &chatInformation); void handleChatTitleUpdated(const QString &chatId, const QString &title); private: void publishNotification(const NotificationGroup *notificationGroup, bool needFeedback); void controlLedNotification(bool enabled); void updateNotificationGroup(int groupId, qlonglong chatId, int totalCount, const QVariantList &addedNotifications, const QVariantList &removedNotificationIds = QVariantList(), AppSettings::NotificationFeedback feedback = AppSettings::NotificationFeedbackNone); private: TDLibWrapper *tdLibWrapper; AppSettings *appSettings; MceInterface *mceInterface; ChatModel *chatModel; QMap<qlonglong,ChatInfo*> chatMap; QMap<int,NotificationGroup*> notificationGroups; QString appIconFile; }; #endif // NOTIFICATIONMANAGER_H