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

void MsnSwitchboardConnection::slotError ( QString  error,
MsnSocketBase::ErrorType  type 
) [protected, virtual, slot]

Shows error dialog boxes.

All switchboard errors are annoying and mostly useless. So we ignore most of them.

Parameters:
error The error reason or explanation.
type The type of error.

Implements MsnConnection.

Definition at line 2334 of file msnswitchboardconnection.cpp.

References closeConnection(), and MsnSocketBase::ERROR_DROP.

{
  kWarning() << "MSN Switchboard Connection error type" << type << " (contacts=" << contactsInChat_ << "):" << error;

  // Decide what kind of message to show
  switch( type )
  {
    case MsnSocketBase::ERROR_DROP:
      // FIXME Completely unreliable, at least with WLM.
      // Only warn the user if the chat had recent activity. Cannot use isExpired() here
      // because it also checks if we're connected, but here we're not.
//       if( keepAliveTimer_ == 0 || keepAlivesRemaining_ > 0 )
//       {
//         emit showWarning( WARNING_CONNECTION_DROP, 0 );
//       }

      // Then disconnect
      closeConnection();
      break;

    default:
      // Other errors are simply ignored :>
      break;
  }
}


Generated by  Doxygen 1.6.0   Back to index