cant believe it, first ever encrypted messages!

This commit is contained in:
Blue 2023-11-05 16:29:44 -03:00
parent a7d1a28f29
commit 637eb702a8
Signed by: blue
GPG key ID: 9B203B252A63EE38
10 changed files with 190 additions and 69 deletions

View file

@ -25,6 +25,8 @@
#include <QMap>
#include <QDataStream>
#include "enums.h"
namespace Shared {
class Message;
}
@ -94,6 +96,9 @@ public:
bool change(const QMap<QString, QVariant>& data);
void setStanzaId(const QString& sid);
void setAttachPath(const QString& path);
void setEncryption(EncryptionProtocol encryption);
void setError(const QString& text);
QString getFrom() const;
QString getFromJid() const;
@ -123,6 +128,7 @@ public:
QString getOriginalBody() const;
QString getStanzaId() const;
QString getAttachPath() const;
EncryptionProtocol getEncryption() const;
private:
QString jFrom;
@ -144,6 +150,7 @@ private:
QDateTime lastModified;
QString stanzaId;
QString attachPath;
EncryptionProtocol encryption;
};
}