1 /* |
|
2 * Copyright (c) 2002 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 * Message type module UI data part. |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef CIRMTMUIDATA_H |
|
22 #define CIRMTMUIDATA_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <mtudcbas.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 |
|
29 |
|
30 // CLASS DECLARATION |
|
31 /** |
|
32 * CIrMtmUiData |
|
33 * |
|
34 */ |
|
35 class CIrMtmUiData : public CBaseMtmUiData |
|
36 { |
|
37 public: // Constructors and destructor |
|
38 |
|
39 /** |
|
40 * Two-phased constructor. |
|
41 */ |
|
42 static CIrMtmUiData* NewL(CRegisteredMtmDll& aRegisteredDll); |
|
43 |
|
44 /** |
|
45 * Destructor. |
|
46 */ |
|
47 virtual ~CIrMtmUiData(); |
|
48 |
|
49 /** |
|
50 * By default Symbian OS constructor is private. |
|
51 */ |
|
52 void ConstructL(); |
|
53 |
|
54 public: // Functions from base classes |
|
55 |
|
56 /** |
|
57 * From CBaseMtmUiData function query. |
|
58 * @param aOperationId Id for function. |
|
59 * @param aContext messaging store entry. |
|
60 * @return TInt error code. |
|
61 */ |
|
62 virtual TInt OperationSupportedL( |
|
63 TInt aOperationId, |
|
64 const TMsvEntry& aContext) const; |
|
65 |
|
66 /** |
|
67 * From CBaseMtmUiData MTM capability check. |
|
68 * @param aCapability Uid for message type. |
|
69 * @param aResponse response for capability check. |
|
70 * @return TInt error code. |
|
71 */ |
|
72 virtual TInt QueryCapability( |
|
73 TUid aCapability, |
|
74 TInt& aResponse) const; |
|
75 |
|
76 /** |
|
77 * From CBaseMtmUiData MTM related context icons. |
|
78 * @param aContext Messaging entry refence. |
|
79 * @param aStateFlags Flags for icon. |
|
80 * @return TInt error code. |
|
81 */ |
|
82 virtual const CBitmapArray& ContextIcon( |
|
83 const TMsvEntry& aContext, |
|
84 TInt aStateFlags) const; |
|
85 |
|
86 /** |
|
87 * From CBaseMtmUiData Provide context-specific function information. |
|
88 * @param aParent Messaging entry refence. |
|
89 * @param aNewEntry Messaging entry refence(created entry). |
|
90 * @param aReasonResourceId ResourceID. |
|
91 * @return TBool inform that mtm can provice function or not. |
|
92 */ |
|
93 virtual TBool CanCreateEntryL( |
|
94 const TMsvEntry& aParent, |
|
95 TMsvEntry& aNewEntry, |
|
96 TInt& aReasonResourceId) const; |
|
97 |
|
98 /** |
|
99 * From CBaseMtmUiData Provide context-specific function information. |
|
100 * @param aContext Messaging entry refence. |
|
101 * @param aReasonResourceId Resource id. |
|
102 * @return TBool inform that mtm can provice function or not. |
|
103 */ |
|
104 virtual TBool CanReplyToEntryL( |
|
105 const TMsvEntry& aContext, |
|
106 TInt& aReasonResourceId) const; |
|
107 |
|
108 /** |
|
109 * From CBaseMtmUiData Provide context-specific function information. |
|
110 * @param aContext Messaging entry refence. |
|
111 * @param aReasonResourceId Resource id. |
|
112 * @return TBool inform that mtm can provice function or not. |
|
113 */ |
|
114 virtual TBool CanForwardEntryL( |
|
115 const TMsvEntry& aContext, |
|
116 TInt& aReasonResourceId) const; |
|
117 |
|
118 /** |
|
119 * From CBaseMtmUiData Provide context-specific function information. |
|
120 * @param aContext Messaging entry refence. |
|
121 * @param aReasonResourceId Resource id. |
|
122 * @return TBool inform that mtm can provice function or not. |
|
123 */ |
|
124 virtual TBool CanEditEntryL( |
|
125 const TMsvEntry& aContext, |
|
126 TInt& aReasonResourceId) const; |
|
127 |
|
128 /** |
|
129 * From CBaseMtmUiData Provide context-specific function information. |
|
130 * @param aContext Messaging entry refence. |
|
131 * @param aReasonResourceId Resource id. |
|
132 * @return TBool inform that mtm can provice function or not. |
|
133 */ |
|
134 virtual TBool CanViewEntryL(const TMsvEntry& aContext, |
|
135 TInt& aReasonResourceId) const; |
|
136 |
|
137 /** |
|
138 * From CBaseMtmUiData Provide context-specific function information. |
|
139 * @param aContext Messaging entry refence. |
|
140 * @param aReasonResourceId Resource id. |
|
141 * @return TBool inform that mtm can provice function or not. |
|
142 */ |
|
143 virtual TBool CanOpenEntryL( |
|
144 const TMsvEntry& aContext, |
|
145 TInt& aReasonResourceId) const; |
|
146 |
|
147 /** |
|
148 * From CBaseMtmUiData Provide context-specific function information. |
|
149 * @param aContext Messaging entry refence. |
|
150 * @param aReasonResourceId Resource id. |
|
151 * @return TBool inform that mtm can provice function or not. |
|
152 */ |
|
153 virtual TBool CanCloseEntryL( |
|
154 const TMsvEntry& aContext, |
|
155 TInt& aReasonResourceId) const; |
|
156 |
|
157 /** |
|
158 * From CBaseMtmUiData Provide context-specific function information. |
|
159 * @param aContext Messaging entry refence. |
|
160 * @param aReasonResourceId Resource id. |
|
161 * @return TBool inform that mtm can provice function or not. |
|
162 */ |
|
163 virtual TBool CanDeleteFromEntryL( |
|
164 const TMsvEntry& aContext, |
|
165 TInt& aReasonResourceId) const; |
|
166 |
|
167 /** |
|
168 * From CBaseMtmUiData Provide context-specific function information. |
|
169 * @param aContext Messaging entry refence. |
|
170 * @param aReasonResourceId Resource id. |
|
171 * @return TBool inform that mtm can provice function or not. |
|
172 */ |
|
173 virtual TBool CanDeleteServiceL( |
|
174 const TMsvEntry& aService, |
|
175 TInt& aReasonResourceId) const; |
|
176 |
|
177 /** |
|
178 * From CBaseMtmUiData Provide context-specific function information. |
|
179 * @param aContext Messaging entry refence. |
|
180 * @param aReasonResourceId Resource id. |
|
181 * @return TBool inform that mtm can provice function or not. |
|
182 */ |
|
183 virtual TBool CanCopyMoveToEntryL( |
|
184 const TMsvEntry& aContext, |
|
185 TInt& aReasonResourceId) const; |
|
186 |
|
187 /** |
|
188 * From CBaseMtmUiData Provide context-specific function information. |
|
189 * @param aContext Messaging entry refence. |
|
190 * @param aReasonResourceId Resource id. |
|
191 * @return TBool inform that mtm can provice function or not. |
|
192 */ |
|
193 virtual TBool CanCopyMoveFromEntryL( |
|
194 const TMsvEntry& aContext, |
|
195 TInt& aReasonResourceId) const; |
|
196 |
|
197 /** |
|
198 * From CBaseMtmUiData Provide context-specific function information. |
|
199 * @param aContext Messaging entry refence. |
|
200 * @param aReasonResourceId Resource id. |
|
201 * @return TBool inform that mtm can provice function or not. |
|
202 */ |
|
203 virtual TBool CanCancelL(const TMsvEntry& aContext, |
|
204 TInt& aReasonResourceId) const; |
|
205 |
|
206 /** |
|
207 * From CBaseMtmUiData Provide context-specific function information. |
|
208 * @param aContext Messaging entry refence. |
|
209 * @return HBufC* Statustext for sending. |
|
210 */ |
|
211 virtual HBufC* StatusTextL(const TMsvEntry& aContext) const; |
|
212 |
|
213 protected: // Functions from base classes |
|
214 |
|
215 /** |
|
216 * From CBaseMtmUiData Populate icon array |
|
217 */ |
|
218 virtual void PopulateArraysL(); |
|
219 |
|
220 /** |
|
221 * From CBaseMtmUiData gets resource filename. |
|
222 */ |
|
223 virtual void GetResourceFileName(TFileName& aFileName) const; |
|
224 |
|
225 protected: |
|
226 |
|
227 /** |
|
228 * C++ default constructor. |
|
229 */ |
|
230 CIrMtmUiData(CRegisteredMtmDll& aRegisteredDll); |
|
231 |
|
232 protected: // New functions |
|
233 |
|
234 /** |
|
235 * Checks is the entry valid. |
|
236 * @param aContext reference to the entry. |
|
237 * @return TBool |
|
238 */ |
|
239 TBool CheckEntry(const TMsvEntry& aContext) const; |
|
240 |
|
241 }; |
|
242 |
|
243 #endif // CIRMTMUIDATA_H |
|
244 // End of File |
|