diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-06-06 09:51:40 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-06-07 19:47:52 -0700 |
commit | dd821497263f7d95ed5e7fae759004a966b4a46f (patch) | |
tree | b2dab8dde194a0e24be5358d1193a964b90a9483 /mobile-widgets/qmlmanager.h | |
parent | 8b167c14ad021e9835519ecd04b23ae6a9219a4b (diff) | |
download | subsurface-dd821497263f7d95ed5e7fae759004a966b4a46f.tar.gz |
mobile: make list of local cloud cache directories available
This way QML can show those to the user.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qmlmanager.h')
-rw-r--r-- | mobile-widgets/qmlmanager.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h index fd353cb76..1e932e451 100644 --- a/mobile-widgets/qmlmanager.h +++ b/mobile-widgets/qmlmanager.h @@ -40,6 +40,7 @@ class QMLManager : public QObject { Q_PROPERTY(QStringList divemasterList READ divemasterList NOTIFY divemasterListChanged) Q_PROPERTY(QStringList locationList READ locationList NOTIFY locationListChanged) Q_PROPERTY(QStringList cylinderInit READ cylinderInit CONSTANT) + Q_PROPERTY(QStringList cloudCacheList READ cloudCacheList NOTIFY cloudCacheListChanged) Q_PROPERTY(QString progressMessage MEMBER m_progressMessage WRITE setProgressMessage NOTIFY progressMessageChanged) Q_PROPERTY(bool btEnabled MEMBER m_btEnabled WRITE setBtEnabled NOTIFY btEnabledChanged) @@ -161,6 +162,7 @@ public: QStringList divemasterList() const; QStringList locationList() const; QStringList cylinderInit() const; + QStringList cloudCacheList() const; Q_INVOKABLE void setStatusbarColor(QColor color); void btHostModeChange(QBluetoothLocalDevice::HostMode state); QObject *qmlWindow; @@ -303,6 +305,7 @@ signals: void buddyListChanged(); void divemasterListChanged(); void locationListChanged(); + void cloudCacheListChanged(); void waitingForPositionChanged(); void pluggedInDeviceNameChanged(); void showNonDiveComputersChanged(); @@ -316,7 +319,6 @@ signals: void uploadFinish(bool success, const QString &text); void uploadProgress(qreal percentage); - private slots: void uploadFinishSlot(bool success, const QString &text, const QByteArray &html); }; |