|
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: Protocol time information/data. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __CLOCK_TIMESOURCE_INTERFACE_HRH__ |
|
19 #define __CLOCK_TIMESOURCE_INTERFACE_HRH__ |
|
20 |
|
21 /** |
|
22 * @enum TInterfaceAttribute |
|
23 * @brief This enum defines the attributes which are used to get the data by the clockserver |
|
24 */ |
|
25 enum TInterfaceAttribute |
|
26 { |
|
27 EUTCTime = 0, |
|
28 EDSTOffset, |
|
29 ETZOffset, |
|
30 ELocationCoordinates, |
|
31 EAttrLast |
|
32 }; |
|
33 |
|
34 /** |
|
35 * @struct STimeAttributes |
|
36 * @brief This contains the various time attributes that a user application can request |
|
37 */ |
|
38 struct timeAttributes |
|
39 { |
|
40 /** UTC Time */ |
|
41 TDateTime iUtcDateTime; |
|
42 |
|
43 /** Timezone Offset */ |
|
44 TTimeIntervalMinutes iTimeZoneOffset; |
|
45 |
|
46 /** DST Offset */ |
|
47 TTimeIntervalMinutes iDstOffset; |
|
48 }; |
|
49 |
|
50 typedef timeAttributes STimeAttributes; |
|
51 |
|
52 /** |
|
53 * @enum TTimeSource |
|
54 * @brief The various protocols supported. |
|
55 */ |
|
56 enum TTimeSource |
|
57 { |
|
58 ENITZPlugin = 0, |
|
59 ESNTPPlugin, |
|
60 EGPSPlugin, |
|
61 EAllPlugins, |
|
62 EProtocolNULL |
|
63 }; |
|
64 |
|
65 /** |
|
66 * @enum TChangedComponent |
|
67 * @brief enum indicates which item underwent a change, passed by clockserver while a notification is given. |
|
68 */ |
|
69 enum TChangedComponent |
|
70 { |
|
71 EComponentMcc = 0x1000, |
|
72 EComponentTime, |
|
73 EComponentNone |
|
74 }; |
|
75 |
|
76 #endif // __CLOCK_TIMESOURCE_INTERFACE_HRH__ |
|
77 |
|
78 // End of file |