forked from blue/squawk
some thoughts about fonts, lastInteraction and label into keyDelegate
This commit is contained in:
parent
2aed8a1209
commit
15fb4bbd62
15 changed files with 166 additions and 171 deletions
|
@ -22,6 +22,7 @@ Shared::KeyInfo::KeyInfo(
|
|||
uint32_t p_id,
|
||||
const QByteArray& p_fingerPrint,
|
||||
const QString& p_label,
|
||||
const QDateTime& p_lastInteraction,
|
||||
Shared::TrustLevel p_trustLevel,
|
||||
Shared::EncryptionProtocol p_protocol,
|
||||
bool p_currentDevice
|
||||
|
@ -29,6 +30,7 @@ Shared::KeyInfo::KeyInfo(
|
|||
id(p_id),
|
||||
fingerPrint(p_fingerPrint),
|
||||
label(p_label),
|
||||
lastInteraction(p_lastInteraction),
|
||||
trustLevel(p_trustLevel),
|
||||
protocol(p_protocol),
|
||||
currentDevice(p_currentDevice)
|
||||
|
@ -39,6 +41,7 @@ Shared::KeyInfo::KeyInfo():
|
|||
id(0),
|
||||
fingerPrint(),
|
||||
label(),
|
||||
lastInteraction(),
|
||||
trustLevel(TrustLevel::undecided),
|
||||
protocol(EncryptionProtocol::omemo),
|
||||
currentDevice(false)
|
||||
|
@ -49,6 +52,7 @@ Shared::KeyInfo::KeyInfo(const Shared::KeyInfo& other):
|
|||
id(other.id),
|
||||
fingerPrint(other.fingerPrint),
|
||||
label(other.label),
|
||||
lastInteraction(other.lastInteraction),
|
||||
trustLevel(other.trustLevel),
|
||||
protocol(other.protocol),
|
||||
currentDevice(other.currentDevice)
|
||||
|
@ -59,6 +63,7 @@ Shared::KeyInfo & Shared::KeyInfo::operator=(const Shared::KeyInfo& other) {
|
|||
id = other.id;
|
||||
fingerPrint = other.fingerPrint;
|
||||
label = other.label;
|
||||
lastInteraction = other.lastInteraction;
|
||||
trustLevel = other.trustLevel;
|
||||
protocol = other.protocol;
|
||||
currentDevice = other.currentDevice;
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
#include <QString>
|
||||
#include <QByteArray>
|
||||
#include <QDateTime>
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
@ -31,9 +32,9 @@ class KeyInfo
|
|||
public:
|
||||
KeyInfo(
|
||||
uint32_t id,
|
||||
const QByteArray&
|
||||
fingerPrint,
|
||||
const QByteArray& fingerPrint,
|
||||
const QString& label,
|
||||
const QDateTime& lastInteraction,
|
||||
TrustLevel trustLevel,
|
||||
EncryptionProtocol protocol = EncryptionProtocol::omemo,
|
||||
bool currentDevice = false
|
||||
|
@ -47,6 +48,7 @@ public:
|
|||
uint32_t id;
|
||||
QByteArray fingerPrint;
|
||||
QString label;
|
||||
QDateTime lastInteraction;
|
||||
TrustLevel trustLevel;
|
||||
EncryptionProtocol protocol;
|
||||
bool currentDevice;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue