Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
trinity/include/appcore.h
2022-08-15 21:53:56 -04:00

25 lines
496 B
C++
Executable file

#pragma once
#include <QObject>
#include <QQmlContext>
#include <vector>
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();
};