Diffstat (limited to 'library/backend/recordfields.h') (more/less context) (show 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,39 +1,38 @@ | |||
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, |
@@ -67,51 +66,52 @@ namespace Qtopia | |||
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 | }; |