Sorry this is a huge commit, this actually includes a ton of stuff. Text color is now readable, multiple accounts are supported alongside end-to-end encryption but no cross-signing yet :-) There's also a whole lot of other small changes, such as choosing the server you want to request a room directory from.
25 lines
496 B
C++
Executable file
25 lines
496 B
C++
Executable file
#pragma once
|
|
|
|
#include <QObject>
|
|
#include <vector>
|
|
#include <QQmlContext>
|
|
|
|
class MatrixCore;
|
|
|
|
class AppCore : public QObject {
|
|
Q_OBJECT
|
|
Q_PROPERTY(QVariantList accounts READ getAccounts NOTIFY accountChange)
|
|
public:
|
|
Q_INVOKABLE void addAccount(QString profileName = "");
|
|
|
|
Q_INVOKABLE void switchAccount(QString profileName);
|
|
|
|
Q_INVOKABLE QVariantList getAccounts();
|
|
|
|
QList<MatrixCore*> accounts;
|
|
|
|
QQmlContext* context = nullptr;
|
|
|
|
signals:
|
|
void accountChange();
|
|
};
|