summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/bluebase.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp
index 0385cb1..3e7e2ab 100644
--- a/noncore/net/opietooth/manager/bluebase.cpp
+++ b/noncore/net/opietooth/manager/bluebase.cpp
@@ -191,52 +191,53 @@ namespace OpieTooth {
191 qDebug((*it).latin1() ); 191 qDebug((*it).latin1() );
192 Config conf((*it)); 192 Config conf((*it));
193 conf.setGroup("Info"); 193 conf.setGroup("Info");
194 name = conf.readEntry("name", "Error"); 194 name = conf.readEntry("name", "Error");
195 qDebug("MAC: " + mac); 195 qDebug("MAC: " + mac);
196 qDebug("NAME: " + name); 196 qDebug("NAME: " + name);
197 RemoteDevice currentDevice = RemoteDevice( mac , name ); 197 RemoteDevice currentDevice = RemoteDevice( mac , name );
198 loadedDevices->append( &currentDevice ); 198 loadedDevices->append( &currentDevice );
199 } 199 }
200 addSearchedDevices( *loadedDevices ); 200 addSearchedDevices( *loadedDevices );
201 } 201 }
202 202
203 /** 203 /**
204 * Write the list of allready known devices 204 * Write the list of allready known devices
205 * 205 *
206 */ 206 */
207 void BlueBase::writeSavedDevices() { 207 void BlueBase::writeSavedDevices() {
208 208
209 QListViewItemIterator it( ListView2 ); 209 QListViewItemIterator it( ListView2 );
210 210
211 for ( ; it.current(); ++it ) { 211 for ( ; it.current(); ++it ) {
212 212
213 // seperate config file for each device, to store more information in future. 213 // seperate config file for each device, to store more information in future.
214// TO FIX: BTLISTITEM!!! 214// TO FIX: BTLISTITEM!!!
215 qDebug( "/Settings/bluetooth/" + (((BTListItem*)it.current())->mac()) + ".conf");
216 Config conf( QDir::homeDirPath() + "/Settings/bluetooth/" + (((BTListItem*)it.current())->mac()) + ".conf", Config::File );
215 217
216 // Config conf( QDir::homeDirPath() + "/Settings/bluetooth/" + (((BTListItem)it.current())->mac()) + ".conf", Config::File ); 218 conf.setGroup( "Info" );
217 // conf.setGroup( "Info" ); 219 conf.writeEntry( "name", ((BTListItem*)it.current())->name() );
218 // conf.writeEntry( "name", it.current()->name() );
219 } 220 }
220 } 221 }
221 222
222 223
223 /** 224 /**
224 * Set up the gui 225 * Set up the gui
225 */ 226 */
226 void BlueBase::initGui() { 227 void BlueBase::initGui() {
227 228
228 StatusLabel->setText( getStatus() ); // maybe move it to getStatus() 229 StatusLabel->setText( getStatus() ); // maybe move it to getStatus()
229 230
230 cryptCheckBox->setChecked( useEncryption ); 231 cryptCheckBox->setChecked( useEncryption );
231 authCheckBox->setChecked( enableAuthentification ); 232 authCheckBox->setChecked( enableAuthentification );
232 pagescanCheckBox->setChecked( enablePagescan ); 233 pagescanCheckBox->setChecked( enablePagescan );
233 inquiryscanCheckBox->setChecked( enableInquiryscan ); 234 inquiryscanCheckBox->setChecked( enableInquiryscan );
234 deviceNameLine->setText( deviceName ); 235 deviceNameLine->setText( deviceName );
235 passkeyLine->setText( defaultPasskey ); 236 passkeyLine->setText( defaultPasskey );
236 // set info tab 237 // set info tab
237 setInfo(); 238 setInfo();
238 } 239 }
239 240
240 241
241 /** 242 /**
242 * Get the status informations and returns it 243 * Get the status informations and returns it