|
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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MUSMANAGERIPCCOMMON_H |
|
21 #define MUSMANAGERIPCCOMMON_H |
|
22 |
|
23 #include <e32std.h> |
|
24 |
|
25 #include "musuid.hrh" |
|
26 |
|
27 _LIT( KMusManagerServerName,"musmanagerserver" ); |
|
28 _LIT( KMusManagerServerFilename, "musmanagerserver" ); |
|
29 _LIT( KMusManagerServerSemaphoreName, "musmanagerserverSemaphore" ); |
|
30 |
|
31 const TUid KServerUid3 = { KMusManagerServerUid }; |
|
32 |
|
33 #if (defined (__WINS__) || defined(__WINSCW__)) |
|
34 static const TUint KServerMinHeapSize = 0x1000; // 4K |
|
35 static const TUint KServerMaxHeapSize = 0x80000; // 512K (Should be enough) |
|
36 #endif |
|
37 |
|
38 // The server version. |
|
39 // A version must be specified when creating a session with the server |
|
40 const TUint KMusManagerServerMajorVersionNumber=0; |
|
41 const TUint KMusManagerServerMinorVersionNumber=1; |
|
42 const TUint KMusManagerServerBuildVersionNumber=1; |
|
43 |
|
44 // A container for incoming buffer sizes |
|
45 class TMusManagerMessageBufSizes |
|
46 { |
|
47 public: |
|
48 |
|
49 TMusManagerMessageBufSizes() |
|
50 : iHeaderBufSize(0), |
|
51 iContentBufSize(0) {} |
|
52 |
|
53 TMusManagerMessageBufSizes(TInt aHeaderBufSize, TInt aContentBufSize) |
|
54 : iHeaderBufSize(aHeaderBufSize), |
|
55 iContentBufSize(aContentBufSize) {} |
|
56 |
|
57 TMusManagerMessageBufSizes(const TMusManagerMessageBufSizes& aSizes) |
|
58 : iHeaderBufSize(aSizes.iHeaderBufSize), |
|
59 iContentBufSize(aSizes.iContentBufSize) {} |
|
60 |
|
61 TInt iHeaderBufSize; |
|
62 TInt iContentBufSize; |
|
63 }; |
|
64 |
|
65 |
|
66 // Oper. codes used in passing IPC messages between C/S-client and C/S-server |
|
67 enum TMusManagerIpcFunctions |
|
68 { |
|
69 // No capabilities required 0-3 |
|
70 EMusManagerIpcAvailabilityQuery, // Asynchronous receive |
|
71 EMusManagerIpcInvestigateAvailability, |
|
72 EMusManagerIpcInvitationReceived, |
|
73 EMusManagerIpcOptionsReceived, |
|
74 EMusManagerIpcStartMultimediaSharing, |
|
75 EMusManagerIpcStopMultimediaSharing, |
|
76 EMusManagerIpcStartObservingAvailability, |
|
77 EMusManagerIpcMonitorAvailability, |
|
78 EMusManagerIpcCancelMonitoring, |
|
79 EMusManagerIpcHandleCommand |
|
80 }; |
|
81 |
|
82 |
|
83 // Indexes used in IPC parameter array passed between C/S-client and C/S-server |
|
84 // |
|
85 // All the parameters except EMusManagerIpcArgMessage are packed into package buffers |
|
86 // to enable IPC parameter in-out behaviour. |
|
87 // |
|
88 // NOTE: Remember to update the types in comments if the actual types change. |
|
89 // |
|
90 enum TMusManagerIpcArguments |
|
91 { |
|
92 EMusManagerIpcArgAvailability = 0, // Type: TUint32 |
|
93 EMusManagerIpcArgChannelUid = 0, // Type: TUid |
|
94 EMusManagerIpcArgUseCase = 0, // Type: TInt |
|
95 EMusManagerIpcArgSipResponse = 1, // Type: TDes8/TDesC8 |
|
96 EMusManagerIpcArgSipRequest = 1, // Type: TDesC8 |
|
97 EMusManagerIpcArgBufSizes = 2, // Type: TMusManagerMessageBufSizes |
|
98 EMusManagerIpcArgSipMessageContent = 2, // Type: TDes8/TDesC8 |
|
99 EMusManagerIpcArgResolverUid = 3, // Type: TUid |
|
100 EMusManagerIpcArgRequestStatus = 0, // Type: TRequestStatus |
|
101 EMusManagerIpcArgAvailabilityStatus = 1, // Type: TAvailabilityStatus |
|
102 EMusManagerIpcArgCommandType = 0 // Type: TCommandType |
|
103 }; |
|
104 |
|
105 enum TMusManagerIpcResponses |
|
106 { |
|
107 EMusManagerChannelComplete = 1, |
|
108 EMusManagerClientNotFound |
|
109 }; |
|
110 |
|
111 #endif // MUSMANAGERIPCCOMMON_H |
|
112 |
|
113 // End of File |