Separate different message delegates.
This commit is contained in:
@@ -51,6 +51,10 @@ void Controller::logout() {
|
||||
setIsLogin(false);
|
||||
}
|
||||
|
||||
void Controller::uploadFile(QString filename) {
|
||||
m_connection->uploadFile(filename);
|
||||
}
|
||||
|
||||
void Controller::connected() {
|
||||
qDebug() << "Logged in.";
|
||||
setHomeserver(m_connection->homeserver().toString());
|
||||
|
||||
@@ -32,6 +32,8 @@ class Controller : public QObject {
|
||||
Q_INVOKABLE void loginWithCredentials(QString, QString, QString);
|
||||
Q_INVOKABLE void logout();
|
||||
|
||||
Q_INVOKABLE void uploadFile(QString);
|
||||
|
||||
// All the non-Q_INVOKABLE functions.
|
||||
|
||||
// All the Q_PROPERTYs.
|
||||
|
||||
Reference in New Issue
Block a user