equal
deleted
inserted
replaced
|
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: Widget for BodyText. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef MSG_BODY_TEXT_EDIT_H |
|
19 #define MSG_BODY_TEXT_EDIT_H |
|
20 |
|
21 // SYSTEM INCLUDES |
|
22 #include <HbTextEdit> |
|
23 |
|
24 // FORWORD DECLARATIONS |
|
25 class MsgConversationViewItem; |
|
26 |
|
27 |
|
28 /** |
|
29 * @class MsgBodyTextEdit |
|
30 * @brief This class is a widget for Text Item in the conversation View. |
|
31 */ |
|
32 class MsgBodyTextEdit: public HbTextEdit |
|
33 { |
|
34 Q_OBJECT |
|
35 |
|
36 public: |
|
37 |
|
38 /** |
|
39 * Constructor |
|
40 */ |
|
41 MsgBodyTextEdit(MsgConversationViewItem* item, QGraphicsItem *parent =0); |
|
42 |
|
43 /** |
|
44 * Destructor |
|
45 */ |
|
46 virtual ~MsgBodyTextEdit(); |
|
47 |
|
48 protected: |
|
49 |
|
50 /* |
|
51 * Handle Gestures |
|
52 * @param event gesture event |
|
53 */ |
|
54 void gestureEvent(QGestureEvent* event); |
|
55 |
|
56 |
|
57 private: |
|
58 |
|
59 /* |
|
60 * Conversation View Item |
|
61 * Not Own |
|
62 */ |
|
63 MsgConversationViewItem* mItem; |
|
64 |
|
65 #ifdef MSGUI_UNIT_TEST |
|
66 /** |
|
67 * Unit Testing |
|
68 */ |
|
69 friend class TestMsgBodyTextEdit; |
|
70 #endif |
|
71 |
|
72 }; |
|
73 |
|
74 #endif // MSG_BODY_TEXT_EDIT_H |
|
75 // EOF |