KexiQueryPart::TempData Class Reference
#include <kexiquerypart.h>
Inheritance diagram for KexiQueryPart::TempData:

Detailed Description
Temporary data kept in memory while switching between Query Dialog's views.
Definition at line 55 of file kexiquerypart.h.
Public Member Functions | |
| TempData (KexiDialogBase *parent, KexiDB::Connection *conn) | |
| virtual | ~TempData () |
| virtual tristate | closeListener () |
| void | clearQuery () |
| void | unregisterForTablesSchemaChanges () |
| void | registerTableSchemaChanges (KexiDB::QuerySchema *q) |
| void | setQuery (KexiDB::QuerySchema *query) |
| KexiDB::QuerySchema * | query () const |
| KexiDB::QuerySchema * | takeQuery () |
| Takes query associated with this data (without deleting) and returns it. | |
Public Attributes | |
| KexiDB::Connection * | conn |
| Connection used for retrieving definition of the query. | |
| bool | queryChangedInPreviousView: 1 |
Protected Attributes | |
| KexiDB::QuerySchema * | m_query |
Constructor & Destructor Documentation
|
||||||||||||
|
Definition at line 216 of file kexiquerypart.cpp. |
|
|
Definition at line 225 of file kexiquerypart.cpp. References conn, and KexiDB::Connection::unregisterForTablesSchemaChanges(). |
Member Function Documentation
|
|
Definition at line 230 of file kexiquerypart.cpp. References KexiDB::QuerySchema::clear(), m_query, and unregisterForTablesSchemaChanges(). Referenced by KexiQueryDesignerGuiEditor::buildSchema(). |
|
|
Closes listening object so it will be deleted and thus no longer use a conflicting table schema. Implements KexiDB::Connection::TableSchemaChangeListenerInterface. Definition at line 254 of file kexiquerypart.cpp. References KexiDialogBase::mainWin(). |
|
|
Definition at line 75 of file kexiquerypart.h. References m_query. Referenced by KexiQueryView::afterSwitchFrom(), KexiQueryDesignerSQLView::afterSwitchFrom(), KexiQueryDesignerSQLView::beforeSwitchTo(), KexiQueryDesignerGuiEditor::buildSchema(), KexiQueryDesignerGuiEditor::storeLayout(), KexiQueryDesignerGuiEditor::storeNewData(), and takeQuery(). |
|
|
Definition at line 243 of file kexiquerypart.cpp. References conn, and KexiDB::Connection::registerForTableSchemaChanges(). Referenced by KexiQueryDesignerGuiEditor::buildSchema(), and KexiQueryPart::loadSchemaData(). |
|
|
Assigns query query for this data. Existing query (available using query()) is deleted but only if it is not owned by parent dialog (i.e. != KexiDialogBase::schemaData()). query can be 0. If query is equal to existing query, nothing is performed. Definition at line 267 of file kexiquerypart.cpp. References m_query. Referenced by KexiQueryDesignerSQLView::afterSwitchFrom(), KexiQueryDesignerSQLView::beforeSwitchTo(), KexiQueryDesignerGuiEditor::buildSchema(), and KexiQueryDesignerGuiEditor::storeNewData(). |
|
|
Takes query associated with this data (without deleting) and returns it. After this call query() == 0 Definition at line 260 of file kexiquerypart.cpp. References m_query, and query(). Referenced by KexiQueryDesignerGuiEditor::storeNewData(). |
|
|
Definition at line 238 of file kexiquerypart.cpp. References conn, and KexiDB::Connection::unregisterForTablesSchemaChanges(). Referenced by clearQuery(). |
Member Data Documentation
|
|
Connection used for retrieving definition of the query.
Definition at line 82 of file kexiquerypart.h. Referenced by registerTableSchemaChanges(), unregisterForTablesSchemaChanges(), and ~TempData(). |
|
|
Definition at line 91 of file kexiquerypart.h. Referenced by clearQuery(), query(), setQuery(), and takeQuery(). |
|
|
true, if query member has changed in previous view. Used on view switching. We're checking this flag to see if we should rebuild internal structure for DesignViewMode of regenerated sql text in TextViewMode after switch from other view. Definition at line 88 of file kexiquerypart.h. Referenced by KexiQueryDesignerSQLView::beforeSwitchTo(), and KexiQueryDesignerGuiEditor::storeNewData(). |
The documentation for this class was generated from the following files:
