Merged in f5soh/librepilot/update_credits (pull request #529)
[librepilot.git] / ground / gcs / src / plugins / video / videogadget.h
bloba52d7118d202f71b1efd3d092cb2aec2a9a48490
1 /**
2 ******************************************************************************
4 * @file videogadget.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 VIDEOGADGET_H_
29 #define VIDEOGADGET_H_
31 #include <coreplugin/iuavgadget.h>
32 #include "videogadgetwidget.h"
34 namespace Core {
35 class IUAVGadget;
38 class IUAVGadget;
39 class QWidget;
40 class QString;
41 class VideoGadgetWidget;
43 using namespace Core;
45 class VideoGadget : public Core::IUAVGadget {
46 Q_OBJECT
47 public:
48 VideoGadget(QString classId, VideoGadgetWidget *widget, QWidget *parent = 0);
49 ~VideoGadget();
51 QList<int> context() const
53 return m_context;
55 QWidget *widget()
57 return m_widget;
59 void loadConfiguration(IUAVGadgetConfiguration *config);
60 QString contextHelpId() const
62 return QString();
65 private:
66 VideoGadgetWidget *m_widget;
67 QList<int> m_context;
70 #endif // VIDEOGADGET_H_