mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Notifications management moved to AuthSession.
Also implemented Global::WorkMode() as an base::Variable.
This commit is contained in:
@@ -87,7 +87,7 @@ public:
|
||||
void clearPasscode();
|
||||
void checkAutoLockIn(int msec);
|
||||
void setupIntro();
|
||||
void setupMain(const MTPUser *user = 0);
|
||||
void setupMain(const MTPUser *user = nullptr);
|
||||
void serviceNotification(const TextWithEntities &message, const MTPMessageMedia &media = MTP_messageMediaEmpty(), int32 date = 0, bool force = false);
|
||||
void serviceNotificationLocal(QString text);
|
||||
void sendServiceHistoryRequest();
|
||||
@@ -120,12 +120,6 @@ public:
|
||||
TempDirState localStorageState();
|
||||
void tempDirDelete(int task);
|
||||
|
||||
void notifySettingGot();
|
||||
void notifySchedule(History *history, HistoryItem *item);
|
||||
void notifyClear(History *history = 0);
|
||||
void notifyClearFast();
|
||||
void notifyUpdateAll();
|
||||
|
||||
QImage iconLarge() const;
|
||||
|
||||
void sendPaths();
|
||||
@@ -183,8 +177,6 @@ public slots:
|
||||
void onClearFinished(int task, void *manager);
|
||||
void onClearFailed(int task, void *manager);
|
||||
|
||||
void notifyShowNext();
|
||||
|
||||
void onShowAddContact();
|
||||
void onShowNewGroup();
|
||||
void onShowNewChannel();
|
||||
@@ -240,28 +232,6 @@ private:
|
||||
SingleTimer _autoLockTimer;
|
||||
TimeMs _shouldLockAt = 0;
|
||||
|
||||
using NotifyWhenMap = QMap<MsgId, TimeMs>;
|
||||
using NotifyWhenMaps = QMap<History*, NotifyWhenMap>;
|
||||
NotifyWhenMaps _notifyWhenMaps;
|
||||
struct NotifyWaiter {
|
||||
NotifyWaiter(MsgId msg, TimeMs when, PeerData *notifyByFrom)
|
||||
: msg(msg)
|
||||
, when(when)
|
||||
, notifyByFrom(notifyByFrom) {
|
||||
}
|
||||
MsgId msg;
|
||||
TimeMs when;
|
||||
PeerData *notifyByFrom;
|
||||
};
|
||||
using NotifyWaiters = QMap<History*, NotifyWaiter>;
|
||||
NotifyWaiters _notifyWaiters;
|
||||
NotifyWaiters _notifySettingWaiters;
|
||||
SingleTimer _notifyWaitTimer;
|
||||
|
||||
using NotifyWhenAlert = QMap<TimeMs, PeerData*>;
|
||||
using NotifyWhenAlerts = QMap<History*, NotifyWhenAlert>;
|
||||
NotifyWhenAlerts _notifyWhenAlerts;
|
||||
|
||||
};
|
||||
|
||||
class PreLaunchWindow : public TWidget {
|
||||
|
Reference in New Issue
Block a user