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

Show better information in sessions list.

This commit is contained in:
John Preston
2018-06-03 22:52:23 +03:00
parent b4a2e84aa3
commit e122353bfb
12 changed files with 155 additions and 34 deletions

View File

@@ -11,16 +11,22 @@ namespace Core {
class Launcher {
public:
Launcher(int argc, char *argv[]);
Launcher(
int argc,
char *argv[],
const QString &deviceModel,
const QString &systemVersion);
static std::unique_ptr<Launcher> Create(int argc, char *argv[]);
int exec();
QString argumentsString() const;
bool customWorkingDir() const {
return _customWorkingDir;
}
bool customWorkingDir() const;
// Thread safe.
QString deviceModel() const;
QString systemVersion() const;
virtual ~Launcher() = default;
@@ -53,6 +59,9 @@ private:
char **_argv;
QStringList _arguments;
const QString _deviceModel;
const QString _systemVersion;
bool _customWorkingDir = false;
};