|
1 /* |
|
2 * Copyright (c) 2002-2007 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: Common definitions for the sim server. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef VPBKSIMSERVERCOMMON_H |
|
21 #define VPBKSIMSERVERCOMMON_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32std.h> |
|
25 |
|
26 // CONSTANTS |
|
27 |
|
28 // Name for the server thread |
|
29 _LIT( KVPbkSimServerName, "VPbkSimServer" ); |
|
30 // Executable name of the server |
|
31 _LIT( KVPbkSimServerExeName, "VPbkSimServer" ); |
|
32 |
|
33 // Version numbers |
|
34 const TInt KVPbkSimServerMajorVersion = 1; |
|
35 const TInt KVPbkSimServerMinorVersion = 0; |
|
36 const TInt KVPbkSimServerBuildVersion = 0; |
|
37 |
|
38 // Message slot definitions |
|
39 const TInt KVPbkSlot0 = 0; |
|
40 const TInt KVPbkSlot1 = 1; |
|
41 const TInt KVPbkSlot2 = 2; |
|
42 const TInt KVPbkSlot3 = 3; |
|
43 |
|
44 #if defined(__WINS__) || defined(WINS) |
|
45 // The delay to server shut down after last session closes |
|
46 const TInt KVPbkSimServerShutDownDelay = 10000000; // 10 seconds in emulator |
|
47 #else |
|
48 // The delay to server shut down after last session closes |
|
49 const TInt KVPbkSimServerShutDownDelay = 600000000; // 10 minutes in HW |
|
50 #endif |
|
51 |
|
52 // DATA TYPES |
|
53 |
|
54 // Store events |
|
55 enum TVPbkSimEvent |
|
56 { |
|
57 EVPbkSimUnknown, |
|
58 EVPbkSimStoreOpen = 100, |
|
59 EVPbkSimStoreError, |
|
60 EVPbkSimStoreNotAvailable, |
|
61 EVPbkSimViewOpen = 200, |
|
62 EVPbkSimViewError, |
|
63 EVPbkSimViewNotAvailable, |
|
64 EVPbkSimContactAdded = 300, |
|
65 EVPbkSimContactDeleted, |
|
66 EVPbkSimContactChanged, |
|
67 EVPbkSimPhoneOpen = 400, |
|
68 EVPbkSimPhoneError, |
|
69 EVPbkSimPhoneServiceTableUpdated, |
|
70 EVPbkSimPhoneFdnStatusChanged |
|
71 }; |
|
72 |
|
73 // View event structure |
|
74 struct TVPbkSimContactEventData |
|
75 { |
|
76 TVPbkSimContactEventData() |
|
77 { |
|
78 iEvent = EVPbkSimUnknown; |
|
79 iData = KErrNotFound; |
|
80 iOpData = KErrNotFound; |
|
81 } |
|
82 TVPbkSimEvent iEvent; |
|
83 TInt iData; |
|
84 TInt16 iOpData; |
|
85 }; |
|
86 |
|
87 #endif // VPBKSIMSERVERCOMMON_H |
|
88 |
|
89 // End of File |