summaryrefslogtreecommitdiff
path: root/libopie2
authorzecke <zecke>2002-09-21 15:16:59 (UTC)
committer zecke <zecke>2002-09-21 15:16:59 (UTC)
commit978dcbe44df66d4efbbc12bdacdcb293358581fd (patch) (side-by-side diff)
tree83c4eb4ccaf4eefbfc871666379d4e79a6a4b3ef /libopie2
parente6c53c4d7317e766235449535b22d0d2fe709214 (diff)
downloadopie-978dcbe44df66d4efbbc12bdacdcb293358581fd.zip
opie-978dcbe44df66d4efbbc12bdacdcb293358581fd.tar.gz
opie-978dcbe44df66d4efbbc12bdacdcb293358581fd.tar.bz2
additions
Diffstat (limited to 'libopie2') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiepim/core/opimrecord.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/libopie2/opiepim/core/opimrecord.cpp b/libopie2/opiepim/core/opimrecord.cpp
index e510f4e..88b6fde 100644
--- a/libopie2/opiepim/core/opimrecord.cpp
+++ b/libopie2/opiepim/core/opimrecord.cpp
@@ -1,3 +1,6 @@
+#include <qpe/categories.h>
+#include <qpe/categoryselect.h>
+
#include "opimrecord.h"
OPimRecord::OPimRecord( int uid )
@@ -19,8 +22,18 @@ OPimRecord &OPimRecord::operator=( const OPimRecord& rec) {
return *this;
}
+/*
+ * category names
+ */
QStringList OPimRecord::categoryNames()const {
QStringList list;
+ QArray<int> cats = categories();
+ Categories catDB;
+ catDB.load( categoryFileName() );
+
+ for (uint i = 0; i < cats.count(); i++ ) {
+ list << catDB.label("Todo List", cats[i] );
+ }
return list;
}
@@ -28,6 +41,9 @@ void OPimRecord::setCategoryNames( const QStringList& ) {
}
void OPimRecord::addCategoryName( const QString& ) {
+ Categories catDB;
+ catDB.load( categoryFileName() );
+
}
bool OPimRecord::isEmpty()const {