From d94c9d39ab6e744f848a04c07eac03f20c91987c Mon Sep 17 00:00:00 2001 From: andyq Date: Sun, 17 Nov 2002 20:03:25 +0000 Subject: Added filter by category, and added extra fields to package display (Section and size) --- (limited to 'noncore/settings/aqpkg/datamgr.cpp') 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 + "#"; +} -- cgit v0.9.0.2