emailuis/nmailui/src/nmutilities.cpp
changeset 51 d845db10c0d4
parent 47 f83bd4ae1fe3
child 62 a8c646b56683
equal deleted inserted replaced
49:00c7ae862740 51:d845db10c0d4
   262     QString noteText, QObject* receiver, const char* member)
   262     QString noteText, QObject* receiver, const char* member)
   263 {
   263 {
   264     NM_FUNCTION;
   264     NM_FUNCTION;
   265 
   265 
   266     HbMessageBox *messageBox = new HbMessageBox(HbMessageBox::MessageTypeQuestion);
   266     HbMessageBox *messageBox = new HbMessageBox(HbMessageBox::MessageTypeQuestion);
       
   267     messageBox->setStandardButtons(HbMessageBox::Yes | HbMessageBox::No);  
   267     messageBox->setText(noteText);
   268     messageBox->setText(noteText);
   268     messageBox->setTimeout(HbMessageBox::NoTimeout); // Note has to be dismissed manually
   269     messageBox->setTimeout(HbMessageBox::NoTimeout); // Note has to be dismissed manually
   269     messageBox->open(receiver, member);
   270     messageBox->open(receiver, member);
   270     return messageBox;
   271     return messageBox;
   271 }
   272 }
   290 */
   291 */
   291 QString NmUtilities::createReplyHeader(const NmMessageEnvelope &env)
   292 QString NmUtilities::createReplyHeader(const NmMessageEnvelope &env)
   292 {
   293 {
   293     NM_FUNCTION;
   294     NM_FUNCTION;
   294 
   295 
   295     QString ret = "<html><body><br><br>";
   296     QString ret = "<html><body>";
   296     // Append "----- Original message ----" text
   297     // Append "----- Original message ----" text
   297     ret+=hbTrId("txt_mail_editor_reply_original_msg");
   298     ret+=hbTrId("txt_mail_editor_reply_original_msg");
   298     // Append sender
   299     // Append sender
   299     ret+="<br>";
   300     ret+="<br>";
   300     ret+=hbTrId("txt_mail_editor_reply_from");
   301     ret+=hbTrId("txt_mail_editor_reply_from");