equal
deleted
inserted
replaced
26 |
26 |
27 #include "msgbaseview.h" |
27 #include "msgbaseview.h" |
28 |
28 |
29 #include "convergedmessage.h" |
29 #include "convergedmessage.h" |
30 |
30 |
31 class QGraphicsLinearLayout; |
|
32 class UniViewerFeeder; |
31 class UniViewerFeeder; |
33 class ConvergedMessage; |
32 class ConvergedMessage; |
34 class HbScrollArea; |
33 class HbScrollArea; |
35 class UniScrollArea; |
34 class UniScrollArea; |
36 class UniContentsWidget; |
35 class UniContentsWidget; |
37 class MessageDeleteAction; |
36 class MessageDeleteAction; |
38 |
37 class HbAction; |
39 /** |
38 /** |
40 * Main view of unified viewer. |
39 * Main view of unified viewer. |
41 */ |
40 */ |
42 class UNI_VIEWER_DLL UnifiedViewer : public MsgBaseView |
41 class UNI_VIEWER_DLL UnifiedViewer : public MsgBaseView |
43 { |
42 { |
45 |
44 |
46 public: |
45 public: |
47 /** |
46 /** |
48 * Constructor |
47 * Constructor |
49 */ |
48 */ |
50 UnifiedViewer(const qint32 messageId, QGraphicsItem *parent = 0); |
49 UnifiedViewer(const qint32 messageId, |
|
50 int canForwardMessage = 0, |
|
51 QGraphicsItem *parent = 0); |
51 |
52 |
52 /** |
53 /** |
53 * Destructor |
54 * Destructor |
54 */ |
55 */ |
55 ~UnifiedViewer(); |
56 ~UnifiedViewer(); |
72 /** |
73 /** |
73 * Creates tool bar actions |
74 * Creates tool bar actions |
74 * @see HbView |
75 * @see HbView |
75 */ |
76 */ |
76 void createToolBar(); |
77 void createToolBar(); |
77 |
78 |
78 /** |
|
79 * Validates if message can be forwarded |
|
80 * @return true if message can be forwarded |
|
81 * false if message cant be forwarded |
|
82 */ |
|
83 bool validateMsgForForward(); |
|
84 |
79 |
85 public slots: |
80 public slots: |
86 |
81 |
87 /** |
82 /** |
88 * Clears the content on the widget |
83 * Clears the content on the widget |
100 private slots: |
95 private slots: |
101 /** |
96 /** |
102 * This slot is called when sendMessage signal is emitted for a highlighted |
97 * This slot is called when sendMessage signal is emitted for a highlighted |
103 * phone number, from body widget. |
98 * phone number, from body widget. |
104 */ |
99 */ |
105 void sendMessage(const QString& phoneNumber); |
100 void sendMessage(const QString& phoneNumber, const QString& alias = QString()); |
106 |
|
107 private: |
|
108 |
101 |
109 /** |
102 /** |
110 * Main grid layout |
103 * This slot is called when delete message dialog is launched. |
111 * Owned |
104 * @param action selected action (yes or no). |
112 */ |
105 */ |
113 QGraphicsLinearLayout* mMainLayout; |
106 void onDialogDeleteMsg(HbAction* action); |
|
107 |
|
108 private: |
114 |
109 |
115 /** |
110 /** |
116 * Feeder object |
111 * Feeder object |
117 * Owned |
112 * Owned |
118 */ |
113 */ |
142 |
137 |
143 /** |
138 /** |
144 * Message count |
139 * Message count |
145 */ |
140 */ |
146 int mMsgCount; |
141 int mMsgCount; |
|
142 |
|
143 /** |
|
144 * Forward status of message |
|
145 */ |
|
146 bool mForwardMessage; |
147 }; |
147 }; |
148 |
148 |
149 #endif |
149 #endif |
150 // EOF |
150 // EOF |