author | andyq <andyq> | 2002-10-17 22:49:03 (UTC) |
---|---|---|
committer | andyq <andyq> | 2002-10-17 22:49:03 (UTC) |
commit | 943c09096f11827470b9cd3e311329ac422aaf20 (patch) (side-by-side diff) | |
tree | cec58c8ee61f85a2ebf3944594962a42489255fb | |
parent | 63a3ca758c82a397f448cce88789bf12c492b294 (diff) | |
download | opie-943c09096f11827470b9cd3e311329ac422aaf20.zip opie-943c09096f11827470b9cd3e311329ac422aaf20.tar.gz opie-943c09096f11827470b9cd3e311329ac422aaf20.tar.bz2 |
Read/Write out to config file whether a destination is set to linkToRoot
-rw-r--r-- | noncore/settings/aqpkg/datamgr.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/noncore/settings/aqpkg/datamgr.cpp b/noncore/settings/aqpkg/datamgr.cpp index d929c39..089c3e3 100644 --- a/noncore/settings/aqpkg/datamgr.cpp +++ b/noncore/settings/aqpkg/datamgr.cpp @@ -20,2 +20,6 @@ using namespace std; +#ifdef QWS +#include <qpe/config.h> +#endif + #include <stdio.h> @@ -72,2 +76,7 @@ void DataManager :: loadServers() +#ifdef QWS + Config cfg( "aqpkg" ); + cfg.setGroup( "destinations" ); +#endif + // Read file from /etc/ipkg.conf @@ -114,2 +123,10 @@ void DataManager :: loadServers() Destination d( alias, path ); + bool linkToRoot = true; +#ifdef QWS + QString key = alias; + key += "_linkToRoot"; + linkToRoot = cfg.readBoolEntry( key, true ); +#endif + d.linkToRoot( linkToRoot ); + destList.push_back( d ); |