summaryrefslogtreecommitdiff
path: root/libopie2/opiepim/oevent.h
authoreilers <eilers>2003-12-08 15:18:10 (UTC)
committer eilers <eilers>2003-12-08 15:18:10 (UTC)
commit6974a4bbdc674a2a5d41d801f80035a183faedb5 (patch) (side-by-side diff)
tree09a719ef263047e92ffb866da13168b7f7d41f23 /libopie2/opiepim/oevent.h
parent7f2f736597490fd1592d7ed1f40e4abf824673c0 (diff)
downloadopie-6974a4bbdc674a2a5d41d801f80035a183faedb5.zip
opie-6974a4bbdc674a2a5d41d801f80035a183faedb5.tar.gz
opie-6974a4bbdc674a2a5d41d801f80035a183faedb5.tar.bz2
Committing unfinished sql implementation before merging to libopie2 starts..
Diffstat (limited to 'libopie2/opiepim/oevent.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiepim/oevent.h38
1 files changed, 24 insertions, 14 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,
};
/**
@@ -74,7 +83,7 @@ public:
void setDescription( const QString& description );
QString location()const;
- void setLocation( const QString& loc );
+ void setLocation( const QString& loc );
bool hasNotifiers()const;
OPimNotifyManager &notifiers()const;
@@ -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();