|
1 /* |
|
2 * Copyright (c) 2006 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: Defines for XIMP Framework PSC server. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef XIMPPSCSERVERDEFS_H |
|
19 #define XIMPPSCSERVERDEFS_H |
|
20 |
|
21 #include <e32std.h> |
|
22 |
|
23 /* |
|
24 * ============================================================================ |
|
25 * Presence Service Connection (PSC) server constants |
|
26 * ============================================================================ |
|
27 */ |
|
28 namespace NXIMPSrv |
|
29 { |
|
30 /** |
|
31 * PSC server version numbers |
|
32 */ |
|
33 namespace NVersion |
|
34 { |
|
35 const TInt KMajor = 1; |
|
36 const TInt KMinor = 1; |
|
37 const TInt KBuild = 1; |
|
38 } |
|
39 |
|
40 |
|
41 /** |
|
42 * PSC server names |
|
43 */ |
|
44 namespace NName |
|
45 { |
|
46 _LIT( KExecutable, "ximpserver.exe" ); |
|
47 _LIT( KMainThread, "XIMPPscSrv" ); |
|
48 _LIT( KSymbianServer, "!XIMPPscSrv" ); |
|
49 _LIT( KServerPattern, "*XIMP*" ); |
|
50 } |
|
51 |
|
52 |
|
53 /** |
|
54 * PSC server start-up parameters |
|
55 */ |
|
56 namespace NStartupParam |
|
57 { |
|
58 //RProcess parameter slot for the protocol UID |
|
59 const TInt KProtocolUidIndex = 1; |
|
60 |
|
61 //Maximum length for the UID string |
|
62 const TInt KProtocolUidMaxLen = 8; |
|
63 } |
|
64 |
|
65 |
|
66 /** |
|
67 * PSC server requests |
|
68 */ |
|
69 namespace NRequest |
|
70 { |
|
71 //Number asynchronous message slots for PSC server |
|
72 const TUint KMsgSlotCount = 4; |
|
73 |
|
74 //PSC Server op codes |
|
75 enum TOpCodes |
|
76 { |
|
77 EBecomeCtxSession = 1, |
|
78 |
|
79 ECtxSsQueueOperation, |
|
80 |
|
81 ECtxSsInstallEventFilter, |
|
82 ECtxSsSetEventListenScout, |
|
83 ECtxSsCancelEventListenScout, |
|
84 ECtxSsFetchTopEventDataSize, |
|
85 ECtxSsFetchTopEventData, |
|
86 ECtxSsFetchTopEventReqId, |
|
87 ECtxSsDropTopEvent, |
|
88 |
|
89 ECtxSsPrepareContextFeatures, |
|
90 ECtxSsGetPreparedData, |
|
91 |
|
92 ECtxSsQueueBindOperation, // 12 |
|
93 |
|
94 EOpCodeTop |
|
95 }; |
|
96 } |
|
97 } |
|
98 |
|
99 |
|
100 #endif //XIMPPSCSERVERDEFS_H |
|
101 |
|
102 |
|
103 |
|
104 |
|
105 |