2017-02-23 12:32:28 +03:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
2018-01-03 13:23:14 +03:00
|
|
|
the official desktop application for the Telegram messaging service.
|
2017-02-23 12:32:28 +03:00
|
|
|
|
2018-01-03 13:23:14 +03:00
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
2017-02-23 12:32:28 +03:00
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
2017-10-22 20:06:57 +03:00
|
|
|
#include <rpl/filter.h>
|
2017-11-05 17:57:51 +04:00
|
|
|
#include <rpl/variable.h>
|
2017-04-09 21:06:06 +03:00
|
|
|
#include "base/timer.h"
|
|
|
|
|
2017-12-25 14:13:27 +03:00
|
|
|
class ApiWrap;
|
2018-09-29 15:18:26 +03:00
|
|
|
|
2020-06-11 13:41:03 +04:00
|
|
|
namespace Api {
|
|
|
|
class Updates;
|
2020-07-06 13:58:18 +04:00
|
|
|
class SendProgressManager;
|
2020-06-11 13:41:03 +04:00
|
|
|
} // namespace Api
|
|
|
|
|
2019-11-13 11:31:12 +03:00
|
|
|
namespace MTP {
|
|
|
|
class Instance;
|
2020-06-17 13:36:25 +04:00
|
|
|
struct ConfigFields;
|
2019-11-13 11:31:12 +03:00
|
|
|
} // namespace MTP
|
|
|
|
|
2018-09-29 15:18:26 +03:00
|
|
|
namespace Support {
|
2018-11-15 19:36:04 +04:00
|
|
|
class Helper;
|
2018-10-02 23:39:54 +03:00
|
|
|
class Templates;
|
2025-02-12 11:21:10 +04:00
|
|
|
class FastButtonsBots;
|
2018-09-29 15:18:26 +03:00
|
|
|
} // namespace Support
|
|
|
|
|
2018-01-04 12:40:58 +03:00
|
|
|
namespace Data {
|
2018-01-04 13:22:53 +03:00
|
|
|
class Session;
|
2020-06-12 16:12:34 +04:00
|
|
|
class Changes;
|
2024-04-09 19:04:18 +04:00
|
|
|
class RecentPeers;
|
2025-06-17 10:03:33 +03:00
|
|
|
class RecentSharedMediaGifts;
|
2024-04-13 18:16:07 +03:00
|
|
|
class ScheduledMessages;
|
2024-04-13 17:56:45 +03:00
|
|
|
class SponsoredMessages;
|
2024-04-09 19:04:18 +04:00
|
|
|
class TopPeers;
|
2024-05-21 18:15:56 +04:00
|
|
|
class Factchecks;
|
2024-07-26 17:23:41 +02:00
|
|
|
class LocationPickers;
|
2024-08-06 12:48:06 +02:00
|
|
|
class Credits;
|
2025-05-06 11:11:45 +03:00
|
|
|
class PromoSuggestions;
|
2018-01-04 12:40:58 +03:00
|
|
|
} // namespace Data
|
|
|
|
|
2024-05-09 21:01:01 +04:00
|
|
|
namespace HistoryView::Reactions {
|
|
|
|
class CachedIconFactory;
|
|
|
|
} // namespace HistoryView::Reactions
|
|
|
|
|
2017-03-04 22:36:59 +03:00
|
|
|
namespace Storage {
|
2019-12-05 11:32:33 +03:00
|
|
|
class DownloadManagerMtproto;
|
2017-08-04 16:54:32 +02:00
|
|
|
class Uploader;
|
2017-09-04 14:40:02 +03:00
|
|
|
class Facade;
|
2020-06-09 20:57:05 +04:00
|
|
|
class Account;
|
2020-06-18 22:04:16 +04:00
|
|
|
class Domain;
|
2017-03-04 22:36:59 +03:00
|
|
|
} // namespace Storage
|
|
|
|
|
|
|
|
namespace Window {
|
2020-06-11 13:41:03 +04:00
|
|
|
class SessionController;
|
2020-06-24 11:56:16 +04:00
|
|
|
struct TermsLock;
|
2017-03-04 22:36:59 +03:00
|
|
|
} // namespace Window
|
|
|
|
|
2019-08-01 15:13:02 +01:00
|
|
|
namespace Stickers {
|
|
|
|
class EmojiPack;
|
2020-04-06 13:07:49 +04:00
|
|
|
class DicePacks;
|
2022-07-13 20:12:40 +03:00
|
|
|
class GiftBoxPack;
|
2019-08-01 15:13:02 +01:00
|
|
|
} // namespace Stickers;
|
|
|
|
|
2022-03-29 13:00:10 +04:00
|
|
|
namespace InlineBots {
|
|
|
|
class AttachWebView;
|
|
|
|
} // namespace InlineBots
|
|
|
|
|
2023-10-26 23:40:53 +04:00
|
|
|
namespace Ui {
|
|
|
|
struct ColorIndicesCompressed;
|
|
|
|
} // namespace Ui
|
|
|
|
|
2019-07-24 13:45:24 +02:00
|
|
|
namespace Main {
|
|
|
|
|
|
|
|
class Account;
|
2024-03-29 15:30:50 +04:00
|
|
|
class AppConfig;
|
2020-06-18 22:04:16 +04:00
|
|
|
class Domain;
|
2020-06-18 16:47:09 +04:00
|
|
|
class SessionSettings;
|
2021-11-09 16:10:51 +04:00
|
|
|
class SendAsPeers;
|
2019-07-24 13:45:24 +02:00
|
|
|
|
2025-03-10 17:52:13 +04:00
|
|
|
struct FreezeInfo {
|
|
|
|
TimeId since = 0;
|
|
|
|
TimeId until = 0;
|
|
|
|
QString appealUrl;
|
|
|
|
|
|
|
|
explicit operator bool() const {
|
|
|
|
return since != 0;
|
|
|
|
}
|
|
|
|
friend inline bool operator==(
|
|
|
|
const FreezeInfo &,
|
|
|
|
const FreezeInfo &) = default;
|
|
|
|
};
|
|
|
|
|
2021-07-15 14:12:38 +03:00
|
|
|
class Session final : public base::has_weak_ptr {
|
2017-02-23 12:32:28 +03:00
|
|
|
public:
|
2019-10-02 13:46:02 +03:00
|
|
|
Session(
|
2020-06-18 22:04:16 +04:00
|
|
|
not_null<Account*> account,
|
2019-10-02 13:46:02 +03:00
|
|
|
const MTPUser &user,
|
2020-06-18 16:47:09 +04:00
|
|
|
std::unique_ptr<SessionSettings> settings);
|
2019-07-24 13:45:24 +02:00
|
|
|
~Session();
|
2017-02-23 12:32:28 +03:00
|
|
|
|
2019-07-24 13:45:24 +02:00
|
|
|
Session(const Session &other) = delete;
|
|
|
|
Session &operator=(const Session &other) = delete;
|
2017-02-23 12:32:28 +03:00
|
|
|
|
2020-06-18 22:04:16 +04:00
|
|
|
[[nodiscard]] Account &account() const;
|
2020-06-09 20:57:05 +04:00
|
|
|
[[nodiscard]] Storage::Account &local() const;
|
2020-06-18 22:04:16 +04:00
|
|
|
[[nodiscard]] Domain &domain() const;
|
|
|
|
[[nodiscard]] Storage::Domain &domainLocal() const;
|
2019-06-05 23:41:51 +03:00
|
|
|
|
2024-03-29 15:30:50 +04:00
|
|
|
[[nodiscard]] AppConfig &appConfig() const;
|
|
|
|
|
2022-05-20 18:57:01 +04:00
|
|
|
[[nodiscard]] bool premium() const;
|
2022-06-07 09:48:33 +04:00
|
|
|
[[nodiscard]] bool premiumPossible() const;
|
2022-06-08 16:53:16 +04:00
|
|
|
[[nodiscard]] rpl::producer<bool> premiumPossibleValue() const;
|
2022-06-20 11:13:39 +04:00
|
|
|
[[nodiscard]] bool premiumBadgesShown() const;
|
2024-01-02 00:12:51 +04:00
|
|
|
[[nodiscard]] bool premiumCanBuy() const;
|
2022-06-08 16:53:16 +04:00
|
|
|
|
2022-07-15 20:56:25 +04:00
|
|
|
[[nodiscard]] bool isTestMode() const;
|
2020-06-24 13:05:56 +04:00
|
|
|
[[nodiscard]] uint64 uniqueId() const; // userId() with TestDC shift.
|
2019-08-23 16:52:59 +03:00
|
|
|
[[nodiscard]] UserId userId() const;
|
|
|
|
[[nodiscard]] PeerId userPeerId() const;
|
|
|
|
[[nodiscard]] not_null<UserData*> user() const {
|
2018-09-11 15:50:40 +03:00
|
|
|
return _user;
|
2017-08-04 16:54:32 +02:00
|
|
|
}
|
2021-11-19 23:04:40 +04:00
|
|
|
bool validateSelf(UserId id);
|
2017-03-04 22:36:59 +03:00
|
|
|
|
2021-10-12 16:50:18 +04:00
|
|
|
[[nodiscard]] Data::Changes &changes() const {
|
|
|
|
return *_changes;
|
|
|
|
}
|
2024-04-09 19:04:18 +04:00
|
|
|
[[nodiscard]] Data::RecentPeers &recentPeers() const {
|
|
|
|
return *_recentPeers;
|
|
|
|
}
|
2025-06-17 10:03:33 +03:00
|
|
|
[[nodiscard]] Data::RecentSharedMediaGifts &recentSharedGifts() const {
|
|
|
|
return *_recentSharedGifts;
|
|
|
|
}
|
2024-04-13 17:56:45 +03:00
|
|
|
[[nodiscard]] Data::SponsoredMessages &sponsoredMessages() const {
|
|
|
|
return *_sponsoredMessages;
|
|
|
|
}
|
2024-04-13 18:16:07 +03:00
|
|
|
[[nodiscard]] Data::ScheduledMessages &scheduledMessages() const {
|
|
|
|
return *_scheduledMessages;
|
|
|
|
}
|
2024-04-09 19:04:18 +04:00
|
|
|
[[nodiscard]] Data::TopPeers &topPeers() const {
|
|
|
|
return *_topPeers;
|
|
|
|
}
|
2024-07-25 18:08:22 +02:00
|
|
|
[[nodiscard]] Data::TopPeers &topBotApps() const {
|
|
|
|
return *_topBotApps;
|
|
|
|
}
|
2024-05-21 18:15:56 +04:00
|
|
|
[[nodiscard]] Data::Factchecks &factchecks() const {
|
|
|
|
return *_factchecks;
|
|
|
|
}
|
2024-07-26 17:23:41 +02:00
|
|
|
[[nodiscard]] Data::LocationPickers &locationPickers() const {
|
|
|
|
return *_locationPickers;
|
|
|
|
}
|
2024-08-06 12:48:06 +02:00
|
|
|
[[nodiscard]] Data::Credits &credits() const {
|
|
|
|
return *_credits;
|
|
|
|
}
|
2020-06-11 13:41:03 +04:00
|
|
|
[[nodiscard]] Api::Updates &updates() const {
|
|
|
|
return *_updates;
|
|
|
|
}
|
2020-07-06 13:58:18 +04:00
|
|
|
[[nodiscard]] Api::SendProgressManager &sendProgressManager() const {
|
|
|
|
return *_sendProgressManager;
|
|
|
|
}
|
2020-06-11 13:41:03 +04:00
|
|
|
[[nodiscard]] Storage::DownloadManagerMtproto &downloader() const {
|
2017-03-15 19:24:06 +03:00
|
|
|
return *_downloader;
|
2017-03-04 22:36:59 +03:00
|
|
|
}
|
2020-06-11 13:41:03 +04:00
|
|
|
[[nodiscard]] Storage::Uploader &uploader() const {
|
2017-08-04 16:54:32 +02:00
|
|
|
return *_uploader;
|
|
|
|
}
|
2020-06-11 13:41:03 +04:00
|
|
|
[[nodiscard]] Storage::Facade &storage() const {
|
2017-09-04 14:40:02 +03:00
|
|
|
return *_storage;
|
|
|
|
}
|
2020-03-04 13:21:19 +04:00
|
|
|
[[nodiscard]] Stickers::EmojiPack &emojiStickersPack() const {
|
2019-08-01 15:13:02 +01:00
|
|
|
return *_emojiStickersPack;
|
|
|
|
}
|
2020-04-06 13:07:49 +04:00
|
|
|
[[nodiscard]] Stickers::DicePacks &diceStickersPacks() const {
|
|
|
|
return *_diceStickersPacks;
|
2020-03-04 13:21:19 +04:00
|
|
|
}
|
2022-07-13 20:12:40 +03:00
|
|
|
[[nodiscard]] Stickers::GiftBoxPack &giftBoxStickersPacks() const {
|
|
|
|
return *_giftBoxStickersPacks;
|
|
|
|
}
|
2020-06-18 22:04:16 +04:00
|
|
|
[[nodiscard]] Data::Session &data() const {
|
2018-01-04 13:22:53 +03:00
|
|
|
return *_data;
|
|
|
|
}
|
2020-06-18 22:04:16 +04:00
|
|
|
[[nodiscard]] SessionSettings &settings() const {
|
2020-06-18 16:47:09 +04:00
|
|
|
return *_settings;
|
2017-03-14 17:16:03 +03:00
|
|
|
}
|
2021-11-09 16:10:51 +04:00
|
|
|
[[nodiscard]] SendAsPeers &sendAsPeers() const {
|
|
|
|
return *_sendAsPeers;
|
|
|
|
}
|
2022-03-29 13:00:10 +04:00
|
|
|
[[nodiscard]] InlineBots::AttachWebView &attachWebView() const {
|
|
|
|
return *_attachWebView;
|
|
|
|
}
|
2025-05-06 11:11:45 +03:00
|
|
|
[[nodiscard]] Data::PromoSuggestions &promoSuggestions() const {
|
|
|
|
return *_promoSuggestions;
|
|
|
|
}
|
2024-05-09 21:01:01 +04:00
|
|
|
[[nodiscard]] auto cachedReactionIconFactory() const
|
|
|
|
-> HistoryView::Reactions::CachedIconFactory & {
|
|
|
|
return *_cachedReactionIconFactory;
|
|
|
|
}
|
2020-06-18 22:04:16 +04:00
|
|
|
|
2020-06-18 16:47:09 +04:00
|
|
|
void saveSettings();
|
2019-02-19 10:57:53 +04:00
|
|
|
void saveSettingsDelayed(crl::time delay = kDefaultSaveDelay);
|
2019-12-27 17:09:55 +03:00
|
|
|
void saveSettingsNowIfNeeded();
|
2017-03-14 17:16:03 +03:00
|
|
|
|
2020-06-11 13:41:03 +04:00
|
|
|
void addWindow(not_null<Window::SessionController*> controller);
|
|
|
|
[[nodiscard]] auto windows() const
|
|
|
|
-> const base::flat_set<not_null<Window::SessionController*>> &;
|
2024-04-24 15:34:07 +04:00
|
|
|
[[nodiscard]] Window::SessionController *tryResolveWindow(
|
|
|
|
PeerData *forPeer = nullptr) const;
|
2020-06-11 13:41:03 +04:00
|
|
|
|
2020-06-11 20:09:46 +04:00
|
|
|
// Shortcuts.
|
2020-07-01 12:03:34 +04:00
|
|
|
void notifyDownloaderTaskFinished();
|
|
|
|
[[nodiscard]] rpl::producer<> downloaderTaskFinished() const;
|
2020-06-11 20:09:46 +04:00
|
|
|
[[nodiscard]] MTP::DcId mainDcId() const;
|
2020-06-17 13:36:25 +04:00
|
|
|
[[nodiscard]] MTP::Instance &mtp() const;
|
|
|
|
[[nodiscard]] const MTP::ConfigFields &serverConfig() const;
|
2019-08-23 16:52:59 +03:00
|
|
|
[[nodiscard]] ApiWrap &api() {
|
2017-04-06 22:02:40 +03:00
|
|
|
return *_api;
|
|
|
|
}
|
|
|
|
|
2020-06-24 11:56:16 +04:00
|
|
|
// Terms lock.
|
|
|
|
void lockByTerms(const Window::TermsLock &data);
|
|
|
|
void unlockTerms();
|
2019-03-27 12:37:25 +04:00
|
|
|
void termsDeleteNow();
|
2020-06-24 11:56:16 +04:00
|
|
|
[[nodiscard]] std::optional<Window::TermsLock> termsLocked() const;
|
|
|
|
rpl::producer<bool> termsLockChanges() const;
|
|
|
|
rpl::producer<bool> termsLockValue() const;
|
2017-04-15 21:48:54 +03:00
|
|
|
|
2020-06-17 13:36:25 +04:00
|
|
|
[[nodiscard]] QString createInternalLink(const QString &query) const;
|
|
|
|
[[nodiscard]] QString createInternalLinkFull(const QString &query) const;
|
2022-01-16 12:23:53 +03:00
|
|
|
[[nodiscard]] TextWithEntities createInternalLink(
|
|
|
|
const TextWithEntities &query) const;
|
|
|
|
[[nodiscard]] TextWithEntities createInternalLinkFull(
|
|
|
|
TextWithEntities query) const;
|
2020-06-17 13:36:25 +04:00
|
|
|
|
2021-03-31 21:15:49 +04:00
|
|
|
void setTmpPassword(const QByteArray &password, TimeId validUntil);
|
|
|
|
[[nodiscard]] QByteArray validTmpPassword() const;
|
|
|
|
|
2020-06-26 14:36:22 +04:00
|
|
|
// Can be called only right before ~Session.
|
|
|
|
void finishLogout();
|
|
|
|
|
2022-01-26 12:41:27 +03:00
|
|
|
// Uploads cancel with confirmation.
|
|
|
|
[[nodiscard]] bool uploadsInProgress() const;
|
|
|
|
void uploadsStopWithConfirmation(Fn<void()> done);
|
|
|
|
void uploadsStop();
|
|
|
|
|
2019-08-23 16:52:59 +03:00
|
|
|
[[nodiscard]] rpl::lifetime &lifetime() {
|
2018-09-06 14:13:54 +03:00
|
|
|
return _lifetime;
|
|
|
|
}
|
|
|
|
|
2022-03-01 17:32:39 +03:00
|
|
|
[[nodiscard]] bool supportMode() const;
|
|
|
|
[[nodiscard]] Support::Helper &supportHelper() const;
|
|
|
|
[[nodiscard]] Support::Templates &supportTemplates() const;
|
2025-02-12 11:21:10 +04:00
|
|
|
[[nodiscard]] Support::FastButtonsBots &fastButtonsBots() const;
|
2018-09-28 14:56:21 +03:00
|
|
|
|
2025-03-10 17:52:13 +04:00
|
|
|
[[nodiscard]] FreezeInfo frozen() const;
|
|
|
|
[[nodiscard]] rpl::producer<FreezeInfo> frozenValue() const;
|
|
|
|
|
2023-11-23 12:46:55 +04:00
|
|
|
[[nodiscard]] auto colorIndicesValue()
|
2023-10-26 23:40:53 +04:00
|
|
|
-> rpl::producer<Ui::ColorIndicesCompressed>;
|
|
|
|
|
2017-02-23 12:32:28 +03:00
|
|
|
private:
|
2019-02-19 10:57:53 +04:00
|
|
|
static constexpr auto kDefaultSaveDelay = crl::time(1000);
|
2017-09-30 21:26:45 +03:00
|
|
|
|
2025-03-10 17:52:13 +04:00
|
|
|
void appConfigRefreshed();
|
|
|
|
|
2024-02-23 21:23:15 +04:00
|
|
|
const UserId _userId;
|
2020-06-18 22:04:16 +04:00
|
|
|
const not_null<Account*> _account;
|
2019-06-05 23:41:51 +03:00
|
|
|
|
2020-06-18 16:47:09 +04:00
|
|
|
const std::unique_ptr<SessionSettings> _settings;
|
2021-10-12 16:50:18 +04:00
|
|
|
const std::unique_ptr<Data::Changes> _changes;
|
2017-04-06 22:02:40 +03:00
|
|
|
const std::unique_ptr<ApiWrap> _api;
|
2020-06-11 13:41:03 +04:00
|
|
|
const std::unique_ptr<Api::Updates> _updates;
|
2020-07-06 13:58:18 +04:00
|
|
|
const std::unique_ptr<Api::SendProgressManager> _sendProgressManager;
|
2019-12-05 11:32:33 +03:00
|
|
|
const std::unique_ptr<Storage::DownloadManagerMtproto> _downloader;
|
2017-08-04 16:54:32 +02:00
|
|
|
const std::unique_ptr<Storage::Uploader> _uploader;
|
2017-09-04 14:40:02 +03:00
|
|
|
const std::unique_ptr<Storage::Facade> _storage;
|
2017-03-04 22:36:59 +03:00
|
|
|
|
2020-06-19 16:59:31 +04:00
|
|
|
// _data depends on _downloader / _uploader.
|
2018-01-27 12:21:57 +03:00
|
|
|
const std::unique_ptr<Data::Session> _data;
|
2019-01-03 16:36:01 +04:00
|
|
|
const not_null<UserData*> _user;
|
2018-01-27 12:21:57 +03:00
|
|
|
|
2019-08-01 15:13:02 +01:00
|
|
|
// _emojiStickersPack depends on _data.
|
|
|
|
const std::unique_ptr<Stickers::EmojiPack> _emojiStickersPack;
|
2020-04-06 13:07:49 +04:00
|
|
|
const std::unique_ptr<Stickers::DicePacks> _diceStickersPacks;
|
2022-07-13 20:12:40 +03:00
|
|
|
const std::unique_ptr<Stickers::GiftBoxPack> _giftBoxStickersPacks;
|
2021-11-09 16:10:51 +04:00
|
|
|
const std::unique_ptr<SendAsPeers> _sendAsPeers;
|
2022-03-29 13:00:10 +04:00
|
|
|
const std::unique_ptr<InlineBots::AttachWebView> _attachWebView;
|
2024-04-09 19:04:18 +04:00
|
|
|
const std::unique_ptr<Data::RecentPeers> _recentPeers;
|
2025-06-17 10:03:33 +03:00
|
|
|
const std::unique_ptr<Data::RecentSharedMediaGifts> _recentSharedGifts;
|
2024-04-13 18:16:07 +03:00
|
|
|
const std::unique_ptr<Data::ScheduledMessages> _scheduledMessages;
|
2024-04-13 17:56:45 +03:00
|
|
|
const std::unique_ptr<Data::SponsoredMessages> _sponsoredMessages;
|
2024-04-09 19:04:18 +04:00
|
|
|
const std::unique_ptr<Data::TopPeers> _topPeers;
|
2024-07-25 18:08:22 +02:00
|
|
|
const std::unique_ptr<Data::TopPeers> _topBotApps;
|
2024-05-21 18:15:56 +04:00
|
|
|
const std::unique_ptr<Data::Factchecks> _factchecks;
|
2024-07-26 17:23:41 +02:00
|
|
|
const std::unique_ptr<Data::LocationPickers> _locationPickers;
|
2024-08-06 12:48:06 +02:00
|
|
|
const std::unique_ptr<Data::Credits> _credits;
|
2025-05-06 11:11:45 +03:00
|
|
|
const std::unique_ptr<Data::PromoSuggestions> _promoSuggestions;
|
2019-08-01 15:13:02 +01:00
|
|
|
|
2024-05-09 21:01:01 +04:00
|
|
|
using ReactionIconFactory = HistoryView::Reactions::CachedIconFactory;
|
|
|
|
const std::unique_ptr<ReactionIconFactory> _cachedReactionIconFactory;
|
|
|
|
|
2018-11-15 19:36:04 +04:00
|
|
|
const std::unique_ptr<Support::Helper> _supportHelper;
|
2025-02-12 11:21:10 +04:00
|
|
|
const std::unique_ptr<Support::FastButtonsBots> _fastButtonsBots;
|
2018-10-02 23:39:54 +03:00
|
|
|
|
2022-12-05 16:18:10 +04:00
|
|
|
std::shared_ptr<QImage> _selfUserpicView;
|
2022-06-08 16:53:16 +04:00
|
|
|
rpl::variable<bool> _premiumPossible = false;
|
2020-06-23 13:20:38 +04:00
|
|
|
|
2020-06-24 11:56:16 +04:00
|
|
|
rpl::event_stream<bool> _termsLockChanges;
|
|
|
|
std::unique_ptr<Window::TermsLock> _termsLock;
|
|
|
|
|
2020-06-11 13:41:03 +04:00
|
|
|
base::flat_set<not_null<Window::SessionController*>> _windows;
|
2020-06-18 16:47:09 +04:00
|
|
|
base::Timer _saveSettingsTimer;
|
2020-06-11 13:41:03 +04:00
|
|
|
|
2025-03-10 17:52:13 +04:00
|
|
|
rpl::variable<FreezeInfo> _frozen;
|
|
|
|
|
2021-03-31 21:15:49 +04:00
|
|
|
QByteArray _tmpPassword;
|
|
|
|
TimeId _tmpPasswordValidUntil = 0;
|
|
|
|
|
2018-01-14 19:02:25 +03:00
|
|
|
rpl::lifetime _lifetime;
|
|
|
|
|
2017-02-23 12:32:28 +03:00
|
|
|
};
|
2019-07-24 13:45:24 +02:00
|
|
|
|
|
|
|
} // namespace Main
|