kitchensync
connectionwidgets.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef CONNECTIONWIDGETS_H
00024 #define CONNECTIONWIDGETS_H
00025
00026 #include <tqdom.h>
00027
00028 #include "configgui.h"
00029
00030 class TQCheckBox;
00031 class TQLabel;
00032 class TQPushButton;
00033 class TQSpinBox;
00034
00035 class KComboBox;
00036 class KLineEdit;
00037
00038 class BluetoothWidget : public QWidget
00039 {
00040 Q_OBJECT
00041
00042 public:
00043 BluetoothWidget( TQWidget *parent );
00044
00045 void hideChannel();
00046 void showChannel();
00047
00048 void setAddress( const TQString address );
00049 void setChannel( const TQString channel );
00050 TQString address() const;
00051 TQString channel() const;
00052
00053 private:
00054 KLineEdit *mAddress;
00055 KLineEdit *mChannel;
00056 TQLabel *mChannelLabel;
00057 };
00058
00059 class IRWidget : public QWidget
00060 {
00061 Q_OBJECT
00062
00063 public:
00064 IRWidget( TQWidget *parent );
00065
00066 void load( const TQDomElement& );
00067 void save( TQDomDocument&, TQDomElement& );
00068
00069 private:
00070 KLineEdit *mDevice;
00071 KLineEdit *mSerialNumber;
00072 };
00073
00074 class CableWidget : public QWidget
00075 {
00076 public:
00077 CableWidget( TQWidget *parent );
00078
00079 void load( const TQDomElement& );
00080 void save( TQDomDocument&, TQDomElement& );
00081
00082 private:
00083 KComboBox *mManufacturer;
00084 KComboBox *mDevice;
00085 };
00086
00087 class UsbWidget : public QWidget
00088 {
00089 public:
00090 UsbWidget( TQWidget *parent );
00091
00092 int interface() const;
00093 void setInterface( int interface );
00094
00095 private:
00096 TQSpinBox *mInterface;
00097 };
00098
00099 #endif // CONNECTIONWIDGETS_H
|