2017-12-11 14:45:29 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
2018-01-03 10:23:14 +00:00
|
|
|
the official desktop application for the Telegram messaging service.
|
2017-12-11 14:45:29 +00:00
|
|
|
|
2018-01-03 10:23:14 +00:00
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
2017-12-11 14:45:29 +00:00
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "core/launcher.h"
|
|
|
|
|
|
|
|
namespace Platform {
|
|
|
|
|
|
|
|
class Launcher : public Core::Launcher {
|
|
|
|
public:
|
2018-06-03 19:52:23 +00:00
|
|
|
Launcher(int argc, char *argv[]);
|
2017-12-11 14:45:29 +00:00
|
|
|
|
2021-07-11 20:16:28 +00:00
|
|
|
int exec() override;
|
2021-06-22 23:20:40 +00:00
|
|
|
|
2017-12-11 14:45:29 +00:00
|
|
|
private:
|
2020-10-28 14:15:43 +00:00
|
|
|
void initHook() override;
|
2017-12-12 07:52:53 +00:00
|
|
|
bool launchUpdater(UpdaterLaunch action) override;
|
2017-12-11 14:45:29 +00:00
|
|
|
|
2021-06-22 23:20:40 +00:00
|
|
|
std::vector<std::string> _arguments;
|
|
|
|
|
2017-12-11 14:45:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Platform
|