mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Added support for platform-specific microphone permission in calls
This commit is contained in:
@@ -11,6 +11,15 @@ namespace Platform {
|
||||
|
||||
void start();
|
||||
void finish();
|
||||
|
||||
enum class PermissionStatus {
|
||||
Granted,
|
||||
CanRequest,
|
||||
Denied,
|
||||
};
|
||||
enum class PermissionType {
|
||||
Microphone,
|
||||
};
|
||||
|
||||
void SetWatchingMediaKeys(bool watching);
|
||||
bool IsApplicationActive();
|
||||
@@ -20,6 +29,9 @@ void InitOnTopPanel(QWidget *panel);
|
||||
void DeInitOnTopPanel(QWidget *panel);
|
||||
void ReInitOnTopPanel(QWidget *panel);
|
||||
void RegisterCustomScheme();
|
||||
PermissionStatus GetPermissionStatus(PermissionType type);
|
||||
void RequestPermission(PermissionType type, Fn<void(PermissionStatus)> resultCallback);
|
||||
void OpenSystemSettingsForPermission(PermissionType type);
|
||||
|
||||
QString SystemLanguage();
|
||||
QString SystemCountry();
|
||||
|
Reference in New Issue
Block a user