summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-07-21 21:07:28 (UTC)
committer harlekin <harlekin>2002-07-21 21:07:28 (UTC)
commit756a2f9a16d6f25902d2ba6171ea6c59fca5b951 (patch) (unidiff)
treee481b93cb286bbbbd82d280f693fec420b34454b
parent2fb3b8fdf9cb4e660e217ae563a1a49557864ca9 (diff)
downloadopie-756a2f9a16d6f25902d2ba6171ea6c59fca5b951.zip
opie-756a2f9a16d6f25902d2ba6171ea6c59fca5b951.tar.gz
opie-756a2f9a16d6f25902d2ba6171ea6c59fca5b951.tar.bz2
show a search icon while searching if an device is in range or not
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/bluebase.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp
index f400ce6..433bd3a 100644
--- a/noncore/net/opietooth/manager/bluebase.cpp
+++ b/noncore/net/opietooth/manager/bluebase.cpp
@@ -235,64 +235,65 @@ QString BlueBase::status()const{
235 235
236 236
237/** 237/**
238 * Read the current values from the gui and invoke writeConfig() 238 * Read the current values from the gui and invoke writeConfig()
239 */ 239 */
240void BlueBase::applyConfigChanges() { 240void BlueBase::applyConfigChanges() {
241 m_deviceName = deviceNameLine->text(); 241 m_deviceName = deviceNameLine->text();
242 m_defaultPasskey = passkeyLine->text(); 242 m_defaultPasskey = passkeyLine->text();
243 m_useEncryption = cryptCheckBox->isChecked(); 243 m_useEncryption = cryptCheckBox->isChecked();
244 m_enableAuthentification = authCheckBox->isChecked(); 244 m_enableAuthentification = authCheckBox->isChecked();
245 m_enablePagescan = pagescanCheckBox->isChecked(); 245 m_enablePagescan = pagescanCheckBox->isChecked();
246 m_enableInquiryscan = inquiryscanCheckBox->isChecked(); 246 m_enableInquiryscan = inquiryscanCheckBox->isChecked();
247 247
248 writeConfig(); 248 writeConfig();
249 249
250 QMessageBox::information( this, tr("Test") , tr("Changes were applied.") ); 250 QMessageBox::information( this, tr("Test") , tr("Changes were applied.") );
251} 251}
252 252
253/** 253/**
254 * Add fresh found devices from scan dialog to the listing 254 * Add fresh found devices from scan dialog to the listing
255 * 255 *
256 */ 256 */
257void BlueBase::addSearchedDevices( const QValueList<RemoteDevice> &newDevices ) { 257void BlueBase::addSearchedDevices( const QValueList<RemoteDevice> &newDevices ) {
258 BTDeviceItem * deviceItem; 258 BTDeviceItem * deviceItem;
259 QValueList<RemoteDevice>::ConstIterator it; 259 QValueList<RemoteDevice>::ConstIterator it;
260 260
261 for( it = newDevices.begin(); it != newDevices.end() ; ++it ) { 261 for( it = newDevices.begin(); it != newDevices.end() ; ++it ) {
262 262
263 if (find( (*it) )) // is already inserted 263 if (find( (*it) )) // is already inserted
264 continue; 264 continue;
265 265
266 deviceItem = new BTDeviceItem( ListView2 , (*it) ); 266 deviceItem = new BTDeviceItem( ListView2 , (*it) );
267 deviceItem->setPixmap( 1, m_findPix );
267 deviceItem->setExpandable ( true ); 268 deviceItem->setExpandable ( true );
268 269
269 // look if device is avail. atm, async 270 // look if device is avail. atm, async
270 deviceActive( (*it) ); 271 deviceActive( (*it) );
271 272
272 // ggf auch hier? 273 // ggf auch hier?
273 addServicesToDevice( deviceItem ); 274 addServicesToDevice( deviceItem );
274 } 275 }
275} 276}
276 277
277 278
278/** 279/**
279 * Action that is toggled on entrys on click 280 * Action that is toggled on entrys on click
280 */ 281 */
281void BlueBase::startServiceActionClicked( QListViewItem */*item*/ ) { 282void BlueBase::startServiceActionClicked( QListViewItem */*item*/ ) {
282} 283}
283 284
284 285
285/** 286/**
286 * Action that are toggled on hold (mostly QPopups i guess) 287 * Action that are toggled on hold (mostly QPopups i guess)
287 */ 288 */
288void BlueBase::startServiceActionHold( QListViewItem * item, const QPoint & point, int /*column*/ ) { 289void BlueBase::startServiceActionHold( QListViewItem * item, const QPoint & point, int /*column*/ ) {
289 if (!item ) 290 if (!item )
290 return; 291 return;
291 292
292 QPopupMenu *menu = new QPopupMenu(); 293 QPopupMenu *menu = new QPopupMenu();
293 int ret=0; 294 int ret=0;
294 295
295 if ( ((BTListItem*)item)->type() == "device") { 296 if ( ((BTListItem*)item)->type() == "device") {
296 297
297 QPopupMenu *groups = new QPopupMenu(); 298 QPopupMenu *groups = new QPopupMenu();
298 299