From 7484344ff5be1f7c54e51715776d0e3cadeb1ed0 Mon Sep 17 00:00:00 2001 From: zecke Date: Thu, 18 Nov 2004 21:45:49 +0000 Subject: Big PIM API Update Core Part (1/2 of what should be implemented): OPimRecords: -Add a so called safeCast using the rtti value OPimTodo: -Fix memleak with OPimState OPimOccurrence: -New class. Every 'Access' can give occurrences for a period of time Move Documentation --- (limited to 'libopie2/opiepim/core/opimglobal.h') diff --git a/libopie2/opiepim/core/opimglobal.h b/libopie2/opiepim/core/opimglobal.h index 3925c89..9d319a1 100644 --- a/libopie2/opiepim/core/opimglobal.h +++ b/libopie2/opiepim/core/opimglobal.h @@ -29,12 +29,24 @@ #ifndef __OPIMGLOBAL_H_ #define __OPIMGLOBAL_H_ +#include + namespace Opie{ + +/** + * The unique identifier for every + * PIM record. For now it is a negative + * int but we could change it to long or QUuid + * in the future + */ +typedef int UID; +typedef QArray UIDArray; + namespace Pim{ - /** - * Contains global types and enums for the PIM-API + /** + * Contains global types and enums for the PIM-API */ class OPimGlobal{ public: @@ -44,7 +56,7 @@ class OPimGlobal{ DATEBOOK, _END_PimType }; - + enum DatabaseStyle { DEFAULT, // Use default Database UNKNOWN, // Unknown database style -- cgit v0.9.0.2