Commit 4e7c87c5 authored by Sandro Knauß's avatar Sandro Knauß
Browse files

messagecore/autocrypt: Add get parameters for AutocryptRecipient.

parent 29069f2c
......@@ -257,3 +257,57 @@ GpgME::Key AutocryptRecipient::gossipKey() const
const Q_D(AutocryptRecipient);
return ::gpgKey(d->gossip_key);
}
QByteArray AutocryptRecipient::addr() const
{
const Q_D(AutocryptRecipient);
return d->addr;
}
QByteArray AutocryptRecipient::bad_user_agent() const
{
const Q_D(AutocryptRecipient);
return d->bad_user_agent;
}
QDateTime AutocryptRecipient::last_seen() const
{
const Q_D(AutocryptRecipient);
return d->last_seen;
}
QDateTime AutocryptRecipient::autocrypt_timestamp() const
{
const Q_D(AutocryptRecipient);
return d->autocrypt_timestamp;
}
QDateTime AutocryptRecipient::counting_since() const
{
const Q_D(AutocryptRecipient);
return d->counting_since;
}
QDateTime AutocryptRecipient::gossip_timestamp() const
{
const Q_D(AutocryptRecipient);
return d->gossip_timestamp;
}
int AutocryptRecipient::count_have_ach() const
{
const Q_D(AutocryptRecipient);
return d->count_have_ach;
}
int AutocryptRecipient::count_no_ach() const
{
const Q_D(AutocryptRecipient);
return d->count_no_ach;
}
bool AutocryptRecipient::prefer_encrypt() const
{
const Q_D(AutocryptRecipient);
return d->prefer_encrypt;
}
......@@ -52,6 +52,19 @@ public:
bool hasChanged() const;
void setChangedFlag(bool changed);
QByteArray addr() const;
QByteArray bad_user_agent() const;
QDateTime last_seen() const;
QDateTime autocrypt_timestamp() const;
QDateTime counting_since() const;
QDateTime gossip_timestamp() const;
int count_have_ach() const;
int count_no_ach() const;
bool prefer_encrypt() const;
GpgME::Key gpgKey() const;
GpgME::Key gossipKey() const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment