kitchensync

connectionwidgets.h
1/*
2 This file is part of KitchenSync.
3
4 Copyright (c) 2005 Tobias Koenig <tokoe@kde.org>
5 Copyright (c) 2006 Daniel Gollub <dgollub@suse.de>
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
20 USA.
21*/
22
23#ifndef CONNECTIONWIDGETS_H
24#define CONNECTIONWIDGETS_H
25
26#include <tqdom.h>
27
28#include "configgui.h"
29
30class TQCheckBox;
31class TQLabel;
32class TQPushButton;
33class TQSpinBox;
34
35class KComboBox;
36class KLineEdit;
37
38class BluetoothWidget : public TQWidget
39{
40 Q_OBJECT
41
42
43 public:
44 BluetoothWidget( TQWidget *parent );
45
46 void hideChannel();
47 void showChannel();
48
49 void setAddress( const TQString address );
50 void setChannel( const TQString channel );
51 TQString address() const;
52 TQString channel() const;
53
54 private:
55 KLineEdit *mAddress;
56 KLineEdit *mChannel;
57 TQLabel *mChannelLabel;
58};
59
60class IRWidget : public TQWidget
61{
62 Q_OBJECT
63
64
65 public:
66 IRWidget( TQWidget *parent );
67
68 void load( const TQDomElement& );
69 void save( TQDomDocument&, TQDomElement& );
70
71 private:
72 KLineEdit *mDevice;
73 KLineEdit *mSerialNumber;
74};
75
76class CableWidget : public TQWidget
77{
78 public:
79 CableWidget( TQWidget *parent );
80
81 void load( const TQDomElement& );
82 void save( TQDomDocument&, TQDomElement& );
83
84 private:
85 KComboBox *mManufacturer;
86 KComboBox *mDevice;
87};
88
89class UsbWidget : public TQWidget
90{
91 public:
92 UsbWidget( TQWidget *parent );
93
94 int interface() const;
95 void setInterface( int interface );
96
97 private:
98 TQSpinBox *mInterface;
99};
100
101#endif // CONNECTIONWIDGETS_H