Diffstat (limited to 'noncore/settings/aqpkg/datamgr.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/aqpkg/datamgr.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/noncore/settings/aqpkg/datamgr.cpp b/noncore/settings/aqpkg/datamgr.cpp index f342aff..1420242 100644 --- a/noncore/settings/aqpkg/datamgr.cpp +++ b/noncore/settings/aqpkg/datamgr.cpp @@ -28,9 +28,11 @@ using namespace std; #include "global.h" +QString DataManager::availableCategories = ""; DataManager::DataManager() { - activeServer = ""; + activeServer = ""; + availableCategories = "#"; } DataManager::~DataManager() @@ -207,3 +209,11 @@ void DataManager :: writeOutIpkgConf() out.close(); } + + +void DataManager :: setAvailableCategories( QString section ) +{ + section = section.lower(); + if ( availableCategories.find( "#" + section + "#" ) == -1 ) + availableCategories += section + "#"; +} |