messagingapp/msgui/conversationview/src/msgconversationbaseview.cpp
changeset 48 4f501b74aeb1
parent 38 4e4b6adb1024
child 51 3507212d340e
equal deleted inserted replaced
46:b1f0785c289d 48:4f501b74aeb1
    18 #include "msgconversationbaseview.h"
    18 #include "msgconversationbaseview.h"
    19 
    19 
    20 // SYSTEM INCLUDES
    20 // SYSTEM INCLUDES
    21 #include <QGraphicsLinearLayout>
    21 #include <QGraphicsLinearLayout>
    22 #include <HbMainWindow>
    22 #include <HbMainWindow>
    23 #include <HbNotificationDialog>
    23 #include <HbDeviceNotificationDialog>
    24 
    24 
    25 #include <xqaiwrequest.h>
    25 #include <xqaiwrequest.h>
    26 #include <xqappmgr.h>
    26 #include <xqappmgr.h>
    27 
    27 
    28 #include <cntservicescontact.h>
    28 #include <cntservicescontact.h>
   160 // saves the editors content to drafts
   160 // saves the editors content to drafts
   161 //---------------------------------------------------------------
   161 //---------------------------------------------------------------
   162 int MsgConversationBaseView::saveContentToDrafts()
   162 int MsgConversationBaseView::saveContentToDrafts()
   163 {
   163 {
   164     int msgId = INVALID_MSGID;
   164     int msgId = INVALID_MSGID;
   165     bool result = false;
       
   166     if (mConversationId >= 0) {
   165     if (mConversationId >= 0) {
   167     msgId = mConversationView->saveContentToDrafts();
   166     msgId = mConversationView->saveContentToDrafts();
   168     }
   167     }
   169 
   168 
   170     if (msgId != INVALID_MSGID) {
   169     if (msgId != INVALID_MSGID) {
   171         HbNotificationDialog::launchDialog(LOC_SAVED_TO_DRAFTS);
   170         HbDeviceNotificationDialog::notification("", LOC_SAVED_TO_DRAFTS);
   172     }
   171     }
   173     return msgId;
   172     return msgId;
   174 }
   173 }
   175 
   174 
   176 //--------------------------------------------------------------- 
   175 //---------------------------------------------------------------