Diffstat (limited to 'noncore/settings/networksettings2/opietooth2/Opietooth.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/opietooth2/Opietooth.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/noncore/settings/networksettings2/opietooth2/Opietooth.cpp b/noncore/settings/networksettings2/opietooth2/Opietooth.cpp index 8ea3a48..2d4885c 100644 --- a/noncore/settings/networksettings2/opietooth2/Opietooth.cpp +++ b/noncore/settings/networksettings2/opietooth2/Opietooth.cpp | |||
@@ -107,12 +107,33 @@ private : | |||
107 | // | 107 | // |
108 | // | 108 | // |
109 | // | 109 | // |
110 | // | 110 | // |
111 | // | 111 | // |
112 | 112 | ||
113 | OTSniffing::OTSniffing( QWidget * parent ) : OTSniffGUI( parent ) { | ||
114 | |||
115 | OT = OTGateway::getOTGateway(); | ||
116 | |||
117 | } | ||
118 | |||
119 | OTSniffing::~OTSniffing() { | ||
120 | } | ||
121 | |||
122 | void OTSniffing::SLOT_Trace( void ) { | ||
123 | } | ||
124 | |||
125 | void OTSniffing::SLOT_ClearLog( void ) { | ||
126 | } | ||
127 | |||
128 | // | ||
129 | // | ||
130 | // | ||
131 | // | ||
132 | // | ||
133 | |||
113 | OTPairing::OTPairing( QWidget * parent, OTIcons * _IC ) : | 134 | OTPairing::OTPairing( QWidget * parent, OTIcons * _IC ) : |
114 | OTPairingGUI( parent ) { | 135 | OTPairingGUI( parent ) { |
115 | 136 | ||
116 | OT = OTGateway::getOTGateway(); | 137 | OT = OTGateway::getOTGateway(); |
117 | Icons = (_IC ) ? _IC : new OTIcons(); | 138 | Icons = (_IC ) ? _IC : new OTIcons(); |
118 | MyIcons = (_IC == 0 ); | 139 | MyIcons = (_IC == 0 ); |
@@ -870,12 +891,13 @@ void OTManage::SLOT_SetRefreshTimer( int v ) { | |||
870 | // | 891 | // |
871 | // | 892 | // |
872 | 893 | ||
873 | OTMain::OTMain( QWidget * parent ) : OTMainGUI( parent ) { | 894 | OTMain::OTMain( QWidget * parent ) : OTMainGUI( parent ) { |
874 | 895 | ||
875 | Icons = new OTIcons(); | 896 | Icons = new OTIcons(); |
897 | SnifWindow = 0; | ||
876 | OT = OTGateway::getOTGateway(); | 898 | OT = OTGateway::getOTGateway(); |
877 | 899 | ||
878 | connect( OT, | 900 | connect( OT, |
879 | SIGNAL( deviceEnabled( bool ) ), | 901 | SIGNAL( deviceEnabled( bool ) ), |
880 | this, | 902 | this, |
881 | SLOT( SLOT_DeviceIsEnabled( bool ) ) | 903 | SLOT( SLOT_DeviceIsEnabled( bool ) ) |
@@ -1000,6 +1022,16 @@ void OTMain::SLOT_Pairing( void ) { | |||
1000 | Dlg->showMaximized(); | 1022 | Dlg->showMaximized(); |
1001 | Dlg->setCaption( tr("Manage pairing" ) ); | 1023 | Dlg->setCaption( tr("Manage pairing" ) ); |
1002 | Dlg->exec(); | 1024 | Dlg->exec(); |
1003 | 1025 | ||
1004 | delete Dlg; | 1026 | delete Dlg; |
1005 | } | 1027 | } |
1028 | |||
1029 | void OTMain::SLOT_Sniffing( void ) { | ||
1030 | |||
1031 | if( SnifWindow == 0 ) { | ||
1032 | SnifWindow = new OTSniffing( this ); | ||
1033 | } | ||
1034 | |||
1035 | SnifWindow->showMaximized(); | ||
1036 | SnifWindow->show(); | ||
1037 | } | ||