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