#ifndef CLIENTMESSAGEBASE_H
#define CLIENTMESSAGEBASE_H

#include <QtGlobal>

class QIODevice;

class ClientMessageBase
{
public:
    ClientMessageBase();

    virtual void writeBytes( QIODevice *device ) const = 0;

protected:
    void writeBool( QIODevice *device, bool input ) const;
    void writeUint8( QIODevice *device, quint8 input ) const;
    void writeUint16( QIODevice *device, quint16 input, bool bigEndian = false ) const;
    void writeUint32( QIODevice *device, quint32 input, bool bigEndian = false ) const;

};

#endif // CLIENTMESSAGEBASE_H

