|
1 /* |
|
2 * Copyright (c) 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: Contains headers needed in plugin |
|
15 * |
|
16 */ |
|
17 |
|
18 #include <msvapi.h> |
|
19 #include <SendUiConsts.h> |
|
20 #include <msvuids.h> |
|
21 |
|
22 #include "nmipsmtmui.h" |
|
23 |
|
24 _LIT(KIpsMtmUiResourceFile, "ipsmtmui.rsc"); |
|
25 |
|
26 |
|
27 /*! |
|
28 \class CIpsMtmUi |
|
29 \brief Implements dummy mtm ui class for symbian mtm loader. All function leaves or returns |
|
30 NULL exept NewL and GetResourceFileName |
|
31 */ |
|
32 |
|
33 /*! |
|
34 |
|
35 */ |
|
36 CIpsMtmUi::CIpsMtmUi(CBaseMtm& aBaseMtm, CRegisteredMtmDll& aRegisteredMtmDll) : |
|
37 CBaseMtmUi(aBaseMtm, aRegisteredMtmDll) |
|
38 { |
|
39 |
|
40 } |
|
41 |
|
42 /*! |
|
43 |
|
44 */ |
|
45 CIpsMtmUi::~CIpsMtmUi() |
|
46 { |
|
47 |
|
48 } |
|
49 |
|
50 /*! |
|
51 |
|
52 */ |
|
53 EXPORT_C CIpsMtmUi* CIpsMtmUi::NewL( |
|
54 CBaseMtm& aBaseMtm, |
|
55 CRegisteredMtmDll& aRegisteredMtmDll) |
|
56 { |
|
57 CIpsMtmUi* self=new(ELeave) CIpsMtmUi(aBaseMtm, aRegisteredMtmDll); |
|
58 CleanupStack::PushL(self); |
|
59 self->ConstructL(); |
|
60 CleanupStack::Pop(); |
|
61 return self; |
|
62 } |
|
63 |
|
64 /*! |
|
65 |
|
66 */ |
|
67 void CIpsMtmUi::ConstructL() |
|
68 { |
|
69 CBaseMtmUi::ConstructL(); |
|
70 } |
|
71 |
|
72 |
|
73 void CIpsMtmUi::GetResourceFileName(TFileName& aFileName) const |
|
74 { |
|
75 aFileName = KIpsMtmUiResourceFile; |
|
76 } |
|
77 |
|
78 /*! |
|
79 Function always leaves |
|
80 */ |
|
81 CMsvOperation* CIpsMtmUi::OpenL(TRequestStatus& /*aStatus*/) |
|
82 { |
|
83 User::Leave(KErrNotSupported); |
|
84 return NULL; |
|
85 } |
|
86 |
|
87 /*! |
|
88 Function always leaves |
|
89 */ |
|
90 CMsvOperation* CIpsMtmUi::CloseL(TRequestStatus& /*aStatus*/) |
|
91 { |
|
92 User::Leave(KErrNotSupported); |
|
93 return NULL; |
|
94 } |
|
95 |
|
96 /*! |
|
97 Function always leaves |
|
98 */ |
|
99 CMsvOperation* CIpsMtmUi::EditL(TRequestStatus& /*aStatus*/) |
|
100 { |
|
101 User::Leave(KErrNotSupported); |
|
102 return NULL; |
|
103 } |
|
104 |
|
105 /*! |
|
106 Function always leaves |
|
107 */ |
|
108 CMsvOperation* CIpsMtmUi::ViewL(TRequestStatus& /*aStatus*/) |
|
109 { |
|
110 User::Leave(KErrNotSupported); |
|
111 return NULL; |
|
112 } |
|
113 |
|
114 /*! |
|
115 Function always leaves |
|
116 */ |
|
117 CMsvOperation* CIpsMtmUi::OpenL( |
|
118 TRequestStatus& /*aStatus*/, |
|
119 const CMsvEntrySelection& /*aSelection*/) |
|
120 { |
|
121 User::Leave(KErrNotSupported); |
|
122 return NULL; |
|
123 } |
|
124 |
|
125 /*! |
|
126 Function always leaves |
|
127 */ |
|
128 CMsvOperation* CIpsMtmUi::CloseL( |
|
129 TRequestStatus& /*aStatus*/, |
|
130 const CMsvEntrySelection& /*aSelection*/) |
|
131 { |
|
132 User::Leave(KErrNotSupported); |
|
133 return NULL; |
|
134 } |
|
135 |
|
136 /*! |
|
137 Function always leaves |
|
138 */ |
|
139 CMsvOperation* CIpsMtmUi::EditL( |
|
140 TRequestStatus& /*aStatus*/, |
|
141 const CMsvEntrySelection& /*aSelection*/) |
|
142 { |
|
143 User::Leave(KErrNotSupported); |
|
144 return NULL; |
|
145 } |
|
146 |
|
147 /*! |
|
148 Function always leaves |
|
149 */ |
|
150 CMsvOperation* CIpsMtmUi::ViewL( |
|
151 TRequestStatus& /*aStatus*/, |
|
152 const CMsvEntrySelection& /*aSelection*/) |
|
153 { |
|
154 User::Leave(KErrNotSupported); |
|
155 return NULL; |
|
156 } |
|
157 |
|
158 /*! |
|
159 Function always leaves |
|
160 */ |
|
161 CMsvOperation* CIpsMtmUi::CancelL( |
|
162 TRequestStatus& /*aStatus*/, |
|
163 const CMsvEntrySelection& /*aSelection*/) |
|
164 { |
|
165 User::Leave(KErrNotSupported); |
|
166 return NULL; |
|
167 } |
|
168 |
|
169 /*! |
|
170 Function always leaves |
|
171 */ |
|
172 CMsvOperation* CIpsMtmUi::ReplyL( |
|
173 TMsvId /*aDestination*/, |
|
174 TMsvPartList /*aPartlist*/, |
|
175 TRequestStatus& /*aCompletionStatus*/) |
|
176 { |
|
177 User::Leave(KErrNotSupported); |
|
178 return NULL; |
|
179 } |
|
180 |
|
181 /*! |
|
182 Function always leaves |
|
183 */ |
|
184 CMsvOperation* CIpsMtmUi::ForwardL( |
|
185 TMsvId /*aDestination*/, |
|
186 TMsvPartList /*aPartList*/, |
|
187 TRequestStatus& /*aCompletionStatus*/) |
|
188 { |
|
189 User::Leave(KErrNotSupported); |
|
190 return NULL; |
|
191 } |