equal
deleted
inserted
replaced
|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalTechnology |
|
19 */ |
|
20 |
|
21 |
|
22 #if !defined(RESPONSEMSGACCESSOR_H) |
|
23 #define RESPONSEMSGACCESSOR_H |
|
24 |
|
25 #include <elements/responsemsg.h> |
|
26 |
|
27 namespace Elements |
|
28 { |
|
29 |
|
30 /** |
|
31 The RResponseMsg class provides a controlled wrapper around an IPC |
|
32 client-provided RMessage2. |
|
33 |
|
34 @internalTechnology |
|
35 @released |
|
36 */ |
|
37 class TResponseMsgAccessor |
|
38 { |
|
39 public: |
|
40 explicit TResponseMsgAccessor(RResponseMsg& aResponseMsg) |
|
41 : iResponseMsg(aResponseMsg) |
|
42 { |
|
43 } |
|
44 |
|
45 RMessage2& Message() |
|
46 { |
|
47 return static_cast<RMessage2&>(iResponseMsg); |
|
48 } |
|
49 |
|
50 private: |
|
51 RResponseMsg& iResponseMsg; |
|
52 }; |
|
53 |
|
54 } // namespace Elements |
|
55 |
|
56 #endif // RESPONSEMSGACCESSOR_H |
|
57 |
|
58 |