launcher_win.h 680 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. This file is part of Telegram Desktop,
  3. the official desktop application for the Telegram messaging service.
  4. For license and copyright information please follow this link:
  5. https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
  6. */
  7. #pragma once
  8. #include "core/launcher.h"
  9. namespace Platform {
  10. class Launcher : public Core::Launcher {
  11. public:
  12. Launcher(int argc, char *argv[]);
  13. private:
  14. std::optional<QStringList> readArgumentsHook(
  15. int argc,
  16. char *argv[]) const override;
  17. bool launchUpdater(UpdaterLaunch action) override;
  18. bool launch(
  19. const QString &operation,
  20. const QString &binaryPath,
  21. const QStringList &argumentsList);
  22. };
  23. } // namespace Platform