SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
SWGAudioDevices.h
Go to the documentation of this file.
1 
13 /*
14  * SWGAudioDevices.h
15  *
16  * List of audio devices available in the system
17  */
18 
19 #ifndef SWGAudioDevices_H_
20 #define SWGAudioDevices_H_
21 
22 #include <QJsonObject>
23 
24 
25 #include "SWGAudioInputDevice.h"
26 #include "SWGAudioOutputDevice.h"
27 #include <QList>
28 
29 #include "SWGObject.h"
30 #include "export.h"
31 
32 namespace SWGSDRangel {
33 
35 public:
37  SWGAudioDevices(QString* json);
38  virtual ~SWGAudioDevices();
39  void init();
40  void cleanup();
41 
42  virtual QString asJson () override;
43  virtual QJsonObject* asJsonObject() override;
44  virtual void fromJsonObject(QJsonObject &json) override;
45  virtual SWGAudioDevices* fromJson(QString &jsonString) override;
46 
47  qint32 getNbInputDevices();
48  void setNbInputDevices(qint32 nb_input_devices);
49 
50  QList<SWGAudioInputDevice*>* getInputDevices();
51  void setInputDevices(QList<SWGAudioInputDevice*>* input_devices);
52 
53  qint32 getNbOutputDevices();
54  void setNbOutputDevices(qint32 nb_output_devices);
55 
56  QList<SWGAudioOutputDevice*>* getOutputDevices();
57  void setOutputDevices(QList<SWGAudioOutputDevice*>* output_devices);
58 
59 
60  virtual bool isSet() override;
61 
62 private:
65 
66  QList<SWGAudioInputDevice*>* input_devices;
68 
71 
72  QList<SWGAudioOutputDevice*>* output_devices;
74 
75 };
76 
77 }
78 
79 #endif /* SWGAudioDevices_H_ */
QList< SWGAudioOutputDevice * > * output_devices
QList< SWGAudioInputDevice * > * input_devices
#define SWG_API
Definition: export.h:124