2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

os x setup done, fixing localtime on each os x wakeup or application active status change

This commit is contained in:
John Preston
2014-11-12 23:30:26 +03:00
parent e0ef1d434d
commit 379c5f75e7
33 changed files with 236 additions and 86 deletions

View File

@@ -284,6 +284,8 @@ public:
void loadMediaBack(PeerData *peer, MediaOverviewType type, bool many = false);
void peerUsernameChanged(PeerData *peer);
void checkLastUpdate(bool afterSleep);
~MainWidget();
signals:
@@ -380,14 +382,14 @@ private:
int updPts, updDate, updQts, updSeq;
bool updInited;
QTimer noUpdatesTimer;
SingleTimer noUpdatesTimer;
mtpRequestId onlineRequest;
QTimer onlineTimer;
QTimer onlineUpdater;
SingleTimer onlineTimer;
SingleTimer onlineUpdater;
QSet<PeerData*> updateNotifySettingPeers;
QTimer updateNotifySettingTimer;
SingleTimer updateNotifySettingTimer;
typedef QMap<PeerData*, mtpRequestId> ReadRequests;
ReadRequests _readRequests;
@@ -400,8 +402,10 @@ private:
QMap<int32, MTPmessages_StatedMessage> _bySeqStatedMessage;
QMap<int32, MTPmessages_StatedMessages> _bySeqStatedMessages;
QMap<int32, int32> _bySeqPart;
QTimer _bySeqTimer;
SingleTimer _bySeqTimer;
int32 _failDifferenceTimeout; // growing timeout for getDifference calls, if it fails
QTimer _failDifferenceTimer;
SingleTimer _failDifferenceTimer;
uint64 _lastUpdateTime;
};