summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/bluebase.cpp
authorharlekin <harlekin>2002-06-23 09:10:55 (UTC)
committer harlekin <harlekin>2002-06-23 09:10:55 (UTC)
commit1d773d5df7038410c498d38a68a9569c1350975a (patch) (side-by-side diff)
treea14334997864cf5b01302e9aa05c0c09c72a86b3 /noncore/net/opietooth/manager/bluebase.cpp
parente9f053439c8409ea2e1e57de9bf6f764f994b222 (diff)
downloadopie-1d773d5df7038410c498d38a68a9569c1350975a.zip
opie-1d773d5df7038410c498d38a68a9569c1350975a.tar.gz
opie-1d773d5df7038410c498d38a68a9569c1350975a.tar.bz2
small load save update
Diffstat (limited to 'noncore/net/opietooth/manager/bluebase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/bluebase.cpp27
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 {
-
//TESTING
@@ -136,8 +135,21 @@ namespace OpieTooth {
- Config deviceListSave( QDir::homeDirPath() + "/Settings/bluetooth/devicelist.conf", Config::File );
+ QDir deviceListSave( QDir::homeDirPath() + "/Settings/bluetooth/");
+ // list of .conf files
+ QStringList devicesFileList = deviceListSave.entryList();
+ // cut .conf of to get the mac and also read the name entry in it.
- // RemoteDevice *currentDevice = RemoteDevice( , );
- //loadedDevices->append( currentDevice );
+ for ( QStringList::Iterator it = devicesFileList.begin(); it != devicesFileList.end(); ++it ) {
+ QString name;
+ QString mac;
+ qDebug((*it).latin1() );
+ Config conf((*it));
+ conf.setGroup("Info");
+ name = conf.readEntry("name", "Error");
+ qDebug("MAC: " + mac);
+ qDebug("NAME: " + name);
+ RemoteDevice currentDevice = RemoteDevice( mac , name );
+ loadedDevices->append( &currentDevice );
+ }
addSearchedDevices( *loadedDevices );
@@ -193,3 +205,2 @@ namespace OpieTooth {
return (infoString);
-
}
@@ -214,3 +225,2 @@ namespace OpieTooth {
box->show();
-
// falls nötig hcid killhupen - die funktionalität adden
@@ -263,3 +273,2 @@ namespace OpieTooth {
-
}
@@ -307,4 +316,2 @@ namespace OpieTooth {
-
-
QListViewItem * serviceItem;
@@ -334,3 +341,2 @@ namespace OpieTooth {
// search by mac
- //
localDevice->isAvailable( device->mac() );
@@ -367,3 +373,2 @@ namespace OpieTooth {
}
-
}