summaryrefslogtreecommitdiff
path: root/noncore/settings/aqpkg/datamgr.cpp
authorandyq <andyq>2002-11-17 20:03:25 (UTC)
committer andyq <andyq>2002-11-17 20:03:25 (UTC)
commitd94c9d39ab6e744f848a04c07eac03f20c91987c (patch) (side-by-side diff)
treea9f32cca7c59ae565ab9caa3caf567100ed07cb4 /noncore/settings/aqpkg/datamgr.cpp
parenta94877f543bf0ebc2ec9c4c931cb5f21713b7872 (diff)
downloadopie-d94c9d39ab6e744f848a04c07eac03f20c91987c.zip
opie-d94c9d39ab6e744f848a04c07eac03f20c91987c.tar.gz
opie-d94c9d39ab6e744f848a04c07eac03f20c91987c.tar.bz2
Added filter by category, and added extra fields to package display (Section and size)
Diffstat (limited to 'noncore/settings/aqpkg/datamgr.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/datamgr.cpp12
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
@@ -25,15 +25,17 @@ using namespace std;
#include <stdio.h>
#include "datamgr.h"
#include "global.h"
+QString DataManager::availableCategories = "";
DataManager::DataManager()
{
- activeServer = "";
+ activeServer = "";
+ availableCategories = "#";
}
DataManager::~DataManager()
{
}
@@ -204,6 +206,14 @@ void DataManager :: writeOutIpkgConf()
out << "dest " << it2->getDestinationName() << " " << it2->getDestinationPath() << endl;
it2++;
}
out.close();
}
+
+
+void DataManager :: setAvailableCategories( QString section )
+{
+ section = section.lower();
+ if ( availableCategories.find( "#" + section + "#" ) == -1 )
+ availableCategories += section + "#";
+}