Logo Search packages:      
Sourcecode: kmess version File versions

void Application::setApplicationType ( ChatMessage::MessageType  type  )  [protected, inherited]

Set the type of application we're starting.

This method may be called by derivated Application classes; to make the base class emit the correct ContentsClass type when outputting messages which may get displayed in a wrong way by notification balloons.

Definition at line 598 of file application.cpp.

Referenced by FileTransferP2P::FileTransferP2P(), and WebcamTransferP2P().

{
  switch( type )
  {
    case ChatMessage::TYPE_APPLICATION_WEBCAM:
    case ChatMessage::TYPE_APPLICATION_FILE:
    case ChatMessage::TYPE_APPLICATION_AUDIO:
      type_ = type;
      break;
    default:
      type_ = ChatMessage::TYPE_APPLICATION;
      break;
  }
}


Generated by  Doxygen 1.6.0   Back to index