atrooney-online-2/aopacket.h
Cerapter d314b8dd07 Moved includes out of the CPP files into the header files.
Reimplementation of `30a87d23c9c63bed072b3460e7482075dc530b2c` from the
old origin.
2018-08-19 09:37:34 +02:00

33 lines
585 B
C++

#ifndef AOPACKET_H
#define AOPACKET_H
#include <QString>
#include <QStringList>
#include <QDebug>
class AOPacket
{
public:
AOPacket(QString p_packet_string);
AOPacket(QString header, QStringList &p_contents);
~AOPacket();
QString get_header() {return m_header;}
QStringList &get_contents() {return m_contents;}
QString to_string();
void encrypt_header(unsigned int p_key);
void decrypt_header(unsigned int p_key);
void net_encode();
void net_decode();
private:
bool encrypted = false;
QString m_header;
QStringList m_contents;
};
#endif // AOPACKET_H