|
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 the License "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: Forwards Tsy requests from Symbian OS to Domestic OS |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CMMMESSAGEMANAGERCALLBACK_H |
|
21 #define CMMMESSAGEMANAGERCALLBACK_H |
|
22 |
|
23 // INCLUDES |
|
24 |
|
25 #include <ctsy/pluginapi/cmmdatapackage.h> |
|
26 #include "ctsy/pluginapi/mmmessagemanagercallback.h" |
|
27 |
|
28 |
|
29 // CONSTANTS |
|
30 //none |
|
31 |
|
32 // MACROS |
|
33 //none |
|
34 |
|
35 // DATA TYPES |
|
36 //none |
|
37 |
|
38 // FUNCTION PROTOTYPES |
|
39 //none |
|
40 |
|
41 // FORWARD DECLARATIONS |
|
42 class CCore; |
|
43 |
|
44 |
|
45 |
|
46 // CLASS DECLARATION |
|
47 /** |
|
48 * Forwards Tsy requests from Symbian OS to Domestic OS |
|
49 */ |
|
50 class CMmMessageManagerCallback : public MmMessageManagerCallback |
|
51 { |
|
52 |
|
53 // public methods |
|
54 public: |
|
55 |
|
56 /** |
|
57 * Creates a new CMmMessageManager object |
|
58 * @return reference to created CMmMessageManager type of object |
|
59 */ |
|
60 static CMmMessageManagerCallback* NewL( CCore* aCore ); |
|
61 |
|
62 /** |
|
63 * Destructor |
|
64 */ |
|
65 virtual ~CMmMessageManagerCallback(); |
|
66 |
|
67 /** |
|
68 * From MmMessageManagerCallback |
|
69 * Completes a request or a notification with no data |
|
70 */ |
|
71 void Complete( TInt aIpc, TInt aResult ); |
|
72 |
|
73 /** |
|
74 * From MmMessageManagerCallback |
|
75 * Completes a request or a notification with packaged data |
|
76 */ |
|
77 void Complete( TInt aIpc, CMmDataPackage* data, TInt aResult ); |
|
78 |
|
79 // protected methods |
|
80 protected: |
|
81 |
|
82 |
|
83 // private methods |
|
84 private: |
|
85 |
|
86 void ConstructL ( CCore* aCore ); |
|
87 |
|
88 /** |
|
89 * Default constructor |
|
90 */ |
|
91 CMmMessageManagerCallback(); |
|
92 |
|
93 // public attributes |
|
94 public: |
|
95 |
|
96 // protected attributes |
|
97 protected: |
|
98 |
|
99 //writing package for Handlers (only one at the moment) |
|
100 CMmDataPackage iDataPackage; |
|
101 |
|
102 // private attributes |
|
103 private: |
|
104 |
|
105 CCore* iCore; |
|
106 |
|
107 }; |
|
108 |
|
109 |
|
110 #endif // CMMMESSAGEMANAGERCALLBACK_H |
|
111 |
|
112 // End of file |