Loading...
Searching...
No Matches
QXmppE2eeMetadata.h
// SPDX-FileCopyrightText: 2022 Linus Jahn <lnj@kaidan.im>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef QXMPPE2EEMETADATA_H
#define QXMPPE2EEMETADATA_H
#include "QXmppGlobal.h"
#include <QSharedDataPointer>
class QDateTime;
class QXmppE2eeMetadataPrivate;
class QXMPP_EXPORT QXmppE2eeMetadata
{
public:
QXmppE2eeMetadata();
QXmppE2eeMetadata(QSharedDataPointer<QXmppE2eeMetadataPrivate> d);
QXmppE2eeMetadata(const QXmppE2eeMetadata &other);
QXmppE2eeMetadata(QXmppE2eeMetadata &&);
~QXmppE2eeMetadata();
QXmppE2eeMetadata &operator=(const QXmppE2eeMetadata &other);
QXmppE2eeMetadata &operator=(QXmppE2eeMetadata &&);
QXmpp::EncryptionMethod encryption() const;
void setEncryption(QXmpp::EncryptionMethod encryption);
QByteArray senderKey() const;
void setSenderKey(const QByteArray &keyId);
// XEP-0420: Stanza Content Encryption
QDateTime sceTimestamp() const;
void setSceTimestamp(const QDateTime &timestamp);
private:
friend class QXmppStanza;
QSharedDataPointer<QXmppE2eeMetadataPrivate> d;
};
#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