--- a/messagingapp/msgui/unifiedviewer/inc/unifiedviewer.h Tue Jul 06 14:12:40 2010 +0300
+++ b/messagingapp/msgui/unifiedviewer/inc/unifiedviewer.h Wed Aug 18 09:45:25 2010 +0300
@@ -24,6 +24,7 @@
#define UNI_VIEWER_DLL Q_DECL_IMPORT
#endif
+#include <sqldb.h>
#include "msgbaseview.h"
#include "convergedmessage.h"
@@ -46,8 +47,7 @@
/**
* Constructor
*/
- UnifiedViewer(const qint32 messageId,
- int canForwardMessage = 0,
+ UnifiedViewer(const qint32 messageId,
QGraphicsItem *parent = 0);
/**
@@ -69,13 +69,23 @@
void resizeEvent(QGraphicsSceneResizeEvent * event);
private:
+ /**
+ * Check if this message can be forwarded
+ * @return true, if possible to forward
+ */
+ bool isForwardOk();
/**
* Creates tool bar actions
* @see HbView
*/
void createToolBar();
-
+
+ /**
+ * Launch Editor for forward, reply, replyall actions
+ * @param operation, Editor operation e.g. forward, reply etc
+ */
+ void launchEditor(MsgBaseView::UniEditorOperation operation);
public slots:
@@ -91,7 +101,7 @@
* Handle delete
*/
void handleDeleteAction();
-
+
private slots:
/**
* This slot is called when sendMessage signal is emitted for a highlighted
@@ -101,10 +111,20 @@
/**
* This slot is called when delete message dialog is launched.
- * @param action selected action (yes or no).
+ * @param val selected action value.
+ */
+ void onDialogDeleteMsg(int val);
+
+ /**
+ * Handle reply
*/
- void onDialogDeleteMsg(HbAction* action);
+ void handleReplyAction();
+ /**
+ * Handle reply-all
+ */
+ void handleReplyAllAction();
+
private:
/**
@@ -139,11 +159,6 @@
* Message count
*/
int mMsgCount;
-
- /**
- * Forward status of message
- */
- bool mForwardMessage;
};
#endif