2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Show tdesktop cloud themes in a box.

This commit is contained in:
John Preston
2019-09-03 18:24:51 +03:00
parent 95afcbb485
commit ac8f924909
28 changed files with 684 additions and 192 deletions

View File

@@ -64,6 +64,7 @@ class Folder;
class LocationPoint;
class WallPaper;
class ScheduledMessages;
class CloudThemes;
class Session final {
public:
@@ -87,10 +88,12 @@ public:
[[nodiscard]] const Groups &groups() const {
return _groups;
}
[[nodiscard]] ScheduledMessages &scheduledMessages() const {
return *_scheduledMessages;
}
[[nodiscard]] CloudThemes &cloudThemes() const {
return *_cloudThemes;
}
[[nodiscard]] MsgId nextNonHistoryEntryId() {
return ++_nonHistoryEntryId;
}
@@ -994,6 +997,7 @@ private:
Groups _groups;
std::unique_ptr<ScheduledMessages> _scheduledMessages;
std::unique_ptr<CloudThemes> _cloudThemes;
MsgId _nonHistoryEntryId = ServerMaxMsgId;
rpl::lifetime _lifetime;