summary refs log tree commit diff
path: root/src/CallDevices.h
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-09-18 00:22:33 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-09-18 00:45:50 +0200
commitcfca7157b98c9dc8e0852fe6484bc3f75008af7d (patch)
tree32b92340908a9374214ec7b84c1fac7ea338f56d /src/CallDevices.h
parentMerge pull request #728 from Thulinma/goto (diff)
downloadnheko-cfca7157b98c9dc8e0852fe6484bc3f75008af7d.tar.xz
Change indentation to 4 spaces
Diffstat (limited to 'src/CallDevices.h')
-rw-r--r--src/CallDevices.h41
1 files changed, 20 insertions, 21 deletions
diff --git a/src/CallDevices.h b/src/CallDevices.h

index 69325f97..d30ce644 100644 --- a/src/CallDevices.h +++ b/src/CallDevices.h
@@ -14,35 +14,34 @@ typedef struct _GstDevice GstDevice; class CallDevices : public QObject { - Q_OBJECT + Q_OBJECT public: - static CallDevices &instance() - { - static CallDevices instance; - return instance; - } + static CallDevices &instance() + { + static CallDevices instance; + return instance; + } - bool haveMic() const; - bool haveCamera() const; - std::vector<std::string> names(bool isVideo, const std::string &defaultDevice) const; - std::vector<std::string> resolutions(const std::string &cameraName) const; - std::vector<std::string> frameRates(const std::string &cameraName, - const std::string &resolution) const; + bool haveMic() const; + bool haveCamera() const; + std::vector<std::string> names(bool isVideo, const std::string &defaultDevice) const; + std::vector<std::string> resolutions(const std::string &cameraName) const; + std::vector<std::string> frameRates(const std::string &cameraName, + const std::string &resolution) const; signals: - void devicesChanged(); + void devicesChanged(); private: - CallDevices(); + CallDevices(); - friend class WebRTCSession; - void init(); - GstDevice *audioDevice() const; - GstDevice *videoDevice(std::pair<int, int> &resolution, - std::pair<int, int> &frameRate) const; + friend class WebRTCSession; + void init(); + GstDevice *audioDevice() const; + GstDevice *videoDevice(std::pair<int, int> &resolution, std::pair<int, int> &frameRate) const; public: - CallDevices(CallDevices const &) = delete; - void operator=(CallDevices const &) = delete; + CallDevices(CallDevices const &) = delete; + void operator=(CallDevices const &) = delete; };