messagingapp/msgui/conversationview/inc/msgconversationbaseview.h
changeset 25 84d9eb65b26f
parent 23 238255e8b033
child 27 e4592d119491
child 37 518b245aa84c
equal deleted inserted replaced
23:238255e8b033 25:84d9eb65b26f
    28 #include "msgbaseview.h"
    28 #include "msgbaseview.h"
    29 
    29 
    30 // FORWARD DECLARATIONS
    30 // FORWARD DECLARATIONS
    31 class MsgConversationView;
    31 class MsgConversationView;
    32 class HbListWidgetItem;
    32 class HbListWidgetItem;
       
    33 class MsgContactCardWidget;
       
    34 class QGraphicsLinearLayout;
    33 
    35 
    34 class CONVERSATION_VIEW_EXPORT MsgConversationBaseView : public MsgBaseView
    36 class CONVERSATION_VIEW_EXPORT MsgConversationBaseView : public MsgBaseView
    35     {
    37     {
    36     Q_OBJECT
    38     Q_OBJECT
    37 
    39 
    64 
    66 
    65     /**
    67     /**
    66      * saveContentToDrafts
    68      * saveContentToDrafts
    67      * Saves the editors content in cv to drafts
    69      * Saves the editors content in cv to drafts
    68      */
    70      */
    69     bool saveContentToDrafts();
    71     void saveContentToDrafts();
    70 
    72 
    71 public slots:   
    73 public slots:   
    72     /**
    74     /**
    73      * Close the conversation view 
    75      * Close the conversation view 
    74      * This slot is triggered when user presses back(seconday sofykey)
    76      * This slot is triggered when user presses back(seconday sofykey)
    78     /**
    80     /**
    79      * Mark messages as read
    81      * Mark messages as read
    80      * Slot is triiggered when replying started
    82      * Slot is triiggered when replying started
    81      */
    83      */
    82     void markMessagesAsRead();
    84     void markMessagesAsRead();
       
    85 	   
       
    86 private slots:
       
    87    /**
       
    88    * Slot for delayed construction
       
    89    */
       
    90     void doDelayedConstruction();
    83     
    91     
    84 private slots:
    92 	/**
       
    93 	* Hides chrome when itu-t is up
       
    94 	*/
       
    95     void hideChrome(bool hide);
       
    96 	
       
    97 	/**
       
    98      * Slot for handling valid returns from the framework.
       
    99      * 
       
   100      * @param result const QVariant&
       
   101      */
       
   102     void handleOk(const QVariant& result);
    85     
   103     
    86     /**
   104     /**
    87      * Open contact card
   105      * Slot for handling errors. Error ids are provided as 
    88      * Slot is triiggered when clicking on CV header
   106      * 32-bit integers.
       
   107      * @param errorCode qint32
    89      */
   108      */
    90     void openContactDetails();
   109     void handleError(int errorCode, const QString& errorMessage);
    91     
   110     
    92  
   111  
    93  signals:
   112  signals:
    94      /**
   113      /**
    95       * Signal emitted when the conversation view is closed.
   114       * Signal emitted when the conversation view is closed.
   102      */
   121      */
   103     void initView();
   122     void initView();
   104     
   123     
   105 private:
   124 private:
   106    
   125    
       
   126    /**
       
   127      * Conversation ID
       
   128      */
       
   129     qint64 mConversationId;
       
   130    
   107     /**
   131     /**
   108      * MsgConversationView, main view class
   132      * MsgConversationView, main view class
   109      * Owned
   133      * Owned
   110      */
   134      */
   111     MsgConversationView *mConversationView;
   135     MsgConversationView *mConversationView;  
   112    
   136     
   113     /**
   137     /**
   114      * Conversation ID
   138      * Contact card widget.
   115      */
   139      */
   116     qint64 mConversationId;
   140     MsgContactCardWidget* mContactCard;
       
   141     
       
   142     /**
       
   143      * Main layout.
       
   144      */
       
   145     QGraphicsLinearLayout* mMainLayout;
   117 
   146 
   118     };
   147     };
   119 
   148 
   120 #endif // MSG_CONVERSATION_VIEW_INTERFACE_H
   149 #endif // MSG_CONVERSATION_VIEW_INTERFACE_H
   121 
   150