KDb
KDbTableSchemaChangeListener.cpp
46 QSet<KDbTableSchemaChangeListener*>* listeners = conn->d->tableSchemaChangeListeners.value(table);
51 localDebug() << "listener=" << listener << listener->name() << "table=" << table << table->name();
83 localDebug() << "listener=" << listener << (listener ? listener->name() : QString::fromLatin1("<all>"))
121 for (QSet<KDbTableSchemaChangeListener*> *listeners : conn->d->queryTableSchemaChangeListeners) {
269 //! Inserts to @a *result all listeners that listen to changes in table @a table and other tables
306 //! Inserts to @a *result all listeners that listen to changes in query @a table and other tables
315 QSet<KDbTableSchemaChangeListener*>* set = conn->d->queryTableSchemaChangeListeners.value(query);
541 QSet<KDbTableSchemaChangeListener*> toClose(listeners(conn, table).toSet().subtract(except.toSet()));
564 QSet<KDbTableSchemaChangeListener*> toClose(listeners(conn, query).toSet().subtract(except.toSet()));
Provides database connection, allowing queries and data modification.
Definition KDbConnection.h:52
KDbTableSchema * tableSchema(int tableId)
Definition KDbConnection.cpp:2919
KDbQuerySchema * querySchema(int queryId)
Definition KDbConnection.cpp:3021
Provides information about lookup field's setup.
Definition KDbLookupFieldSchema.h:124
KDbQuerySchema provides information about database query.
Definition KDbQuerySchema.h:46
An interface allowing to listen for table schema changes.
Definition KDbTableSchemaChangeListener.h:37
virtual tristate closeListener()=0
Closes listening object so it will be deleted and thus no longer use a conflicting table schema.
QString name() const
Definition KDbTableSchemaChangeListener.cpp:361
static tristate closeListeners(KDbConnection *conn, const KDbTableSchema *table, const QList< KDbTableSchemaChangeListener * > &except=QList< KDbTableSchemaChangeListener * >())
Closes all table schema listeners for table schema table except for the ones from the except list.
Definition KDbTableSchemaChangeListener.cpp:530
static void registerForChanges(KDbConnection *conn, KDbTableSchemaChangeListener *listener, const KDbTableSchema *table)
Registers listener for receiving (listening) information about changes in table schema table and all ...
Definition KDbTableSchemaChangeListener.cpp:372
static void unregisterForChanges(KDbConnection *conn, KDbTableSchemaChangeListener *listener, const KDbTableSchema *table)
Unregisters listener for receiving (listening) information about changes in table schema table.
Definition KDbTableSchemaChangeListener.cpp:412
static QList< KDbTableSchemaChangeListener * > listeners(KDbConnection *conn, const KDbTableSchema *table)
Definition KDbTableSchemaChangeListener.cpp:496
void setName(const QString &name)
Definition KDbTableSchemaChangeListener.cpp:366
Definition KDbTableSchema.h:38
QVector< KDbLookupFieldSchema * > lookupFields() const
Definition KDbTableSchema.cpp:406
3-state logical type with three values: true, false and cancelled and convenient operators.
Definition KDbTristate.h:101
KSERVICE_EXPORT KService::List query(FilterFunc filterFunc)
void clear()
bool contains(const QSet< T > &other) const const
iterator insert(const T &value)
bool remove(const T &value)
QSet< T > & unite(const QSet< T > &other)
QList< T > values() const const
QString fromLatin1(QByteArrayView str)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.