equal
deleted
inserted
replaced
16 */ |
16 */ |
17 |
17 |
18 #ifndef UNIFIED_EDITOR_ATTACHMENT_H |
18 #ifndef UNIFIED_EDITOR_ATTACHMENT_H |
19 #define UNIFIED_EDITOR_ATTACHMENT_H |
19 #define UNIFIED_EDITOR_ATTACHMENT_H |
20 |
20 |
21 #include <hbwidget.h> |
21 #include <HbWidget> |
22 #include <QList> |
22 #include <QList> |
23 |
23 |
24 class HbTextItem; |
24 class HbTextItem; |
25 class HbIconItem; |
25 class HbIconItem; |
26 class HbPushButton; |
26 class HbGestureSceneFilter; |
27 |
27 |
28 class MsgUnifiedEditorAttachment : public HbWidget |
28 class MsgUnifiedEditorAttachment : public HbWidget |
29 { |
29 { |
30 Q_OBJECT |
30 Q_OBJECT |
31 |
31 |
65 /** |
65 /** |
66 * Check if the attachment content is MM content |
66 * Check if the attachment content is MM content |
67 * @return true/false |
67 * @return true/false |
68 */ |
68 */ |
69 bool isMultimediaContent(); |
69 bool isMultimediaContent(); |
|
70 |
|
71 HbFeedback::InstantEffect overrideFeedback(Hb::InstantInteraction interaction) const; |
|
72 |
|
73 protected: |
|
74 /** |
|
75 * reimplemented from base class. |
|
76 */ |
|
77 virtual void mousePressEvent(QGraphicsSceneMouseEvent *event); |
|
78 virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event); |
|
79 |
|
80 |
|
81 private: |
|
82 /** |
|
83 * Helper method to initialize gesture. |
|
84 */ |
|
85 void initGesture(); |
|
86 |
70 |
87 |
71 signals: |
88 signals: |
72 /** |
89 /** |
73 * emit when short-tap happens on the attachment |
90 * emit when short-tap happens on the attachment |
74 */ |
91 */ |
135 * layout item to hold attachment's details e.g. size |
152 * layout item to hold attachment's details e.g. size |
136 */ |
153 */ |
137 HbTextItem* mAttachmentDetails; |
154 HbTextItem* mAttachmentDetails; |
138 |
155 |
139 /** |
156 /** |
140 * layout item for background |
157 * gesture filter for long press. |
141 */ |
158 */ |
142 HbPushButton *mFrameItem; |
159 HbGestureSceneFilter* mGestureFilter; |
|
160 |
|
161 /** |
|
162 * Max limit on sms size. Store at class level for optimization |
|
163 */ |
|
164 int mMaxSmsSize; |
143 |
165 |
144 }; |
166 }; |
145 |
167 |
146 typedef QList<MsgUnifiedEditorAttachment*> MsgUnifiedEditorAttachmentList; |
168 typedef QList<MsgUnifiedEditorAttachment*> MsgUnifiedEditorAttachmentList; |
147 |
169 |