Diffstat (limited to 'libopie2/opiepim/core/opimglobal.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiepim/core/opimglobal.h | 18 |
1 files changed, 15 insertions, 3 deletions
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 | |||
@@ -26,28 +26,40 @@ | |||
26 | Inc., 59 Temple Place - Suite 330, | 26 | Inc., 59 Temple Place - Suite 330, |
27 | Boston, MA 02111-1307, USA. | 27 | Boston, MA 02111-1307, USA. |
28 | */ | 28 | */ |
29 | #ifndef __OPIMGLOBAL_H_ | 29 | #ifndef __OPIMGLOBAL_H_ |
30 | #define __OPIMGLOBAL_H_ | 30 | #define __OPIMGLOBAL_H_ |
31 | 31 | ||
32 | #include <qarray.h> | ||
33 | |||
32 | namespace Opie{ | 34 | namespace Opie{ |
35 | |||
36 | /** | ||
37 | * The unique identifier for every | ||
38 | * PIM record. For now it is a negative | ||
39 | * int but we could change it to long or QUuid | ||
40 | * in the future | ||
41 | */ | ||
42 | typedef int UID; | ||
43 | typedef QArray<UID> UIDArray; | ||
44 | |||
33 | namespace Pim{ | 45 | namespace Pim{ |
34 | 46 | ||
35 | 47 | ||
36 | /** | 48 | /** |
37 | * Contains global types and enums for the PIM-API | 49 | * Contains global types and enums for the PIM-API |
38 | */ | 50 | */ |
39 | class OPimGlobal{ | 51 | class OPimGlobal{ |
40 | public: | 52 | public: |
41 | enum PimType { | 53 | enum PimType { |
42 | TODOLIST, | 54 | TODOLIST, |
43 | CONTACTLIST, | 55 | CONTACTLIST, |
44 | DATEBOOK, | 56 | DATEBOOK, |
45 | _END_PimType | 57 | _END_PimType |
46 | }; | 58 | }; |
47 | 59 | ||
48 | enum DatabaseStyle { | 60 | enum DatabaseStyle { |
49 | DEFAULT, // Use default Database | 61 | DEFAULT, // Use default Database |
50 | UNKNOWN, // Unknown database style | 62 | UNKNOWN, // Unknown database style |
51 | XML, | 63 | XML, |
52 | SQL, | 64 | SQL, |
53 | VCARD, // Also used for VCAL ! | 65 | VCARD, // Also used for VCAL ! |