00001
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 TQWidget
00039 {
00040 Q_OBJECT
00041 TQ_OBJECT
00042
00043 public:
00044 BluetoothWidget( TQWidget *parent );
00045
00046 void hideChannel();
00047 void showChannel();
00048
00049 void setAddress( const TQString address );
00050 void setChannel( const TQString channel );
00051 TQString address() const;
00052 TQString channel() const;
00053
00054 private:
00055 KLineEdit *mAddress;
00056 KLineEdit *mChannel;
00057 TQLabel *mChannelLabel;
00058 };
00059
00060 class IRWidget : public TQWidget
00061 {
00062 Q_OBJECT
00063 TQ_OBJECT
00064
00065 public:
00066 IRWidget( TQWidget *parent );
00067
00068 void load( const TQDomElement& );
00069 void save( TQDomDocument&, TQDomElement& );
00070
00071 private:
00072 KLineEdit *mDevice;
00073 KLineEdit *mSerialNumber;
00074 };
00075
00076 class CableWidget : public TQWidget
00077 {
00078 public:
00079 CableWidget( TQWidget *parent );
00080
00081 void load( const TQDomElement& );
00082 void save( TQDomDocument&, TQDomElement& );
00083
00084 private:
00085 KComboBox *mManufacturer;
00086 KComboBox *mDevice;
00087 };
00088
00089 class UsbWidget : public TQWidget
00090 {
00091 public:
00092 UsbWidget( TQWidget *parent );
00093
00094 int interface() const;
00095 void setInterface( int interface );
00096
00097 private:
00098 TQSpinBox *mInterface;
00099 };
00100
00101 #endif // CONNECTIONWIDGETS_H