Miscellaneous changes. Including a copy action.

This commit is contained in:
Eelke Klein 2017-02-04 11:55:49 +01:00
parent 242f5464df
commit 4a2c6cc396
19 changed files with 147 additions and 43 deletions

View file

@ -6,6 +6,7 @@
#include "expected.h"
class PgsqlDatabaseCatalogue;
class TypeSelectionItemModel;
/** Instances of this class represent a single database on which atleast one
* window is opened. This class is used to track details about that database.
@ -20,6 +21,8 @@ public:
OpenDatabase& operator=(const OpenDatabase &) = delete;
~OpenDatabase();
PgsqlDatabaseCatalogue* getCatalogue();
TypeSelectionItemModel* getTypeSelectionModel();
signals:
public slots:
@ -28,6 +31,8 @@ private:
ConnectionConfig m_config;
PgsqlDatabaseCatalogue *m_catalogue;
TypeSelectionItemModel *m_typeSelectionModel = nullptr;
OpenDatabase(const ConnectionConfig& cfg, QObject *parent = 0);
bool Init();
};