Files
sqlitebrowser/src/RemoteDock.h
Martin Kleusberg 3e4f3fc3d2 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.
2017-03-18 20:40:59 +01:00

36 lines
512 B
C++

#ifndef REMOTEDOCK_H
#define REMOTEDOCK_H
#include <QDialog>
class RemoteDatabase;
class RemoteModel;
class MainWindow;
namespace Ui {
class RemoteDock;
}
class RemoteDock : public QDialog
{
Q_OBJECT
public:
explicit RemoteDock(MainWindow* parent);
~RemoteDock();
void reloadSettings();
private slots:
void setNewIdentity();
void fetchDatabase(const QModelIndex& idx);
private:
Ui::RemoteDock* ui;
RemoteDatabase& remoteDatabase;
RemoteModel* remoteModel;
};
#endif