messagingapp/msgui/unifiedviewer/inc/unifiedviewer.h
changeset 62 fdbe8253b596
parent 51 3507212d340e
child 63 eceabb8c7a12
equal deleted inserted replaced
59:fcb676ca077d 62:fdbe8253b596
    56     ~UnifiedViewer();
    56     ~UnifiedViewer();
    57 
    57 
    58     /**
    58     /**
    59      * Populates the content on the widget
    59      * Populates the content on the widget
    60      */
    60      */
    61     void populateContent(const qint32 messageId, bool update, int msgCount);
    61     void populateContent(const qint32 messageId, bool update, int msgCount, qint64 conversationId=-1);
       
    62 
       
    63     /**
       
    64      * Event handler
       
    65      * @param key Key code
       
    66      * @return true if key event handled else false.
       
    67      * @see MsgBaseView
       
    68      */
       
    69     bool handleKeyEvent(int key);
       
    70 
       
    71 public slots:
       
    72 
       
    73     /**
       
    74      * Clears the content on the widget
       
    75      */
       
    76     void clearContent();
       
    77 
       
    78     // Used for internal testing will be removed
       
    79     void handleFwdAction();
       
    80 
       
    81     /**
       
    82      * Handle delete
       
    83      */
       
    84     void handleDeleteAction();
    62 
    85 
    63 protected:
    86 protected:
    64 
    87 
    65     /**
    88     /**
    66      * reimplemented from base class to provide proper geometry for scrolling.
    89      * reimplemented from base class to provide proper geometry for scrolling.
    85      * Launch Editor for forward, reply, replyall actions
   108      * Launch Editor for forward, reply, replyall actions
    86      * @param operation, Editor operation e.g. forward, reply etc
   109      * @param operation, Editor operation e.g. forward, reply etc
    87      */
   110      */
    88     void launchEditor(MsgBaseView::UniEditorOperation operation);
   111     void launchEditor(MsgBaseView::UniEditorOperation operation);
    89 
   112 
    90 public slots:
       
    91 
       
    92     /**
   113     /**
    93      * Clears the content on the widget
   114      * Launches the dialer interface.
       
   115      * @args number Number to be called.
    94      */
   116      */
    95     void clearContent();
   117     void call(const QString &number);
    96 
       
    97     // Used for internal testing will be removed
       
    98     void handleFwdAction();
       
    99     
       
   100     /**
       
   101      * Handle delete 
       
   102      */     
       
   103     void handleDeleteAction();
       
   104 
   118 
   105 private slots:
   119 private slots:
   106     /**
   120     /**
   107      * This slot is called when sendMessage signal is emitted for a highlighted
   121      * This slot is called when sendMessage signal is emitted for a highlighted
   108      * phone number, from body widget.
   122      * phone number, from body widget.
   142     /**
   156     /**
   143      * UniContentsWidget object
   157      * UniContentsWidget object
   144      * Owned
   158      * Owned
   145      */
   159      */
   146     UniContentsWidget* mContentsWidget;
   160     UniContentsWidget* mContentsWidget;
       
   161     
       
   162     /**
       
   163      * Conversation ID
       
   164      */
       
   165     qint64 mConversationID;
   147 
   166 
   148     /**
   167     /**
   149      * Contact id
   168      * Contact id
   150      */
   169      */
   151     qint32 mContactId;
   170     qint32 mContactId;
   157 	
   176 	
   158     /**
   177     /**
   159      * Message count
   178      * Message count
   160      */
   179      */
   161     int mMsgCount;
   180     int mMsgCount;
       
   181 
   162 };
   182 };
   163 
   183 
   164 #endif
   184 #endif
   165 // EOF
   185 // EOF