diff options
Diffstat (limited to 'pica-client/nodes.h')
| -rw-r--r-- | pica-client/nodes.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pica-client/nodes.h b/pica-client/nodes.h index 63b09a8..2cd2c1e 100644 --- a/pica-client/nodes.h +++ b/pica-client/nodes.h @@ -31,7 +31,12 @@ public: quint16 port; }; - Nodes(QString storage); + // connectionName selects which QSqlDatabase connection to use (see + // QSqlDatabase::database()). A connection can only be used from the + // thread that created it, so callers running on a thread other than + // the GUI thread must pass the name of a connection opened on their + // own thread. Empty (the default) uses Qt's default connection. + Nodes(QString storage, QString connectionName = QString()); void Add(NodeRecord &n); void Delete(NodeRecord &n); QList<NodeRecord> GetNodes(); |
