equal
deleted
inserted
replaced
31 class MsgContactCardWidget; |
31 class MsgContactCardWidget; |
32 class MsgConversationViewItem; |
32 class MsgConversationViewItem; |
33 class HbStaticVkbHost; |
33 class HbStaticVkbHost; |
34 class QGraphicsLinearLayout; |
34 class QGraphicsLinearLayout; |
35 class HbAction; |
35 class HbAction; |
|
36 class MsgAudioFetcherDialog; |
|
37 |
36 //Defines |
38 //Defines |
37 #define INVALID_MSG_ID -1 |
39 #define INVALID_MSG_ID -1 |
38 |
40 |
39 /** |
41 /** |
40 * This class provides the message chat view for the messaging application. |
42 * This class provides the message chat view for the messaging application. |
68 * Save the content inside editor to drafts |
70 * Save the content inside editor to drafts |
69 * @return valid message id if save is success |
71 * @return valid message id if save is success |
70 * else invalid message id ( i.e. -1 ) |
72 * else invalid message id ( i.e. -1 ) |
71 */ |
73 */ |
72 int saveContentToDrafts(); |
74 int saveContentToDrafts(); |
|
75 |
|
76 /** |
|
77 * Event handler |
|
78 * @param key Key code |
|
79 * @return true if key event handled else false. |
|
80 * @see MsgBaseView |
|
81 */ |
|
82 bool handleKeyEvent(int key); |
73 |
83 |
74 private slots: |
84 private slots: |
75 |
85 |
76 /** |
86 /** |
77 * Slot is called when menu is about to be shown. |
87 * Slot is called when menu is about to be shown. |
335 * @param messageId, message id. |
345 * @param messageId, message id. |
336 * @return true is shared among conversations. |
346 * @return true is shared among conversations. |
337 */ |
347 */ |
338 bool isSharedMessage(qint32 messageId); |
348 bool isSharedMessage(qint32 messageId); |
339 |
349 |
|
350 /** |
|
351 * This slot is called after sound clip is |
|
352 * selected from audio fetcher dialog |
|
353 */ |
|
354 void onAudioSelected(QString& filePath); |
|
355 |
340 signals: |
356 signals: |
341 /** |
357 /** |
342 * Signal emitted to inform close the conversation view. |
358 * Signal emitted to inform close the conversation view. |
343 * When Conversation view has opened in send mode, after sending |
359 * When Conversation view has opened in send mode, after sending |
344 * the message, this signal is emitted. |
360 * the message, this signal is emitted. |
407 /** |
423 /** |
408 * helper method to show long/short tap context menu. |
424 * helper method to show long/short tap context menu. |
409 */ |
425 */ |
410 void showContextMenu(HbAbstractViewItem* viewItem,const QPointF& point, int placement); |
426 void showContextMenu(HbAbstractViewItem* viewItem,const QPointF& point, int placement); |
411 |
427 |
|
428 /** |
|
429 * Launches Dialer Service |
|
430 */ |
|
431 void call(const QString& address); |
|
432 |
412 private: |
433 private: |
413 |
434 |
414 /** |
435 /** |
415 * List to hold the conversations |
436 * List to hold the conversations |
416 * Owned |
437 * Owned |
447 * Instance of VKB |
468 * Instance of VKB |
448 */ |
469 */ |
449 HbStaticVkbHost* mVkbHost; |
470 HbStaticVkbHost* mVkbHost; |
450 |
471 |
451 /** |
472 /** |
|
473 * Instance of Audio Fetcher Dialog |
|
474 * Need to show when attachment audio selected |
|
475 */ |
|
476 MsgAudioFetcherDialog* mDialog; |
|
477 |
|
478 /** |
452 * variable holding the visible model index |
479 * variable holding the visible model index |
453 */ |
480 */ |
454 QModelIndex mVisibleIndex; |
481 QModelIndex mVisibleIndex; |
455 |
482 |
456 /** |
483 /** |
461 |
488 |
462 /** |
489 /** |
463 * Flag is set when |
490 * Flag is set when |
464 */ |
491 */ |
465 bool mViewReady; |
492 bool mViewReady; |
|
493 |
|
494 #ifdef MSGUI_UNIT_TEST |
|
495 /** |
|
496 * Unit Testing |
|
497 */ |
|
498 friend class TestMsgConversationView; |
|
499 #endif |
466 }; |
500 }; |
467 |
501 |
468 #endif // MSG_CONVERSATION_VIEW_H |
502 #endif // MSG_CONVERSATION_VIEW_H |
469 // EOF |
503 // EOF |