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

void MimeApplication::userRejected (  ) [protected, virtual]

Called when the user rejected (declined) the application.

Displays a message using getUserRejectMessage() and notifies the contact.

Reimplemented from Application.

Definition at line 296 of file mimeapplication.cpp.

References Application::CANCEL_INVITATION, Application::endApplication(), Application::getContactHandle(), Application::getUserRejectMessage(), Application::isClosing(), Application::modifyOfferMessage(), sendCancelMessage(), Application::setClosing(), and Application::showEventMessage().

Referenced by FileTransfer::contactStarted2_UserAccepts().

  if( isClosing() )
    kmWarning() << "Attempted to close application twice "
                  " contact=" << getContactHandle() <<
                  " class="   << metaObject()->className() <<
                  " action=endapplication)";


  kmDebug() << "user requests to reject the invitation.";

  // Send abort messages
  showEventMessage( getUserRejectMessage(), ChatMessage::CONTENT_APP_CANCELED, false );
  sendCancelMessage( CANCEL_INVITATION );

  // Set the state to avoid crashes.
  setClosing( true );

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index