VideoSettings.h 1.75 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/****************************************************************************
 *
 *   (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
 *
 * QGroundControl is licensed according to the terms in the file
 * COPYING.md in the root of the source code directory.
 *
 ****************************************************************************/

#ifndef VideoSettings_H
#define VideoSettings_H

#include "SettingsGroup.h"

class VideoSettings : public SettingsGroup
{
    Q_OBJECT
18

19 20 21
public:
    VideoSettings(QObject* parent = NULL);

22 23 24 25
    Q_PROPERTY(Fact* videoSource    READ videoSource    CONSTANT)
    Q_PROPERTY(Fact* udpPort        READ udpPort        CONSTANT)
    Q_PROPERTY(Fact* rtspUrl        READ rtspUrl        CONSTANT)
    Q_PROPERTY(Fact* videoSavePath  READ videoSavePath  CONSTANT)
26
    Q_PROPERTY(Fact* aspectRatio    READ aspectRatio    CONSTANT)
27
    Q_PROPERTY(Fact* gridLines      READ gridLines      CONSTANT)
28 29 30 31 32

    Fact* videoSource   (void);
    Fact* udpPort       (void);
    Fact* rtspUrl       (void);
    Fact* videoSavePath (void);
33
    Fact* aspectRatio   (void);
34
    Fact* gridLines     (void);
35

Don Gagne's avatar
Don Gagne committed
36
    static const char* videoSettingsGroupName;
37

38 39 40 41
    static const char* videoSourceName;
    static const char* udpPortName;
    static const char* rtspUrlName;
    static const char* videoSavePathName;
42
    static const char* videoAspectRatioName;
43
    static const char* videoGridLinesName;
44 45 46 47 48

    static const char* videoSourceNoVideo;
    static const char* videoSourceUDP;
    static const char* videoSourceRTSP;

49
private:
50 51 52 53
    SettingsFact* _videoSourceFact;
    SettingsFact* _udpPortFact;
    SettingsFact* _rtspUrlFact;
    SettingsFact* _videoSavePathFact;
54
    SettingsFact* _videoAspectRatioFact;
55
    SettingsFact* _gridLinesFact;
56 57 58
};

#endif