dbhub: Add remote dock with directory browsing support

This adds a new dock to the main window that contains all the remote
functionality (or is supposed to contain it all in the future).

It also adds a directory browsing feature which allows you to browse
through the folders and files on the dbhub server.

By double clicking a database you can download and open it. The Open
Remote menu action isn't needed anymore and has been removed.

This also fixes an issue with pushing databases where, after sending the
file is completed, the save dialog was opened.

Note that this is still WIP and is far from polished.
This commit is contained in:
Martin Kleusberg
2017-03-18 20:40:59 +01:00
parent dc3550ee6a
commit 3e4f3fc3d2
16 changed files with 758 additions and 49 deletions

View File

@@ -24,10 +24,11 @@ public:
const QList<QSslCertificate>& caCertificates() const;
const QMap<QString, QSslCertificate>& clientCertificates() const { return m_clientCertFiles; }
void fetchDatabase(const QString& url, const QString& clientCert);
void pushDatabase(const QString& filename, const QString& url, const QString& clientCert);
void fetch(const QString& url, bool isDatabase, const QString& clientCert, QVariant userdata = QVariant());
void push(const QString& filename, const QString& url, const QString& clientCert);
signals:
void gotDirList(QString json, QVariant userdata);
void openFile(QString path);
private: