QXmppEntityCapsStorage::Key Struct

struct QXmppEntityCapsStorage::Key

Identifies stored information by the hash it has been verified with. More...

Public Functions

bool operator==(const QXmppEntityCapsStorage::Key &) const

Public Variables

QXmpp::HashAlgorithm algorithm
QByteArray hash
QXmppEntityCapsStorage::Method method

Detailed Description

Other methods and hash algorithms may be used in the future, so implementations should store all fields.

Member Function Documentation

[noexcept default] bool Key::operator==(const QXmppEntityCapsStorage::Key &) const

Returns true if the keys are equal.

Member Variable Documentation

QXmpp::HashAlgorithm Key::algorithm

The hash algorithm. Its values are stable, so it can be stored as an integer.

QByteArray Key::hash

The hash.

QXmppEntityCapsStorage::Method Key::method

The method the hash has been generated with.