Logo Search packages:      
Sourcecode: kmess version File versions  Download package

void FileTransfer::contactAborted ( const QString &  message ) [virtual]

The contact cancelled the session

Reimplemented from MimeApplication.

Definition at line 119 of file filetransfer.cpp.

References getContactAbortMessage(), Application::modifyOfferMessage(), and Application::showEventMessage().

{
#ifdef KMESSDEBUG_FILETRANSFER_GENERAL
  kmDebug();
#endif
  Q_UNUSED( message );

  // Displays the cancel state in the transfer window
  TransferWindow::getInstance()->failTransfer( transferID_, i18n("Cancelled") );

  // Also display it in chat
  modifyOfferMessage();

  if( message.isEmpty() )
  {
    showEventMessage( getContactAbortMessage(), ChatMessage::CONTENT_APP_CANCELED, true );
  }
  else
  {
    showEventMessage( message, ChatMessage::CONTENT_APP_CANCELED, true );
  }
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index