dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
usagestatsoptionpage.h
Go to the documentation of this file.
1 
11 /*
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation; either version 3 of the License, or
15  * (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful, but
18  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
19  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20  * for more details.
21  *
22  * You should have received a copy of the GNU General Public License along
23  * with this program; if not, see <http://www.gnu.org/licenses/>
24  */
25 
26 #ifndef USAGESTATSOPTIONPAGE_H
27 #define USAGESTATSOPTIONPAGE_H
28 
29 #include <QWidget>
32 
33 class UsageStatsPlugin;
34 namespace Core {
36 }
37 
38 namespace Ui {
40 }
41 
42 using namespace Core;
43 
45 {
46  Q_OBJECT
47 public:
48  UsageStatsOptionPage(QObject *parent = nullptr);
49  virtual ~UsageStatsOptionPage();
50 
51  QString id() const { return QLatin1String("settings"); }
52  QString trName() const { return tr("settings"); }
53  QString category() const { return "Usage Statistics"; }
54  QString trCategory() const { return "Usage Statistics"; }
55 
56  QWidget *createPage(QWidget *parent);
57  void apply();
58  void finish();
59 signals:
60  void settingsUpdated();
61 private slots:
62 private:
63  Ui::UsageStatsOptionPage *m_page;
64  UsageStatsPlugin *m_config;
65 };
66 
67 #endif // USAGESTATSOPTIONPAGE_H
QString category() const
QString trCategory() const
The IOptionsPage is an interface for providing options pages.
Definition: ioptionspage.h:42