qtmobility/examples/writemessage/messagesender.cpp
changeset 8 71781823f776
parent 5 453da2cfceef
child 11 06b8e2af4411
equal deleted inserted replaced
5:453da2cfceef 8:71781823f776
   327         }
   327         }
   328     }
   328     }
   329 //! [add-attachments]
   329 //! [add-attachments]
   330 
   330 
   331 //! [send-message]
   331 //! [send-message]
       
   332     sendButton->setEnabled(false);
   332     if (service.send(message)) {
   333     if (service.send(message)) {
   333         sendButton->setEnabled(false);
       
   334         sendId = message.id();
   334         sendId = message.id();
   335     } else {
   335     } else {
       
   336         sendButton->setEnabled(true);
   336         QMessageBox::warning(0, tr("Failed"), tr("Unable to send message"));
   337         QMessageBox::warning(0, tr("Failed"), tr("Unable to send message"));
   337     }
   338     }
   338 //! [send-message]
   339 //! [send-message]
   339 }
   340 }
   340 
   341