summaryrefslogtreecommitdiff
path: root/libopie2/opiepim/core/opimrecord.h
Side-by-side diff
Diffstat (limited to 'libopie2/opiepim/core/opimrecord.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiepim/core/opimrecord.h19
1 files changed, 16 insertions, 3 deletions
diff --git a/libopie2/opiepim/core/opimrecord.h b/libopie2/opiepim/core/opimrecord.h
index e4d33d6..dbb94ed 100644
--- a/libopie2/opiepim/core/opimrecord.h
+++ b/libopie2/opiepim/core/opimrecord.h
@@ -4,15 +4,22 @@
#include <qmap.h>
#include <qstring.h>
#include <qstringlist.h>
#include <qpe/palmtoprecord.h>
+
+/**
+ * This is the base class for
+ * all PIM Records
+ *
+ */
class OPimRecord : public Qtopia::Record {
public:
/**
+ * c'tor
* uid of 0 isEmpty
* uid of 1 will be assigned a new one
*/
OPimRecord(int uid = 0);
~OPimRecord();
@@ -41,12 +48,13 @@ public:
* to the internal category list
*/
void addCategoryName( const QString& );
/**
* if a Record isEmpty
+ * it's empty if it's 0
*/
virtual bool isEmpty()const;
/**
* toRichText summary
*/
@@ -85,25 +93,30 @@ public:
/**
* the realtions between an app
*/
QArray<int> relations( const QString& app )const;
/**
- *
+ * clear the relations for all relations
+ * with app
*/
void clearRelation( const QString& app );
/**
- *
+ * add a relation
*/
void addRelation( const QString& app, int id );
/**
- *
+ * set the relations for an app
*/
void setRelations( const QString&, QArray<int> ids );
+
+ /**
+ * set the uid
+ */
virtual void setUid( int uid );
protected:
Qtopia::UidGen &uidGen();
QString crossToString()const;