mirror of https://github.com/procxx/kepka.git
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
|