Own omemo key display, a bit of CMake clean up

This commit is contained in:
Blue 2023-11-13 19:05:26 -03:00
parent 19835af3cf
commit 00af582287
Signed by untrusted user: blue
GPG key ID: 9B203B252A63EE38
16 changed files with 443 additions and 360 deletions

View file

@ -1,21 +1,22 @@
// Squawk messenger.
// Copyright (C) 2019 Yury Gubich <blue@macaw.me>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
/*
* Squawk messenger.
* Copyright (C) 2019 Yury Gubich <blue@macaw.me>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef VCARD_OMEMO_H
#define VCARD_OMEMO_H
#pragma once
#include <list>
@ -29,8 +30,7 @@
#include "shared/keyinfo.h"
namespace UI {
namespace Ui
{
namespace Ui {
class Omemo;
}
@ -48,14 +48,17 @@ private slots:
private:
void generateMockData();
void unusedVisibility(bool visible);
void deviceKeyVisibility(bool visible);
private:
QScopedPointer<Ui::Omemo> m_ui;
UI::KeyDelegate deviceKeyDelegate;
UI::KeyDelegate keysDelegate;
UI::KeyDelegate unusedKeysDelegate;
Models::Keys deviceKeyModel;
Models::Keys keysModel;
Models::Keys unusedKeysModel;
QMenu* contextMenu;
};
}
#endif // VCARD_OMEMO_H