-rw-r--r-- | noncore/net/opietooth/manager/bluebase.cpp | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp index 5d742b7..cc51405 100644 --- a/noncore/net/opietooth/manager/bluebase.cpp +++ b/noncore/net/opietooth/manager/bluebase.cpp | |||
@@ -81,3 +81,2 @@ namespace OpieTooth { | |||
81 | 81 | ||
82 | |||
83 | //TESTING | 82 | //TESTING |
@@ -136,8 +135,21 @@ namespace OpieTooth { | |||
136 | 135 | ||
137 | Config deviceListSave( QDir::homeDirPath() + "/Settings/bluetooth/devicelist.conf", Config::File ); | 136 | QDir deviceListSave( QDir::homeDirPath() + "/Settings/bluetooth/"); |
137 | // list of .conf files | ||
138 | QStringList devicesFileList = deviceListSave.entryList(); | ||
138 | 139 | ||
140 | // cut .conf of to get the mac and also read the name entry in it. | ||
139 | 141 | ||
140 | // RemoteDevice *currentDevice = RemoteDevice( , ); | 142 | for ( QStringList::Iterator it = devicesFileList.begin(); it != devicesFileList.end(); ++it ) { |
141 | //loadedDevices->append( currentDevice ); | ||
142 | 143 | ||
144 | QString name; | ||
145 | QString mac; | ||
146 | qDebug((*it).latin1() ); | ||
147 | Config conf((*it)); | ||
148 | conf.setGroup("Info"); | ||
149 | name = conf.readEntry("name", "Error"); | ||
150 | qDebug("MAC: " + mac); | ||
151 | qDebug("NAME: " + name); | ||
152 | RemoteDevice currentDevice = RemoteDevice( mac , name ); | ||
153 | loadedDevices->append( ¤tDevice ); | ||
154 | } | ||
143 | addSearchedDevices( *loadedDevices ); | 155 | addSearchedDevices( *loadedDevices ); |
@@ -193,3 +205,2 @@ namespace OpieTooth { | |||
193 | return (infoString); | 205 | return (infoString); |
194 | |||
195 | } | 206 | } |
@@ -214,3 +225,2 @@ namespace OpieTooth { | |||
214 | box->show(); | 225 | box->show(); |
215 | |||
216 | // falls nötig hcid killhupen - die funktionalität adden | 226 | // falls nötig hcid killhupen - die funktionalität adden |
@@ -263,3 +273,2 @@ namespace OpieTooth { | |||
263 | 273 | ||
264 | |||
265 | } | 274 | } |
@@ -307,4 +316,2 @@ namespace OpieTooth { | |||
307 | 316 | ||
308 | |||
309 | |||
310 | QListViewItem * serviceItem; | 317 | QListViewItem * serviceItem; |
@@ -334,3 +341,2 @@ namespace OpieTooth { | |||
334 | // search by mac | 341 | // search by mac |
335 | // | ||
336 | localDevice->isAvailable( device->mac() ); | 342 | localDevice->isAvailable( device->mac() ); |
@@ -367,3 +373,2 @@ namespace OpieTooth { | |||
367 | } | 373 | } |
368 | |||
369 | } | 374 | } |