dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
pfdqmlgadgetconfiguration.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful, but
8  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
9  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
10  * for more details.
11  *
12  * You should have received a copy of the GNU General Public License along
13  * with this program; if not, see <http://www.gnu.org/licenses/>
14  */
15 
16 #ifndef PFDQMLGADGETCONFIGURATION_H
17 #define PFDQMLGADGETCONFIGURATION_H
18 
20 
21 using namespace Core;
22 
24 {
25  Q_OBJECT
26 public:
27  explicit PfdQmlGadgetConfiguration(QString classId, QSettings *qSettings = nullptr,
28  QObject *parent = nullptr);
29 
30  void setQmlFile(const QString &fileName) { m_qmlFile = fileName; }
31 
32  QString qmlFile() const { return m_qmlFile; }
33  QVariantMap settings() const { return m_settings; }
34 
35  void saveConfig(QSettings *settings) const;
37 
38 private:
39  QString m_qmlFile;
40 
41  QVariantMap m_settings;
42 };
43 
44 #endif // PfdQmlGADGETCONFIGURATION_H
void setQmlFile(const QString &fileName)
UAVDataObject * clone(quint32 instID)