MessageCore::AutocryptRecipient Class
class MessageCore::AutocryptRecipient| Header: | #include <MessageCore/AutocryptRecipient> |
| CMake: | find_package(KPim6MessageCore REQUIRED)target_link_libraries(mytarget PRIVATE KPim6::MessageCore) |
Public Functions
| AutocryptRecipient() | |
| ~AutocryptRecipient() | |
| QByteArray | addr() const |
| QDateTime | autocrypt_timestamp() const |
| QByteArray | bad_user_agent() const |
| int | count_have_ach() const |
| int | count_no_ach() const |
| QDateTime | counting_since() const |
| void | fromJson(const QByteArray &json) |
| GpgME::Key | gossipKey() const |
| QByteArray | gossipKeydata() const |
| QDateTime | gossip_timestamp() const |
| GpgME::Key | gpgKey() const |
| QByteArray | gpgKeydata() const |
| bool | hasChanged() const |
| QDateTime | last_seen() const |
| bool | prefer_encrypt() const |
| void | setChangedFlag(bool changed) |
| QByteArray | toJson(QJsonDocument::JsonFormat format) const |
| void | updateFromGossip(const MessageCore::HeaderMixupNodeHelper &mixup, const KMime::Headers::Base *header) |
| void | updateFromMessage(const MessageCore::HeaderMixupNodeHelper &mixup, const KMime::Headers::Base *header) |
Detailed Description
Member Function Documentation
AutocryptRecipient::AutocryptRecipient()
Creates a new AutocryptRecipient.
[noexcept] AutocryptRecipient::~AutocryptRecipient()
Destroys the AutocryptRecipient.
QByteArray AutocryptRecipient::addr() const
Returns the email address of the recipient.
QDateTime AutocryptRecipient::autocrypt_timestamp() const
Returns the autocrypt timestamp.
QByteArray AutocryptRecipient::bad_user_agent() const
Returns the bad user agent information.
int AutocryptRecipient::count_have_ach() const
Returns the count of messages with autocrypt headers.
int AutocryptRecipient::count_no_ach() const
Returns the count of messages without autocrypt headers.
QDateTime AutocryptRecipient::counting_since() const
Returns the counting start timestamp.
void AutocryptRecipient::fromJson(const QByteArray &json)
Loads the recipient information from JSON data.
json The JSON data to load.
GpgME::Key AutocryptRecipient::gossipKey() const
Returns the gossip GPG key for this recipient.
QByteArray AutocryptRecipient::gossipKeydata() const
Returns the gossip GPG key data as a byte array.
QDateTime AutocryptRecipient::gossip_timestamp() const
Returns the gossip timestamp.
GpgME::Key AutocryptRecipient::gpgKey() const
Returns the GPG key for this recipient.
QByteArray AutocryptRecipient::gpgKeydata() const
Returns the GPG key data as a byte array.
bool AutocryptRecipient::hasChanged() const
Returns whether the recipient information has changed.
QDateTime AutocryptRecipient::last_seen() const
Returns the last time the recipient was seen.
bool AutocryptRecipient::prefer_encrypt() const
Returns whether the recipient prefers encryption.
void AutocryptRecipient::setChangedFlag(bool changed)
Sets the changed flag for the recipient.
changed Whether the recipient has changed.
QByteArray AutocryptRecipient::toJson(QJsonDocument::JsonFormat format) const
Converts the recipient information to JSON format.
format The JSON format to use.
void AutocryptRecipient::updateFromGossip(const MessageCore::HeaderMixupNodeHelper &mixup, const KMime::Headers::Base *header)
Updates the recipient information from a gossip header.
mixup The header mixup helper to extract information from. header The gossip header to process.
void AutocryptRecipient::updateFromMessage(const MessageCore::HeaderMixupNodeHelper &mixup, const KMime::Headers::Base *header)
Updates the recipient information from a message.
mixup The header mixup helper to extract information from. header The autocrypt header to process.