mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-26 07:22:12 +00:00
18114458b8
- Move Calls class to anonymous namespace in .cpp - Export only Type CallsId() from header - Move AddCameraSubsection to be a free function (exported) - Keep all device helper functions exported - Update all references to use CallsId() and AddCameraSubsection() - Add missing include to calls_group_settings.cpp Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
66 lines
1.8 KiB
C++
66 lines
1.8 KiB
C++
/*
|
|
This file is part of Telegram Desktop,
|
|
the official desktop application for the Telegram messaging service.
|
|
|
|
For license and copyright information please follow this link:
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|
*/
|
|
#pragma once
|
|
|
|
#include "settings/settings_type.h"
|
|
|
|
namespace style {
|
|
struct Checkbox;
|
|
struct Radio;
|
|
} // namespace style
|
|
|
|
namespace Webrtc {
|
|
class VideoTrack;
|
|
} // namespace Webrtc
|
|
|
|
namespace Ui {
|
|
class GenericBox;
|
|
class Show;
|
|
class VerticalLayout;
|
|
} // namespace Ui
|
|
|
|
namespace Window {
|
|
class SessionController;
|
|
} // namespace Window
|
|
|
|
namespace Settings {
|
|
|
|
[[nodiscard]] Type CallsId();
|
|
|
|
Webrtc::VideoTrack *AddCameraSubsection(
|
|
std::shared_ptr<Ui::Show> show,
|
|
not_null<Ui::VerticalLayout*> content,
|
|
bool saveToSettings);
|
|
|
|
inline constexpr auto kMicTestUpdateInterval = crl::time(100);
|
|
inline constexpr auto kMicTestAnimationDuration = crl::time(200);
|
|
|
|
[[nodiscard]] rpl::producer<QString> PlaybackDeviceNameValue(
|
|
rpl::producer<QString> id);
|
|
[[nodiscard]] rpl::producer<QString> CaptureDeviceNameValue(
|
|
rpl::producer<QString> id);
|
|
[[nodiscard]] rpl::producer<QString> CameraDeviceNameValue(
|
|
rpl::producer<QString> id);
|
|
[[nodiscard]] object_ptr<Ui::GenericBox> ChoosePlaybackDeviceBox(
|
|
rpl::producer<QString> currentId,
|
|
Fn<void(QString id)> chosen,
|
|
const style::Checkbox *st = nullptr,
|
|
const style::Radio *radioSt = nullptr);
|
|
[[nodiscard]] object_ptr<Ui::GenericBox> ChooseCaptureDeviceBox(
|
|
rpl::producer<QString> currentId,
|
|
Fn<void(QString id)> chosen,
|
|
const style::Checkbox *st = nullptr,
|
|
const style::Radio *radioSt = nullptr);
|
|
[[nodiscard]] object_ptr<Ui::GenericBox> ChooseCameraDeviceBox(
|
|
rpl::producer<QString> currentId,
|
|
Fn<void(QString id)> chosen,
|
|
const style::Checkbox *st = nullptr,
|
|
const style::Radio *radioSt = nullptr);
|
|
|
|
} // namespace Settings
|