messagingapp/msgui/conversationview/inc/msgconversationbaseview.h
changeset 27 e4592d119491
parent 25 84d9eb65b26f
child 47 5b14749788d7
equal deleted inserted replaced
25:84d9eb65b26f 27:e4592d119491
    23 #define CONVERSATION_VIEW_EXPORT Q_DECL_EXPORT
    23 #define CONVERSATION_VIEW_EXPORT Q_DECL_EXPORT
    24 #else
    24 #else
    25 #define CONVERSATION_VIEW_EXPORT Q_DECL_IMPORT
    25 #define CONVERSATION_VIEW_EXPORT Q_DECL_IMPORT
    26 #endif
    26 #endif
    27 
    27 
       
    28 #include <xqsettingskey.h>
    28 #include "msgbaseview.h"
    29 #include "msgbaseview.h"
    29 
    30 
    30 // FORWARD DECLARATIONS
    31 // FORWARD DECLARATIONS
    31 class MsgConversationView;
    32 class MsgConversationView;
    32 class HbListWidgetItem;
    33 class HbListWidgetItem;
    33 class MsgContactCardWidget;
    34 class MsgContactCardWidget;
    34 class QGraphicsLinearLayout;
    35 class QGraphicsLinearLayout;
       
    36 class XQSettingsManager;
       
    37 class XQPublishAndSubscribeUtils;
    35 
    38 
    36 class CONVERSATION_VIEW_EXPORT MsgConversationBaseView : public MsgBaseView
    39 class CONVERSATION_VIEW_EXPORT MsgConversationBaseView : public MsgBaseView
    37     {
    40     {
    38     Q_OBJECT
    41     Q_OBJECT
    39 
    42 
    67     /**
    70     /**
    68      * saveContentToDrafts
    71      * saveContentToDrafts
    69      * Saves the editors content in cv to drafts
    72      * Saves the editors content in cv to drafts
    70      */
    73      */
    71     void saveContentToDrafts();
    74     void saveContentToDrafts();
       
    75     
       
    76     /**
       
    77      * conversationId
       
    78      * Get the conversationId
       
    79      */
       
    80      qint64 conversationId();
    72 
    81 
    73 public slots:   
    82 public slots:   
    74     /**
    83     /**
    75      * Close the conversation view 
    84      * Close the conversation view 
    76      * This slot is triggered when user presses back(seconday sofykey)
    85      * This slot is triggered when user presses back(seconday sofykey)
    80     /**
    89     /**
    81      * Mark messages as read
    90      * Mark messages as read
    82      * Slot is triiggered when replying started
    91      * Slot is triiggered when replying started
    83      */
    92      */
    84     void markMessagesAsRead();
    93     void markMessagesAsRead();
       
    94     
       
    95     /**
       
    96      * Publish the conversation id based on the flag.
       
    97      * @param setId if true previous conversation id 
       
    98      * will be published else -1 will be published.
       
    99      */
       
   100     void setPSCVId(bool setId);
    85 	   
   101 	   
    86 private slots:
   102 private slots:
    87    /**
   103    /**
    88    * Slot for delayed construction
   104    * Slot for delayed construction
    89    */
   105    */
   105      * Slot for handling errors. Error ids are provided as 
   121      * Slot for handling errors. Error ids are provided as 
   106      * 32-bit integers.
   122      * 32-bit integers.
   107      * @param errorCode qint32
   123      * @param errorCode qint32
   108      */
   124      */
   109     void handleError(int errorCode, const QString& errorMessage);
   125     void handleError(int errorCode, const QString& errorMessage);
       
   126 
       
   127     /**
       
   128      * Slot for handling the timer expiry event fired from view reay indication
       
   129      */    
       
   130     void handleViewReady();
   110     
   131     
   111  
       
   112  signals:
   132  signals:
   113      /**
   133      /**
   114       * Signal emitted when the conversation view is closed.
   134       * Signal emitted when the conversation view is closed.
   115       */
   135       */
   116     void conversationViewClosed(); 
   136     void conversationViewClosed(); 
   141     
   161     
   142     /**
   162     /**
   143      * Main layout.
   163      * Main layout.
   144      */
   164      */
   145     QGraphicsLinearLayout* mMainLayout;
   165     QGraphicsLinearLayout* mMainLayout;
       
   166     
       
   167 	/**
       
   168      * Object of XQSettingsKey. 
       
   169      */ 
       
   170     XQSettingsKey mCVIdkey;
   146 
   171 
       
   172     /**
       
   173      * mSettingsManager
       
   174      * Instance of the XQSettingsManager
       
   175      * Own.
       
   176      */ 
       
   177     XQSettingsManager* mSettingsManager;    
       
   178     
   147     };
   179     };
   148 
   180 
   149 #endif // MSG_CONVERSATION_VIEW_INTERFACE_H
   181 #endif // MSG_CONVERSATION_VIEW_INTERFACE_H
   150 
   182 
   151 // EOF
   183 // EOF