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: Private implementaion of sms data model plugin. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef UNIVCALDATAPLUGINPRIVATE_H_ |
|
19 #define UNIVCALDATAPLUGINPRIVATE_H_ |
|
20 |
|
21 #include "unidatamodelplugininterface.h" |
|
22 |
|
23 //Forward Declarations |
|
24 class CClientMtmRegistry; |
|
25 class ConvergedMessage; |
|
26 class UniVCalDataPlugin; |
|
27 class CBIOClientMtm; |
|
28 class CMsvSession; |
|
29 class SessionEventHandler; |
|
30 |
|
31 /** |
|
32 * Symbian specific implementation of the uni SMS plugin |
|
33 */ |
|
34 class UniVCalDataPluginPrivate |
|
35 { |
|
36 |
|
37 public: |
|
38 /** |
|
39 * Constructor |
|
40 */ |
|
41 UniVCalDataPluginPrivate(UniVCalDataPlugin* plugin); |
|
42 |
|
43 /** |
|
44 * Destructor |
|
45 */ |
|
46 ~UniVCalDataPluginPrivate(); |
|
47 |
|
48 /** |
|
49 * Resets the datamodel |
|
50 */ |
|
51 void reset(); |
|
52 |
|
53 /** |
|
54 * sets the message id for which details needs to be fetched |
|
55 * @param message id |
|
56 */ |
|
57 int setMessageId(int mId); |
|
58 |
|
59 /** |
|
60 * Get the body of the message |
|
61 * @param aBodyText, for message body |
|
62 */ |
|
63 void body(QString& aBodyText); |
|
64 |
|
65 /** |
|
66 * Size of the message |
|
67 * @param message size |
|
68 */ |
|
69 int messageSize(); |
|
70 |
|
71 /** |
|
72 * List of the message TO recipients |
|
73 * @param list of the recipients |
|
74 */ |
|
75 void toRecipientList(ConvergedMessageAddressList& mAddressList); |
|
76 |
|
77 /** |
|
78 * Address from which the message was received |
|
79 * @param messageAddress |
|
80 */ |
|
81 void fromAddress(QString& messageAddress); |
|
82 |
|
83 /** |
|
84 * Time stamp of the message |
|
85 * @return time stamp of the created/received message |
|
86 */ |
|
87 int timeStamp(); |
|
88 |
|
89 /** |
|
90 * The File handle of the VCAL attachment |
|
91 * @return file handle |
|
92 */ |
|
93 RFile attachmentL(); |
|
94 |
|
95 /** |
|
96 * Priority of the message |
|
97 * @return message priority |
|
98 */ |
|
99 MsgPriority messagePriority(); |
|
100 |
|
101 /** |
|
102 * Number of attachments associated with the message.. |
|
103 * @return attachment count |
|
104 */ |
|
105 int attachmentCount(); |
|
106 |
|
107 /** |
|
108 * Session with the Messaging server |
|
109 * @return CMsvSession* |
|
110 */ |
|
111 CMsvSession* session(); |
|
112 |
|
113 private: |
|
114 /** |
|
115 * Extracts the name and address from the CMsvRecipientList |
|
116 */ |
|
117 void extractNameAndAddress(const TDesC& aMsvAddress, TPtrC& aName, |
|
118 TPtrC& aAddress); |
|
119 |
|
120 /** |
|
121 * intitlaises the CMsvSession and mtm |
|
122 */ |
|
123 void initL(); |
|
124 |
|
125 /** |
|
126 * setMessageIdL |
|
127 * @param int msgId |
|
128 * @return void |
|
129 */ |
|
130 void setMessageIdL(int msgId); |
|
131 private: |
|
132 UniVCalDataPlugin* q_ptr; |
|
133 CMsvSession* iMSession; |
|
134 CClientMtmRegistry* iMtmReg; |
|
135 CBIOClientMtm* iBioClientMtm; |
|
136 TMsvId iMessageId; |
|
137 TBool attachmentProcessed; |
|
138 CMsvEntry* iMsvEntry; |
|
139 SessionEventHandler *iSessionHandler; |
|
140 TBool done; |
|
141 }; |
|
142 #endif |
|