Made step to remove ASyncWindow in favour of usage of Future and FutureWatcher.
This should allow concurrency in the plugins to be independent from their container. Contains also some work on the system for registering plugins.
This commit is contained in:
parent
a54a063c13
commit
15bee33076
25 changed files with 327 additions and 52 deletions
|
|
@ -18,7 +18,6 @@
|
|||
|
||||
class PgConstraint;
|
||||
class OpenDatabase;
|
||||
class ASyncWindow;
|
||||
|
||||
/**
|
||||
* @brief The CrudModel class
|
||||
|
|
@ -55,7 +54,7 @@ class ASyncWindow;
|
|||
class CrudModel: public QAbstractTableModel {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit CrudModel(ASyncWindow *async_win);
|
||||
explicit CrudModel(QObject *parent = nullptr);
|
||||
~CrudModel() override;
|
||||
|
||||
void setConfig(std::shared_ptr<OpenDatabase> db, const PgClass &table);
|
||||
|
|
@ -231,8 +230,6 @@ private:
|
|||
};
|
||||
using RowMappingVector = std::vector<RowMapping>;
|
||||
|
||||
|
||||
ASyncWindow * m_asyncWindow;
|
||||
std::shared_ptr<OpenDatabase> m_database;
|
||||
std::optional<PgClass> m_table;
|
||||
std::optional<PgConstraint> m_primaryKey;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue