Spectral/matrix/imageproviderconnection.h

31 lines
742 B
C
Raw Normal View History

2018-07-07 11:06:13 +00:00
#ifndef IMAGEPROVIDERCONNECTION_H
#define IMAGEPROVIDERCONNECTION_H
#include <QObject>
#include "connection.h"
2018-07-07 11:06:13 +00:00
2018-07-09 02:45:26 +00:00
class ImageProviderConnection : public QObject {
Q_OBJECT
Q_PROPERTY(QMatrixClient::Connection* connection READ getConnection WRITE
setConnection NOTIFY connectionChanged)
public:
explicit ImageProviderConnection(QObject* parent = nullptr);
~ImageProviderConnection();
QMatrixClient::Connection* getConnection() { return m_connection; }
void setConnection(QMatrixClient::Connection* connection) {
emit connectionChanged();
m_connection = connection;
}
private:
QMatrixClient::Connection* m_connection;
signals:
void connectionChanged();
2018-07-07 11:06:13 +00:00
};
2018-07-09 02:45:26 +00:00
#endif // IMAGEPROVIDERCONNECTION_H