
* Lightly reworked `NetworkManager` * Added new modules to handle various connection types. * TCP * WebSocket * Added general string splitter alias based on Qt version. * Replaced `lobby_constructed` and `courtroom_constructed` * Refactored and partially reimplemented the following classes: * `AOBlipPlayer` * `AOEmotePreview` * `AOMusicPlayer` * `AOSfxPlayer` * `AOTextArea`
27 lines
456 B
C++
27 lines
456 B
C++
#pragma once
|
|
|
|
#include <QMetaType>
|
|
#include <QString>
|
|
#include <QStringList>
|
|
|
|
class AOPacket
|
|
{
|
|
public:
|
|
static QString encode(QString data);
|
|
static QString decode(QString data);
|
|
|
|
AOPacket();
|
|
AOPacket(QString header);
|
|
AOPacket(QString header, QStringList content);
|
|
|
|
QString header();
|
|
QStringList &content();
|
|
|
|
QString toString(bool ensureEncoded = false);
|
|
|
|
private:
|
|
QString m_header;
|
|
QStringList m_content;
|
|
};
|
|
Q_DECLARE_METATYPE(AOPacket)
|