summaryrefslogtreecommitdiff
path: root/libopie2/opiepim/oevent.h
Side-by-side diff
Diffstat (limited to 'libopie2/opiepim/oevent.h') (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opiepim/oevent.h36
1 files changed, 23 insertions, 13 deletions
diff --git a/libopie2/opiepim/oevent.h b/libopie2/opiepim/oevent.h
index 30f442e..9218c97 100644
--- a/libopie2/opiepim/oevent.h
+++ b/libopie2/opiepim/oevent.h
@@ -41,21 +41,30 @@ public:
typedef QValueList<OEvent> ValueList;
/**
* RecordFields contain possible attributes
+ * used in the Results of toMap()..
*/
enum RecordFields {
- Uid = Qtopia::UID_ID,
- Category = Qtopia::CATEGORY_ID,
- Description,
- Location,
- Alarm,
- Reminder,
- Recurrence,
- Note,
- Created,
- StartDate,
- EndDate,
- AllDay,
- TimeZone
+ FUid = Qtopia::UID_ID,
+ FCategories = Qtopia::CATEGORY_ID,
+ FDescription = 0,
+ FLocation,
+ FType,
+ FAlarm,
+ FSound,
+ FRType,
+ FRWeekdays,
+ FRPosition,
+ FRFreq,
+ FRHasEndDate,
+ FREndDate,
+ FRCreated,
+ FRExceptions,
+ FStart,
+ FEnd,
+ FNote,
+ FTimeZone,
+ FRecParent,
+ FRecChildren,
};
/**
@@ -132,6 +141,7 @@ public:
QString type()const;
QMap<int, QString> toMap()const;
+ void fromMap( const QMap<int, QString>& map );
QString recordField(int )const;
static int rtti();