Add account / device security settings page

This commit is contained in:
Tobias Fella
2023-10-30 20:20:55 +01:00
parent 4033f07272
commit 8af20885ab
5 changed files with 71 additions and 0 deletions

View File

@@ -23,6 +23,8 @@ class NeoChatConnection : public Quotient::Connection
* Set to an empty string to remove the label.
*/
Q_PROPERTY(QString label READ label WRITE setLabel NOTIFY labelChanged)
Q_PROPERTY(QString deviceKey READ deviceKey CONSTANT)
Q_PROPERTY(QString encryptionKey READ encryptionKey CONSTANT)
public:
NeoChatConnection(QObject *parent = nullptr);
@@ -68,6 +70,9 @@ public:
*/
Q_INVOKABLE void openOrCreateDirectChat(Quotient::User *user);
QString deviceKey() const;
QString encryptionKey() const;
Q_SIGNALS:
void labelChanged();
};