#ifndef TACTILEIPC3D_SERIAL_FORMAT_H
#define TACTILEIPC3D_SERIAL_FORMAT_H

#include <QByteArray>
#include <QString>

class ISerialFormat {
public:
    enum class ParseResult {
        NeedMore = 0,
        Ok = 1,
        Invalid = 2,
    };

    virtual ~ISerialFormat() = default;
    virtual ParseResult tryParse(QByteArray* buffer, QByteArray* packet, QString* error) = 0;
};

#endif // TACTILEIPC3D_SERIAL_FORMAT_H
