|
1 /* |
|
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: ToDo types and constants |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef PIMTODO_H |
|
20 #define PIMTODO_H |
|
21 |
|
22 /** @file |
|
23 * This file contains the PIM API constants and definitions for ToDos. |
|
24 */ |
|
25 |
|
26 /** |
|
27 * ToDo field constants. |
|
28 */ |
|
29 enum TPIMToDoField |
|
30 { |
|
31 EPIMToDoClass = 100, |
|
32 /**< Integer, values from \ref TPIMToDoClassValue. */ |
|
33 EPIMToDoCompleted = 101, |
|
34 /**< Boolean. */ |
|
35 EPIMToDoCompletionDate = 102, |
|
36 /**< Date. */ |
|
37 EPIMToDoDue = 103, |
|
38 /**< Date. */ |
|
39 EPIMToDoNote = 104, |
|
40 /**< String. */ |
|
41 EPIMToDoPriority = 105, |
|
42 /**< Integer, values from [0,9]. */ |
|
43 EPIMToDoRevision = 106, |
|
44 /**< Date. */ |
|
45 EPIMToDoSummary = 107, |
|
46 /**< String. */ |
|
47 EPIMToDoUid = 108, |
|
48 /**< String, read-only when persisted (converted from the Item ID). */ |
|
49 EPIMToDoExtAlarm = 0x1005001 |
|
50 /**< Extended field "Alarm" */ |
|
51 }; |
|
52 |
|
53 /** |
|
54 * ToDo \ref EPIMToDoClass field values. |
|
55 * [From javax.microedition.pim.ToDo] |
|
56 */ |
|
57 enum TPIMToDoClassValue |
|
58 { |
|
59 EPIMToDoClassConfidential = 200, |
|
60 EPIMToDoClassPrivate = 201, |
|
61 EPIMToDoClassPublic = 202 |
|
62 }; |
|
63 |
|
64 /** |
|
65 * ToDo priority constants for native ToDos. |
|
66 */ |
|
67 // Based on empirical testing |
|
68 enum TPIMToDoNativePriority |
|
69 { |
|
70 EPIMToDoNativePriorityHigh = 1, |
|
71 EPIMToDoNativePriorityMedium = 2, |
|
72 EPIMToDoNativePriorityLow = 3 |
|
73 }; |
|
74 |
|
75 /** |
|
76 * ToDo priority constants for PIM API ToDos. |
|
77 */ |
|
78 enum TPIMToDoPriority |
|
79 { |
|
80 EPIMToDoPriorityMinValue = 0, |
|
81 EPIMToDoPriorityHigh = 1, |
|
82 EPIMToDoPriorityMedium = 4, |
|
83 EPIMToDoPriorityLow = 7, |
|
84 EPIMToDoPriorityMaxValue = 9 |
|
85 }; |
|
86 |
|
87 #endif // PIMTODO_H |
|
88 // End of file |