tdesktop/Telegram/SourceFiles/shortcuts.h

27 lines
664 B
C
Raw Normal View History

2016-02-27 19:41:15 +00:00
/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
2016-02-27 19:41:15 +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 {
void start();
const QStringList &errors();
2016-02-27 19:41:15 +00:00
bool launch(int shortcutId);
bool launch(const QString &command);
2016-02-27 19:41:15 +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();
void finish();
2016-02-27 19:41:15 +00:00
} // namespace Shortcuts