|
1 /* |
|
2 * Copyright (c) 2004-2009 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: |
|
15 * Name : CSIPCRITCUtility.h |
|
16 * Part of : SIP Client Resolver |
|
17 * Version : 1.0 |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 /** |
|
25 @internalComponent |
|
26 */ |
|
27 |
|
28 #ifndef CSIPCRITCUTILITY_H |
|
29 #define CSIPCRITCUTILITY_H |
|
30 |
|
31 // INCLUDES |
|
32 #include <e32base.h> |
|
33 #include "sipCRclientserver.h" |
|
34 |
|
35 // FORWARD DECLARATIONS |
|
36 class SIPCRSerializer; |
|
37 class CSIPRequest; |
|
38 |
|
39 |
|
40 class CSIPCRITCUtility : public CBase |
|
41 { |
|
42 public: |
|
43 static CSIPCRITCUtility* NewL (); |
|
44 |
|
45 static CSIPCRITCUtility* NewLC (); |
|
46 |
|
47 ~CSIPCRITCUtility (); |
|
48 |
|
49 void ReadSIPRequestL(const RMessage2& aMessage, |
|
50 CSIPRequest& aRequest); |
|
51 |
|
52 TUid ReadResolverUidL(const RMessage2& aMessage) const; |
|
53 |
|
54 void WriteChannelUidL(const RMessage2& aMessage, |
|
55 const TUid& aUid) const; |
|
56 |
|
57 void WriteSIPResponseL(const RMessage2& aMessage, |
|
58 CBufFlat& aResponse) const; |
|
59 |
|
60 void WriteSIPResponseContentL(const RMessage2& aMessage, |
|
61 const TDesC8& aContent) const; |
|
62 |
|
63 TUid ReadUIDL (const RMessage2& aMessage) const; |
|
64 |
|
65 void WriteUIDL(const RMessage2& aMessage, TUid aUID) const; |
|
66 |
|
67 void WriteRequestIdL (const RMessage2& aMessage,TUint32 aId) const; |
|
68 |
|
69 void WriteClientResolvedL (const RMessage2& aMessage, |
|
70 TSIPCRIpcResponses aResponse) const; |
|
71 |
|
72 void WriteResponseSizeL (const RMessage2& aMessage, |
|
73 TSIPCRMessageBufSizes aSizes) const; |
|
74 |
|
75 TUint32 ReadRequestIdL (const RMessage2& aMessage) const; |
|
76 |
|
77 void Complete (const RMessage2& aMessage, |
|
78 TInt aCompletionCode) const; |
|
79 |
|
80 static void WaitForMutexLC(RMutex& aMutex); |
|
81 |
|
82 static void SignalMutex(TAny* aMutex); |
|
83 |
|
84 private: |
|
85 |
|
86 void ConstructL (); |
|
87 |
|
88 void WriteL (TSIPCRIpcArguments aItcArgIndex, |
|
89 const RMessage2& aMessage, |
|
90 const TDesC8& aDes) const; |
|
91 |
|
92 HBufC8* ReadL (TSIPCRIpcArguments aItcArgIndex, |
|
93 const RMessage2& aMessage) const; |
|
94 |
|
95 HBufC8* ReadLC (TSIPCRIpcArguments aItcArgIndex, |
|
96 const RMessage2& aMessage) const; |
|
97 |
|
98 private: // Data |
|
99 |
|
100 SIPCRSerializer* iSerializer; |
|
101 }; |
|
102 |
|
103 #endif //CSIPCRITCUTILITY_H |
|
104 |
|
105 // End of File |