-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 @@ -19,4 +19,8 @@ using namespace std; +#ifdef QWS +#include <qpe/config.h> +#endif + #include <stdio.h> @@ -71,4 +75,9 @@ void DataManager :: loadServers() serverList.push_back( Server( LOCAL_IPKGS, "" ) ); +#ifdef QWS + Config cfg( "aqpkg" ); + cfg.setGroup( "destinations" ); +#endif + // Read file from /etc/ipkg.conf QString ipkg_conf = IPKG_CONF; @@ -113,4 +122,12 @@ void DataManager :: loadServers() sscanf( lineStr, "%*[^ ] %s %s", alias, path ); 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 ); } |