LP-56 - Better txpid option namings, fix tabs-spaces, tooltips. headers, variable...
[librepilot.git] / ground / openpilotgcs / src / plugins / ipconnection / ipconnectionoptionspage.h
blobb00c585f4c14b34f234ad17a910455cb0b5cba9a
1 /**
2 ******************************************************************************
4 * @file IPconnectionoptionspage.h
5 * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
6 * @addtogroup GCSPlugins GCS Plugins
7 * @{
8 * @addtogroup IPConnPlugin IP Telemetry Plugin
9 * @{
10 * @brief IP Connection Plugin impliment telemetry over TCP/IP and UDP/IP
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 IPconnectionOPTIONSPAGE_H
29 #define IPconnectionOPTIONSPAGE_H
31 #include "coreplugin/dialogs/ioptionspage.h"
33 class IPconnectionConfiguration;
35 namespace Core {
36 class IUAVGadgetConfiguration;
39 namespace Ui {
40 class IPconnectionOptionsPage;
43 using namespace Core;
45 class IPconnectionOptionsPage : public IOptionsPage {
46 Q_OBJECT
47 public:
48 explicit IPconnectionOptionsPage(IPconnectionConfiguration *config, QObject *parent = 0);
49 virtual ~IPconnectionOptionsPage();
51 QString id() const
53 return QLatin1String("settings");
55 QString trName() const
57 return tr("settings");
59 QString category() const
61 return "Telemetry - IP Network";
63 QString trCategory() const
65 return "IP Network Telemetry";
68 QWidget *createPage(QWidget *parent);
69 void apply();
70 void finish();
72 signals:
73 void availableDevChanged();
75 public slots:
76 private:
77 IPconnectionConfiguration *m_config;
78 Ui::IPconnectionOptionsPage *m_page;
81 #endif // IPconnectionOPTIONSPAGE_H