#include "clientsecuritytypemessage.h"

ClientSecurityTypeMessage::ClientSecurityTypeMessage() : ClientMessageBase()
{
}

void ClientSecurityTypeMessage::writeBytes( QIODevice *device ) const
{
    writeUint8( device, m_type );
}

void ClientSecurityTypeMessage::setSecurityType( ClientGlobals::AuthType type )
{
    m_type = type;
}

ClientGlobals::AuthType ClientSecurityTypeMessage::securityType() const
{
    return m_type;
}

QDebug operator <<( QDebug in, ClientSecurityTypeMessage & message )
{
        in << QString("Client security type message. Type: %1")
                .arg(message.securityType());
        return in;
}

