aboutsummaryrefslogtreecommitdiff
path: root/include/aopacket.h
diff options
context:
space:
mode:
authorCrystalwarrior <varsash@gmail.com>2020-05-22 01:18:24 +0300
committerCrystalwarrior <varsash@gmail.com>2020-05-22 01:18:24 +0300
commitc8e12558cdd3fd0769b81679ad09edf1f29b780f (patch)
tree7dae2225e574c3ee55d6b82a1d2f399db4ace5c0 /include/aopacket.h
parentdfac0652c8eb9bd48ceea7ae755e9c2f7e5cb1a2 (diff)
Clang-ify the code with this styling using Visual Studio Code:
{ BasedOnStyle: LLVM, UseTab: Never, IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Stroustrup, AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false, ColumnLimit: 0, AccessModifierOffset: -4, NamespaceIndentation: All } (this is the Visual Studio preset with only "BreakBeforeBraces" changed from Allman to Stroustrup)
Diffstat (limited to 'include/aopacket.h')
-rw-r--r--include/aopacket.h31
1 files changed, 15 insertions, 16 deletions
diff --git a/include/aopacket.h b/include/aopacket.h
index 21f6e0f4..4133fd56 100644
--- a/include/aopacket.h
+++ b/include/aopacket.h
@@ -1,32 +1,31 @@
#ifndef AOPACKET_H
#define AOPACKET_H
+#include <QDebug>
#include <QString>
#include <QStringList>
-#include <QDebug>
-class AOPacket
-{
+class AOPacket {
public:
- AOPacket(QString p_packet_string);
- AOPacket(QString header, QStringList &p_contents);
- ~AOPacket();
+ 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();
+ 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 encrypt_header(unsigned int p_key);
+ void decrypt_header(unsigned int p_key);
- void net_encode();
- void net_decode();
+ void net_encode();
+ void net_decode();
private:
- bool encrypted = false;
+ bool encrypted = false;
- QString m_header;
- QStringList m_contents;
+ QString m_header;
+ QStringList m_contents;
};
#endif // AOPACKET_H