summaryrefslogtreecommitdiff
path: root/library/backend/recordfields.h
Unidiff
Diffstat (limited to 'library/backend/recordfields.h') (more/less context) (ignore whitespace changes)
-rw-r--r--library/backend/recordfields.h135
1 files changed, 135 insertions, 0 deletions
diff --git a/library/backend/recordfields.h b/library/backend/recordfields.h
new file mode 100644
index 0000000..3cddde2
--- a/dev/null
+++ b/library/backend/recordfields.h
@@ -0,0 +1,135 @@
1/**********************************************************************
2** Copyright (C) 2000 Trolltech AS. All rights reserved.
3**
4** This file is part of Qtopia Environment.
5**
6** Licensees holding valid Qtopia Developer license may use this
7** file in accordance with the Qtopia Developer License Agreement
8** provided with the Software.
9**
10** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING
11** THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
12** PURPOSE.
13**
14** email sales@trolltech.com for information about Qtopia License
15** Agreements.
16**
17** Contact info@trolltech.com if any conditions of this licensing are
18** not clear to you.
19**
20**********************************************************************/
21#ifndef QPC_RECORD_FIELDS_H
22#define QPC_RECORD_FIELDS_H
23#include "qpcglobal.h"
24
25// dataset = "addressbook"
26namespace Qtopia
27{
28 static const int UID_ID = 0;
29 static const int CATEGORY_ID = 1;
30
31 enum AddressBookFields {
32 AddressUid = UID_ID,
33 AddressCategory = CATEGORY_ID,
34
35 Title,
36 FirstName,
37 MiddleName,
38 LastName,
39 Suffix,
40 FileAs,
41
42 // email
43 DefaultEmail,
44 Emails,
45
46 // home
47 HomeStreet,
48 HomeCity,
49 HomeState,
50 HomeZip,
51 HomeCountry,
52 HomePhone,
53 HomeFax,
54 HomeMobile,
55 HomeWebPage,
56
57 // business
58 Company,
59 BusinessStreet,
60 BusinessCity,
61 BusinessState,
62 BusinessZip,
63 BusinessCountry,
64 BusinessWebPage,
65 JobTitle,
66 Department,
67 Office,
68 BusinessPhone,
69 BusinessFax,
70 BusinessMobile,
71 BusinessPager,
72 Profession,
73 Assistant,
74 Manager,
75
76 //personal
77 Spouse,
78 Gender,
79 Birthday,
80 Anniversary,
81 Nickname,
82 Children,
83
84 // other
85 Notes,
86 Groups
87 };
88
89 // dataset = "todolist"
90 enum TaskFields {
91 TaskUid = UID_ID,
92 TaskCategory = CATEGORY_ID,
93
94 HasDate,
95 Completed,
96 TaskDescription,
97 Priority,
98 Date
99 };
100
101 // dataset = "categories" for todos
102 enum CategoryFields {
103 CatUid = UID_ID,
104 CatName,
105 CatAppGroup
106 };
107
108
109// dataset = "datebook"
110 enum DatebookFields {
111 DatebookUid = UID_ID,
112 DatebookCategory = CATEGORY_ID,
113
114 DatebookDescription,
115 Location,
116 TimeZone,
117 Note,
118 StartDateTime,
119 EndDateTime,
120 DatebookType,
121 HasAlarm,
122 SoundType,
123 AlarmTime,
124
125 RepeatPatternType,
126 RepeatPatternFrequency,
127 RepeatPatternPosition,
128 RepeatPatternDays,
129 RepeatPatternHasEndDate,
130 RepeatPatternEndDate,
131 };
132};
133
134
135#endif