mirror of
https://github.com/telegramdesktop/tdesktop
synced 2024-09-12 01:12:14 +00:00
29 lines
587 B
C
29 lines
587 B
C
|
/*
|
||
|
This file is part of Telegram Desktop,
|
||
|
the official desktop application for the Telegram messaging service.
|
||
|
|
||
|
For license and copyright information please follow this link:
|
||
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||
|
*/
|
||
|
#pragma once
|
||
|
|
||
|
class AuthSession;
|
||
|
|
||
|
namespace Main {
|
||
|
|
||
|
class Account final {
|
||
|
public:
|
||
|
explicit Account(const QString &dataName);
|
||
|
|
||
|
[[nodiscard]] bool sessionExists() const;
|
||
|
[[nodiscard]] AuthSession &session();
|
||
|
[[nodiscard]] rpl::producer<AuthSession*> sessionValue() const;
|
||
|
|
||
|
[[nodiscard]] MTP::Instance *mtp();
|
||
|
|
||
|
private:
|
||
|
|
||
|
};
|
||
|
|
||
|
} // namespace Main
|