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: |
|
15 * |
|
16 */ |
|
17 |
|
18 //SYSTEM INCLUDES |
|
19 #include <mtclreg.h> |
|
20 #include <mtclbase.h> |
|
21 |
|
22 //USER INCLUDES |
|
23 #include "unismsdataplugin.h" |
|
24 #include "unismsdataplugin_p.h" |
|
25 |
|
26 //--------------------------------------------------------------- |
|
27 // UniSMSDataPlugin::UniSMSDataPlugin() |
|
28 // @see header |
|
29 //--------------------------------------------------------------- |
|
30 UniSMSDataPlugin::UniSMSDataPlugin(QObject* parent) : |
|
31 QObject(parent) |
|
32 { |
|
33 d_ptr = new UniSMSDataPluginPrivate(this); |
|
34 } |
|
35 |
|
36 //--------------------------------------------------------------- |
|
37 // UniSMSDataPlugin::~UniSMSDataPlugin() |
|
38 // @see header |
|
39 //--------------------------------------------------------------- |
|
40 UniSMSDataPlugin::~UniSMSDataPlugin() |
|
41 { |
|
42 delete d_ptr; |
|
43 } |
|
44 |
|
45 //--------------------------------------------------------------- |
|
46 // UniSMSDataPlugin::createInstance() |
|
47 // @see header |
|
48 //--------------------------------------------------------------- |
|
49 QObject* UniSMSDataPlugin::createInstance() |
|
50 { |
|
51 return new UniSMSDataPlugin(); |
|
52 } |
|
53 |
|
54 //--------------------------------------------------------------- |
|
55 // UniSMSDataPlugin::reset() |
|
56 // @see header |
|
57 //--------------------------------------------------------------- |
|
58 void UniSMSDataPlugin::reset() |
|
59 { |
|
60 d_ptr->reset(); |
|
61 } |
|
62 |
|
63 //--------------------------------------------------------------- |
|
64 // UniSMSDataPlugin::setMessageId() |
|
65 // @see header |
|
66 //--------------------------------------------------------------- |
|
67 int UniSMSDataPlugin::setMessageId(int mId) |
|
68 { |
|
69 return d_ptr->setMessageId(mId); |
|
70 } |
|
71 |
|
72 //--------------------------------------------------------------- |
|
73 // UniSMSDataPlugin::body() |
|
74 // @see header |
|
75 //--------------------------------------------------------------- |
|
76 void UniSMSDataPlugin::body(QString& aBodyText) |
|
77 { |
|
78 d_ptr->body(aBodyText); |
|
79 } |
|
80 |
|
81 //--------------------------------------------------------------- |
|
82 // UniSMSDataPlugin::messageSize() |
|
83 // @see header |
|
84 //--------------------------------------------------------------- |
|
85 qint32 UniSMSDataPlugin::messageSize() |
|
86 { |
|
87 return d_ptr->messageSize(); |
|
88 } |
|
89 |
|
90 //--------------------------------------------------------------- |
|
91 // UniSMSDataPlugin::toRecipientList() |
|
92 // @see header |
|
93 //--------------------------------------------------------------- |
|
94 void UniSMSDataPlugin::toRecipientList( |
|
95 ConvergedMessageAddressList& mAddressList) |
|
96 { |
|
97 d_ptr->toRecipientList(mAddressList); |
|
98 } |
|
99 |
|
100 //--------------------------------------------------------------- |
|
101 // UniSMSDataPlugin::ccRecipientList() |
|
102 // @see header |
|
103 //--------------------------------------------------------------- |
|
104 void UniSMSDataPlugin::ccRecipientList( |
|
105 ConvergedMessageAddressList& /*mAddressList*/) |
|
106 { |
|
107 |
|
108 } |
|
109 |
|
110 //--------------------------------------------------------------- |
|
111 // UniSMSDataPlugin::bccRecipientList() |
|
112 // @see header |
|
113 //--------------------------------------------------------------- |
|
114 |
|
115 void UniSMSDataPlugin::bccRecipientList( |
|
116 ConvergedMessageAddressList& /*mAddressList*/) |
|
117 { |
|
118 |
|
119 } |
|
120 |
|
121 //--------------------------------------------------------------- |
|
122 // UniSMSDataPlugin::fromAddress() |
|
123 // @see header |
|
124 //--------------------------------------------------------------- |
|
125 void UniSMSDataPlugin::fromAddress(QString& messageAddress) |
|
126 { |
|
127 d_ptr->fromAddress(messageAddress); |
|
128 } |
|
129 |
|
130 //--------------------------------------------------------------- |
|
131 // UniSMSDataPlugin::attachmentList() |
|
132 // @see header |
|
133 //--------------------------------------------------------------- |
|
134 UniMessageInfoList UniSMSDataPlugin::attachmentList() |
|
135 { |
|
136 return QList<UniMessageInfo*> (); |
|
137 } |
|
138 |
|
139 //--------------------------------------------------------------- |
|
140 // UniSMSDataPlugin::messageType() |
|
141 // @see header |
|
142 //--------------------------------------------------------------- |
|
143 QString UniSMSDataPlugin::messageType() |
|
144 { |
|
145 QString str("sms"); |
|
146 return str; |
|
147 } |
|
148 |
|
149 //--------------------------------------------------------------- |
|
150 // UniSMSDataPlugin::messagePriority() |
|
151 // @see header |
|
152 //--------------------------------------------------------------- |
|
153 MsgPriority UniSMSDataPlugin::messagePriority() |
|
154 { |
|
155 return Normal; |
|
156 } |
|
157 |
|
158 //--------------------------------------------------------------- |
|
159 // UniSMSDataPlugin::attachmentCount() |
|
160 // @see header |
|
161 //--------------------------------------------------------------- |
|
162 int UniSMSDataPlugin::attachmentCount() |
|
163 { |
|
164 return KErrNone; |
|
165 } |
|
166 |
|
167 //--------------------------------------------------------------- |
|
168 // UniSMSDataPlugin::hasAttachment() |
|
169 // @see header |
|
170 //--------------------------------------------------------------- |
|
171 bool UniSMSDataPlugin::hasAttachment() |
|
172 { |
|
173 return false; |
|
174 } |
|
175 |
|
176 //--------------------------------------------------------------- |
|
177 // UniSMSDataPlugin::objectCount() |
|
178 // @see header |
|
179 //--------------------------------------------------------------- |
|
180 int UniSMSDataPlugin::objectCount() |
|
181 { |
|
182 return 0; |
|
183 } |
|
184 |
|
185 //--------------------------------------------------------------- |
|
186 // UniSMSDataPlugin::objectList() |
|
187 // @see header |
|
188 //--------------------------------------------------------------- |
|
189 UniMessageInfoList UniSMSDataPlugin::objectList() |
|
190 { |
|
191 return QList<UniMessageInfo*> (); |
|
192 } |
|
193 |
|
194 //--------------------------------------------------------------- |
|
195 // UniSMSDataPlugin::slideCount() |
|
196 // @see header |
|
197 //--------------------------------------------------------------- |
|
198 int UniSMSDataPlugin::slideCount() |
|
199 { |
|
200 return 0; |
|
201 } |
|
202 |
|
203 //--------------------------------------------------------------- |
|
204 // UniSMSDataPlugin::slideContent() |
|
205 // @see header |
|
206 //--------------------------------------------------------------- |
|
207 UniMessageInfoList UniSMSDataPlugin::slideContent(int /*slidenum */) |
|
208 { |
|
209 return QList<UniMessageInfo*> (); |
|
210 } |
|
211 |
|
212 //--------------------------------------------------------------- |
|
213 // UniSMSDataPlugin::timeStamp() |
|
214 // @see header |
|
215 //--------------------------------------------------------------- |
|
216 QDateTime UniSMSDataPlugin::timeStamp() |
|
217 { |
|
218 QDateTime retTimeStamp; |
|
219 int tStamp = d_ptr->timeStamp(); |
|
220 retTimeStamp.setTime_t(tStamp); |
|
221 return retTimeStamp; |
|
222 } |
|
223 |
|
224 //--------------------------------------------------------------- |
|
225 // UniSMSDataPlugin::addObject() |
|
226 // @see header |
|
227 //--------------------------------------------------------------- |
|
228 void UniSMSDataPlugin::addObject( int /*aslideNum*/, |
|
229 UniMessageInfo* /*aInfo*/ ) |
|
230 { |
|
231 |
|
232 } |
|
233 |
|
234 //--------------------------------------------------------------- |
|
235 // UniSMSDataPlugin::addTextObject() |
|
236 // @see header |
|
237 //--------------------------------------------------------------- |
|
238 void UniSMSDataPlugin::addTextObject(int /*aSlideNum*/, |
|
239 QString /*aText*/ ) |
|
240 { |
|
241 |
|
242 } |
|
243 |
|
244 //--------------------------------------------------------------- |
|
245 // UniSMSDataPlugin::addSlide() |
|
246 // @see header |
|
247 //--------------------------------------------------------------- |
|
248 void UniSMSDataPlugin::addSlide( int /*aSlideNum*/ ) |
|
249 { |
|
250 |
|
251 } |
|
252 |
|
253 //--------------------------------------------------------------- |
|
254 // UniSMSDataPlugin::composeSmil() |
|
255 // @see header |
|
256 //--------------------------------------------------------------- |
|
257 void UniSMSDataPlugin::composeSmil(CMsvStore& /*aEditStore*/) |
|
258 { |
|
259 |
|
260 } |
|
261 |
|
262 //--------------------------------------------------------------- |
|
263 // UniSMSDataPlugin::saveObjects() |
|
264 // @see header |
|
265 //--------------------------------------------------------------- |
|
266 void UniSMSDataPlugin::saveObjects() |
|
267 { |
|
268 |
|
269 } |
|
270 |
|
271 //--------------------------------------------------------------- |
|
272 // UniSMSDataPlugin::getSmilAttachmentByIndex() |
|
273 // @see header |
|
274 //--------------------------------------------------------------- |
|
275 TMsvAttachmentId UniSMSDataPlugin::getSmilAttachmentByIndex() |
|
276 { |
|
277 return NULL; |
|
278 } |
|
279 |
|
280 //--------------------------------------------------------------- |
|
281 // UniSMSDataPlugin::restore() |
|
282 // @see header |
|
283 //--------------------------------------------------------------- |
|
284 void UniSMSDataPlugin::restore(CBaseMtm& /*mtm*/) |
|
285 { |
|
286 |
|
287 } |
|
288 |
|
289 //--------------------------------------------------------------- |
|
290 // UniSMSDataPlugin::addAttachment() |
|
291 // @see header |
|
292 //--------------------------------------------------------------- |
|
293 void UniSMSDataPlugin::addAttachment( UniMessageInfo* /*aInfo*/ ) |
|
294 { |
|
295 |
|
296 } |
|
297 |
|
298 //--------------------------------------------------------------- |
|
299 // UniSMSDataPlugin::removeSlide() |
|
300 // @see header |
|
301 //--------------------------------------------------------------- |
|
302 void UniSMSDataPlugin::removeSlide(int /*aSlideNumber*/) |
|
303 { |
|
304 |
|
305 } |
|
306 |
|
307 |
|
308 //--------------------------------------------------------------- |
|
309 // UniSMSDataPlugin::subject() |
|
310 // @see header |
|
311 //--------------------------------------------------------------- |
|
312 QString UniSMSDataPlugin::subject() |
|
313 { |
|
314 return QString(); |
|
315 } |
|
316 |
|
317 //--------------------------------------------------------------- |
|
318 // UniSMSDataPlugin::session() |
|
319 // @see header |
|
320 //--------------------------------------------------------------- |
|
321 CMsvSession* UniSMSDataPlugin::session() |
|
322 { |
|
323 return d_ptr->session(); |
|
324 } |
|
325 |
|
326 |
|
327 Q_EXPORT_PLUGIN2(unismsdataplugin, UniSMSDataPlugin) |
|
328 |
|