Debian Codegraph @

HercConfiguration/CtcProperties.h

raw symbols SCIP
1 /*
2 * File: CtcProperties.h
3 *
4 * Author: Jacob Dekel
5 * Created on: Aug 7, 2009
6 *
7 * Copyright (c) 2009-2013 Jacob Dekel
8 *
9 * This object handles the configuration of the CTC
10 * $Id$
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,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program. If not, see <http://www.gnu.org/licenses/>.
24 *
25 */
26
27 #ifndef CTCPROPERTIES_H
28 #define CTCPROPERTIES_H
29
30 #include "ConfigLine.h"
31 #include "GenericDeviceProperties.h"
32
33 #include <QtWidgets/QWidget>
34 #include "ui_CtcProperties.h"
35
36 class CtcProperties : public GenericDeviceProperties
37 {
38 Q_OBJECT
39
40 public:
41 CtcProperties(ConfigLine& configLine, QWidget *parent = 0);
42 virtual ~CtcProperties();
43
44 private:
45 Ui::CtcPropertiesClass ui;
46
47 bool macValidator(const std::string& mac);
48 void arrangeQeth(bool set);
49 void arrangeLcs(bool set);
50 void arrangeCtc(bool set);
51 void arrangeCtct(bool set);
52 void arrangeByType();
53 void initialize(ConfigLine & configLine);
54
55 private slots:
56 virtual void ok();
57 virtual void cancel();
58 virtual void oatBrowse();
59 void typeChanged(const QString &);
60 void tun0Check(int);
61 };
62
63 #endif // CTCPROPERTIES_H