diff options
Diffstat (limited to 'include/aopacket.h')
| -rw-r--r-- | include/aopacket.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/include/aopacket.h b/include/aopacket.h new file mode 100644 index 0000000..21f6e0f --- /dev/null +++ b/include/aopacket.h @@ -0,0 +1,32 @@ +#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 |
