messagingapp/msgui/unifiedviewer/inc/unifiedviewer.h
changeset 52 12db4185673b
parent 34 84197e66a4bd
child 70 a15d9966050f
equal deleted inserted replaced
44:36f374c67aa8 52:12db4185673b
    22 #define UNI_VIEWER_DLL Q_DECL_EXPORT
    22 #define UNI_VIEWER_DLL Q_DECL_EXPORT
    23 #else
    23 #else
    24 #define UNI_VIEWER_DLL Q_DECL_IMPORT
    24 #define UNI_VIEWER_DLL Q_DECL_IMPORT
    25 #endif
    25 #endif
    26 
    26 
       
    27 #include <sqldb.h>
    27 #include "msgbaseview.h"
    28 #include "msgbaseview.h"
    28 
    29 
    29 #include "convergedmessage.h"
    30 #include "convergedmessage.h"
    30 
    31 
    31 class UniViewerFeeder;
    32 class UniViewerFeeder;
    44 
    45 
    45 public:
    46 public:
    46     /**
    47     /**
    47      * Constructor
    48      * Constructor
    48      */
    49      */
    49     UnifiedViewer(const qint32 messageId, 
    50     UnifiedViewer(const qint32 messageId,
    50                   int canForwardMessage = 0,
       
    51                   QGraphicsItem *parent = 0);
    51                   QGraphicsItem *parent = 0);
    52 
    52 
    53     /**
    53     /**
    54      * Destructor
    54      * Destructor
    55      */
    55      */
    67      * @see HbWidget
    67      * @see HbWidget
    68      */
    68      */
    69     void resizeEvent(QGraphicsSceneResizeEvent * event);
    69     void resizeEvent(QGraphicsSceneResizeEvent * event);
    70 
    70 
    71 private:
    71 private:
       
    72     /**
       
    73      * Check if this message can be forwarded
       
    74      * @return true, if possible to forward
       
    75      */
       
    76     bool isForwardOk();
    72 
    77 
    73     /**
    78     /**
    74      * Creates tool bar actions
    79      * Creates tool bar actions
    75      * @see HbView
    80      * @see HbView
    76      */
    81      */
    77     void createToolBar();
    82     void createToolBar();
    78    
    83     
       
    84     /**
       
    85      * Launch Editor for forward, reply, replyall actions
       
    86      * @param operation, Editor operation e.g. forward, reply etc
       
    87      */
       
    88     void launchEditor(MsgBaseView::UniEditorOperation operation);
    79 
    89 
    80 public slots:
    90 public slots:
    81 
    91 
    82     /**
    92     /**
    83      * Clears the content on the widget
    93      * Clears the content on the widget
    89     
    99     
    90     /**
   100     /**
    91      * Handle delete 
   101      * Handle delete 
    92      */     
   102      */     
    93     void handleDeleteAction();
   103     void handleDeleteAction();
    94     
   104 
    95 private slots:
   105 private slots:
    96     /**
   106     /**
    97      * This slot is called when sendMessage signal is emitted for a highlighted
   107      * This slot is called when sendMessage signal is emitted for a highlighted
    98      * phone number, from body widget.
   108      * phone number, from body widget.
    99      */
   109      */
   100     void sendMessage(const QString& phoneNumber, const QString& alias = QString());
   110     void sendMessage(const QString& phoneNumber, const QString& alias = QString());
   101 
   111 
   102     /**
   112     /**
   103      * This slot is called when delete message dialog is launched.
   113      * This slot is called when delete message dialog is launched.
   104      * @param action selected action (yes or no).
   114      * @param val selected action value.
   105      */
   115      */
   106     void onDialogDeleteMsg(HbAction* action);
   116     void onDialogDeleteMsg(int val);
   107     
   117     
       
   118     /**
       
   119      * Handle reply
       
   120      */
       
   121     void handleReplyAction();
       
   122     
       
   123     /**
       
   124      * Handle reply-all
       
   125      */
       
   126     void handleReplyAllAction();
       
   127 
   108 private:
   128 private:
   109 
   129 
   110     /**
   130     /**
   111      * Feeder object
   131      * Feeder object
   112      * Owned
   132      * Owned
   137 	
   157 	
   138     /**
   158     /**
   139      * Message count
   159      * Message count
   140      */
   160      */
   141     int mMsgCount;
   161     int mMsgCount;
   142     
       
   143 	/**
       
   144 	 * Forward status of message
       
   145 	 */
       
   146     bool mForwardMessage;
       
   147 };
   162 };
   148 
   163 
   149 #endif
   164 #endif
   150 // EOF
   165 // EOF