forked from blue/squawk
beginning of keys setting
This commit is contained in:
parent
75554c7451
commit
8f5325b291
11 changed files with 385 additions and 323 deletions
|
@ -114,6 +114,9 @@ void UI::Info::onButtonBoxAccepted() {
|
|||
contactGeneral->fillVCard(card);
|
||||
contactContacts->fillVCard(card);
|
||||
card.setDescription(description->description());
|
||||
#ifdef WITH_OMEMO
|
||||
omemo->fillData(info.getActiveKeysRef());
|
||||
#endif
|
||||
emit saveInfo(info);
|
||||
emit close();
|
||||
}
|
||||
|
@ -161,7 +164,8 @@ void UI::Info::initializeDescription(const QString& descr, bool editable) {
|
|||
}
|
||||
|
||||
QString UI::Info::getJid() const {
|
||||
return jid;}
|
||||
return jid;
|
||||
}
|
||||
|
||||
void UI::Info::clear() {
|
||||
if (contactGeneral != nullptr) {
|
||||
|
|
|
@ -39,8 +39,7 @@
|
|||
|
||||
|
||||
namespace UI {
|
||||
namespace Ui
|
||||
{
|
||||
namespace Ui {
|
||||
class Info;
|
||||
}
|
||||
|
||||
|
|
|
@ -88,6 +88,12 @@ void UI::Omemo::setData(const std::list<Shared::KeyInfo>& keys) {
|
|||
deviceKeyVisibility(deviceKeyModel.rowCount() > 0);
|
||||
}
|
||||
|
||||
void UI::Omemo::fillData(std::list<Shared::KeyInfo>& out) {
|
||||
deviceKeyModel.finalKeys(out);
|
||||
keysModel.finalKeys(out);
|
||||
unusedKeysModel.finalKeys(out);
|
||||
}
|
||||
|
||||
const QString UI::Omemo::title() const {
|
||||
return m_ui->OMEMOHeading->text();
|
||||
}
|
||||
|
|
|
@ -41,6 +41,7 @@ public:
|
|||
~Omemo();
|
||||
|
||||
void setData(const std::list<Shared::KeyInfo>& keys);
|
||||
void fillData(std::list<Shared::KeyInfo>& out);
|
||||
const QString title() const;
|
||||
|
||||
private slots:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue