QXmpp: QXmppE2eeMetadata.h Source File

QXmpp Version: 1.14.3

Loading...
Searching...
No Matches
QXmppE2eeMetadata.h
1// SPDX-FileCopyrightText: 2022 Linus Jahn <lnj@kaidan.im>
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
5#ifndef QXMPPE2EEMETADATA_H
6#define QXMPPE2EEMETADATA_H
7
8#include "QXmppGlobal.h"
9
10#include <QSharedDataPointer>
11
12class QDateTime;
13class QXmppE2eeMetadataPrivate;
14
15 class QXMPP_EXPORT QXmppE2eeMetadata
16{
17public:
18 QXmppE2eeMetadata();
20 QXmppE2eeMetadata(QSharedDataPointer<QXmppE2eeMetadataPrivate> d);
22 QXmppE2eeMetadata(const QXmppE2eeMetadata &other);
23 QXmppE2eeMetadata(QXmppE2eeMetadata &&);
24 ~QXmppE2eeMetadata();
25
26 QXmppE2eeMetadata &operator=(const QXmppE2eeMetadata &other);
27 QXmppE2eeMetadata &operator=(QXmppE2eeMetadata &&);
28
29 QXmpp::EncryptionMethod encryption() const;
30 void setEncryption(QXmpp::EncryptionMethod encryption);
31
32 QByteArray senderKey() const;
33 void setSenderKey(const QByteArray &keyId);
34
35 // XEP-0420: Stanza Content Encryption
36 QDateTime sceTimestamp() const;
37 void setSceTimestamp(const QDateTime &timestamp);
38
39private:
40 friend class QXmppStanza;
41
42 QSharedDataPointer<QXmppE2eeMetadataPrivate> d;
43};
44
45#endif // QXMPPE2EEMETADATA_H
QXmppE2eeMetadata::setSceTimestamp
void setSceTimestamp(const QDateTime &timestamp)
Definition QXmppStanza.cpp:669
QXmppE2eeMetadata::QXmppE2eeMetadata
QXmppE2eeMetadata(QXmppE2eeMetadata &&)
Move-constructor.
QXmppE2eeMetadata::operator=
QXmppE2eeMetadata & operator=(QXmppE2eeMetadata &&)
Assignment move-operator.
QXmppE2eeMetadata::setSenderKey
void setSenderKey(const QByteArray &keyId)
Definition QXmppStanza.cpp:631
QXmppE2eeMetadata::QXmppE2eeMetadata
QXmppE2eeMetadata(const QXmppE2eeMetadata &other)
Copy-constructor.
QXmppE2eeMetadata::sceTimestamp
QDateTime sceTimestamp() const
Definition QXmppStanza.cpp:650
QXmppE2eeMetadata::encryption
QXmpp::EncryptionMethod encryption() const
Definition QXmppStanza.cpp:583
QXmppE2eeMetadata::senderKey
QByteArray senderKey() const
Definition QXmppStanza.cpp:612
QXmppE2eeMetadata::operator=
QXmppE2eeMetadata & operator=(const QXmppE2eeMetadata &other)
Assignment operator.
QXmppE2eeMetadata::QXmppE2eeMetadata
QXmppE2eeMetadata()
Definition QXmppStanza.cpp:556
QXmppE2eeMetadata::setEncryption
void setEncryption(QXmpp::EncryptionMethod encryption)
Definition QXmppStanza.cpp:593
QXmpp::EncryptionMethod
EncryptionMethod
Definition QXmppGlobal.h:101