1
0
Fork 0
forked from blue/squawk

started refactoring of the VCard UI

This commit is contained in:
Blue 2023-02-01 18:56:00 +03:00
parent bb304ce774
commit 4af16b75bf
Signed by untrusted user: blue
GPG key ID: 9B203B252A63EE38
32 changed files with 1250 additions and 166 deletions

View file

@ -16,13 +16,25 @@
#include "info.h"
Shared::Info::Info(const QString& p_jid, bool p_editable):
jid(p_jid),
editable(p_editable),
vcard(),
activeKeys(),
inactiveKeys()
{}
Shared::Info::Info():
jid(),
editable(false),
vcard(),
activeKeys(),
inactiveKeys()
{}
Shared::Info::Info(const Shared::Info& other):
jid(other.jid),
editable(other.editable),
vcard(other.vcard),
activeKeys(other.activeKeys),
inactiveKeys(other.inactiveKeys)

View file

@ -33,9 +33,12 @@ namespace Shared {
class Info {
public:
Info();
Info(const QString& jid, bool editable = false);
Info(const Info& other);
~Info();
QString jid;
bool editable;
VCard vcard;
std::list<KeyInfo> activeKeys;
std::list<KeyInfo> inactiveKeys;