1 /* |
1 /* |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
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:Conversation Base view. |
|
15 * |
8 * |
16 */ |
9 * Initial Contributors: |
17 |
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description:Conversation Base view. |
|
15 * |
|
16 */ |
18 |
17 |
19 #ifndef MSG_CONVERSATION_VIEW_INTERFACE_H |
18 #ifndef MSG_CONVERSATION_VIEW_INTERFACE_H |
20 #define MSG_CONVERSATION_VIEW_INTERFACE_H |
19 #define MSG_CONVERSATION_VIEW_INTERFACE_H |
21 |
20 |
22 #ifdef CONVERSATIONVIEW_DLL |
21 #ifdef CONVERSATIONVIEW_DLL |
70 /** |
69 /** |
71 * saveContentToDrafts |
70 * saveContentToDrafts |
72 * Saves the editors content in cv to drafts |
71 * Saves the editors content in cv to drafts |
73 */ |
72 */ |
74 void saveContentToDrafts(); |
73 void saveContentToDrafts(); |
75 |
74 |
76 /** |
75 /** |
77 * conversationId |
76 * conversationId |
78 * Get the conversationId |
77 * Get the conversationId |
79 */ |
78 */ |
80 qint64 conversationId(); |
79 qint64 conversationId(); |
81 |
80 |
82 public slots: |
81 public slots: |
83 /** |
82 /** |
84 * Close the conversation view |
83 * Close the conversation view |
85 * This slot is triggered when user presses back(seconday sofykey) |
84 * This slot is triggered when user presses back(seconday sofykey) |
86 */ |
85 */ |
87 void closeConversationView(); |
86 void closeConversationView(); |
88 |
87 |
89 /** |
88 /** |
90 * Mark messages as read |
89 * Mark messages as read |
91 * Slot is triiggered when replying started |
90 * Slot is triiggered when replying started |
92 */ |
91 */ |
93 void markMessagesAsRead(); |
92 void markMessagesAsRead(); |
94 |
93 |
95 /** |
94 /** |
96 * Publish the conversation id based on the flag. |
95 * Publish the conversation id based on the flag. |
97 * @param setId if true previous conversation id |
96 * @param setId if true previous conversation id |
98 * will be published else -1 will be published. |
97 * will be published else -1 will be published. |
99 */ |
98 */ |
100 void setPSCVId(bool setId); |
99 void setPSCVId(bool setId); |
101 |
100 |
102 private slots: |
101 private slots: |
103 /** |
102 /** |
104 * Slot for delayed construction |
103 * Slot for delayed construction |
105 */ |
104 */ |
106 void doDelayedConstruction(); |
105 void doDelayedConstruction(); |
107 |
106 |
108 /** |
107 /** |
109 * Hides chrome when itu-t is up |
108 * Hides chrome when itu-t is up |
110 */ |
109 */ |
111 void hideChrome(bool hide); |
110 void hideChrome(bool hide); |
112 |
111 |
113 /** |
112 /** |
114 * Slot for handling valid returns from the framework. |
113 * Slot for handling valid returns from the framework. |
115 * |
114 * |
116 * @param result const QVariant& |
115 * @param result const QVariant& |
117 */ |
116 */ |
118 void handleOk(const QVariant& result); |
117 void handleOk(const QVariant& result); |
119 |
118 |
120 /** |
119 /** |
121 * Slot for handling errors. Error ids are provided as |
120 * Slot for handling errors. Error ids are provided as |
122 * 32-bit integers. |
121 * 32-bit integers. |
123 * @param errorCode qint32 |
122 * @param errorCode qint32 |
124 */ |
123 */ |
125 void handleError(int errorCode, const QString& errorMessage); |
124 void handleError(int errorCode, const QString& errorMessage); |
126 |
125 |
127 /** |
126 /** |
128 * Slot for handling the timer expiry event fired from view reay indication |
127 * Slot for handling the timer expiry event fired from view reay indication |
129 */ |
128 */ |
130 void handleViewReady(); |
129 void handleViewReady(); |
131 |
130 |
132 signals: |
131 signals: |
133 /** |
132 /** |
134 * Signal emitted when the conversation view is closed. |
133 * Signal emitted when the conversation view is closed. |
135 */ |
134 */ |
136 void conversationViewClosed(); |
135 void conversationViewClosed(); |
137 |
136 |
138 private : |
137 private: |
139 /** |
138 /** |
140 * Create and initialise the view |
139 * Create and initialise the view |
141 */ |
140 */ |
142 void initView(); |
141 void initView(); |
143 |
142 |
144 private: |
143 private: |
145 |
144 |
146 /** |
145 /** |
147 * Conversation ID |
146 * Conversation ID |
148 */ |
147 */ |
149 qint64 mConversationId; |
148 qint64 mConversationId; |
150 |
149 |
151 /** |
150 /** |
152 * MsgConversationView, main view class |
151 * MsgConversationView, main view class |
153 * Owned |
152 * Owned |
154 */ |
153 */ |
155 MsgConversationView *mConversationView; |
154 MsgConversationView *mConversationView; |
156 |
155 |
157 /** |
156 /** |
158 * Contact card widget. |
157 * Contact card widget. |
159 */ |
158 */ |
160 MsgContactCardWidget* mContactCard; |
159 MsgContactCardWidget* mContactCard; |
161 |
160 |
162 /** |
161 /** |
163 * Main layout. |
162 * Main layout. |
164 */ |
163 */ |
165 QGraphicsLinearLayout* mMainLayout; |
164 QGraphicsLinearLayout* mMainLayout; |
166 |
165 |
167 /** |
166 /** |
168 * Object of XQSettingsKey. |
167 * Object of XQSettingsKey. |
169 */ |
168 */ |
170 XQSettingsKey mCVIdkey; |
169 XQSettingsKey mCVIdkey; |
171 |
170 |
172 /** |
171 /** |
173 * mSettingsManager |
172 * mSettingsManager |
174 * Instance of the XQSettingsManager |
173 * Instance of the XQSettingsManager |
175 * Own. |
174 * Own. |
176 */ |
175 */ |
177 XQSettingsManager* mSettingsManager; |
176 XQSettingsManager* mSettingsManager; |
178 |
177 }; |
179 }; |
|
180 |
178 |
181 #endif // MSG_CONVERSATION_VIEW_INTERFACE_H |
179 #endif // MSG_CONVERSATION_VIEW_INTERFACE_H |
182 |
|
183 // EOF |
180 // EOF |