emailuis/nmailui/inc/nmeditorview.h
changeset 27 9ba4404ef423
parent 23 2dc6caa42ec3
child 30 759dc5235cdb
--- a/emailuis/nmailui/inc/nmeditorview.h	Fri May 14 15:41:10 2010 +0300
+++ b/emailuis/nmailui/inc/nmeditorview.h	Thu May 27 12:43:55 2010 +0300
@@ -43,7 +43,7 @@
 class NmAddAttachmentsOperation;
 class NmCheckOutboxOperation;
 class NmAttachmentPicker;
-
+class HbMessageBox;
 
 class NmEditorView : public NmBaseView, public NmActionObserver
 {
@@ -63,7 +63,7 @@
     void reloadViewContents(NmUiStartParam* startParam);
     NmUiViewId nmailViewId() const;
     HbWidget* scrollAreaContents();
-    bool okToExitView();
+    void okToExitView();
     void aboutToExitView();
     void viewReady();
 
@@ -73,7 +73,8 @@
     void createOptionsMenu();
     void setButtonsDimming(bool enabled);
     void attachmentLongPressed(NmId attachmentPartId, QPointF point);
-
+    void invalidAddressQuery(HbAction* action);
+    void okToExitQuery(HbAction* action);
 
 public: // From NmActionObserver
 
@@ -95,6 +96,7 @@
     void handleSendOperationCompleted();
     void openAttachmentTriggered();  
     void onAttachmentReqCompleted(const QVariant &value);
+    void switchCcBccFieldVisibility();
 
 private:
 
@@ -103,6 +105,7 @@
     void setMessageData();
     void startMessageCreation(NmUiEditorStartMode startMode);
     void startSending();
+    void finalizeSending();
     void createToolBar();
     QPointF viewCoordinateToEditCoordinate(QPointF orgPoint);
     void updateMessageWithEditorContents();
@@ -122,8 +125,6 @@
     void sendMouseReleaseEventToScroll(QGraphicsSceneMouseEvent *event);
     void sendMouseMoveEventToScroll(QGraphicsSceneMouseEvent *event);
     void sendLongPressGesture(const QPointF &point);
-    void contextButton(NmActionResponse &result);
-
 
 private: // Data
 
@@ -136,6 +137,7 @@
     NmEditorTextEdit *mEditWidget;      // Not owned
     NmEditorHeader *mHeaderWidget;      // Not owned
     NmMessage *mMessage;                // Owned
+    QGraphicsLinearLayout *mLayout;
     NmEditorContent *mContentWidget;    // Owned
     HbMenu *mPrioritySubMenu;           // Owned
     HbMenu *mAttachmentListContextMenu; // Owned
@@ -146,9 +148,10 @@
     QPointer<NmOperation> mRemoveAttachmentOperation;                // Not owned 
     QPointer<NmCheckOutboxOperation> mCheckOutboxOperation;          // Not owned 
 
-    HbProgressDialog *mWaitDialog; // Owned.
-    
-    NmAttachmentPicker* mAttachmentPicker;    // Owned    
+    HbProgressDialog *mWaitDialog;         // Owned.    
+    HbMessageBox* mQueryDialog;            // Owned
+    NmAttachmentPicker* mAttachmentPicker; // Owned    
+    bool mCcBccFieldVisible;
 };