Merged in f5soh/librepilot/update_credits (pull request #529)
[librepilot.git] / ground / gcs / src / plugins / video / videogadgetconfiguration.h
blobf0695a729ed71b69681b3dbd828b012ccd7757fe
1 /**
2 ******************************************************************************
4 * @file videogadgetconfiguration.h
5 * @author The LibrePilot Project, http://www.librepilot.org Copyright (C) 2017.
6 * @addtogroup GCSPlugins GCS Plugins
7 * @{
8 * @addtogroup VideoGadgetPlugin Video Gadget Plugin
9 * @{
10 * @brief A video gadget plugin
11 *****************************************************************************/
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 3 of the License, or
16 * (at your option) any later version.
18 * This program is distributed in the hope that it will be useful, but
19 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
20 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 * for more details.
23 * You should have received a copy of the GNU General Public License along
24 * with this program; if not, write to the Free Software Foundation, Inc.,
25 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28 #ifndef VIDEOGADGETCONFIGURATION_H
29 #define VIDEOGADGETCONFIGURATION_H
31 #include <coreplugin/iuavgadgetconfiguration.h>
33 using namespace Core;
35 class VideoGadgetConfiguration : public IUAVGadgetConfiguration {
36 Q_OBJECT
37 public:
38 explicit VideoGadgetConfiguration(QString classId, QSettings &Settings, QObject *parent = 0);
39 explicit VideoGadgetConfiguration(const VideoGadgetConfiguration &obj);
41 IUAVGadgetConfiguration *clone() const;
42 void saveConfig(QSettings &settings) const;
44 bool displayVideo() const
46 return m_displayVideo;
48 void setDisplayVideo(bool displayVideo)
50 m_displayVideo = displayVideo;
52 bool displayControls() const
54 return m_displayControls;
56 void setDisplayControls(bool displayControls)
58 m_displayControls = displayControls;
60 bool autoStart() const
62 return m_autoStart;
64 void setAutoStart(bool autoStart)
66 m_autoStart = autoStart;
68 bool respectAspectRatio() const
70 return m_respectAspectRatio;
72 void setRespectAspectRatio(bool respectAspectRatio)
74 m_respectAspectRatio = respectAspectRatio;
76 QString pipelineDesc() const
78 return m_pipelineDesc;
80 void setPipelineDesc(QString pipelineDesc)
82 m_pipelineDesc = pipelineDesc;
84 QString pipelineInfo() const
86 return m_pipelineInfo;
88 void setPipelineInfo(QString pipelineInfo)
90 m_pipelineInfo = pipelineInfo;
93 private:
94 // video
95 bool m_displayVideo;
96 bool m_respectAspectRatio;
97 // controls
98 bool m_displayControls;
99 bool m_autoStart;
100 QString m_pipelineDesc;
101 QString m_pipelineInfo;
104 #endif // VIDEOGADGETCONFIGURATION_H