2016-02-27 19:41:15 +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.
|
2016-02-27 19:41:15 +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
|
2016-02-27 19:41:15 +00:00
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace Shortcuts {
|
|
|
|
|
2016-10-28 12:44:28 +00:00
|
|
|
void start();
|
|
|
|
const QStringList &errors();
|
2016-02-27 19:41:15 +00:00
|
|
|
|
2016-10-28 12:44:28 +00:00
|
|
|
bool launch(int shortcutId);
|
|
|
|
bool launch(const QString &command);
|
2016-02-27 19:41:15 +00:00
|
|
|
|
2016-10-28 12:44:28 +00:00
|
|
|
// Media shortcuts are not enabled by default, because other
|
|
|
|
// applications also use them. They are enabled only when
|
|
|
|
// the in-app player is active and disabled back after.
|
|
|
|
void enableMediaShortcuts();
|
|
|
|
void disableMediaShortcuts();
|
2016-04-14 16:08:36 +00:00
|
|
|
|
2016-10-28 12:44:28 +00:00
|
|
|
void finish();
|
2016-02-27 19:41:15 +00:00
|
|
|
|
2017-05-21 13:16:39 +00:00
|
|
|
} // namespace Shortcuts
|