kexi

KexiQueryPart::TempData Class Reference

#include <kexiquerypart.h>

Inheritance diagram for KexiQueryPart::TempData:

KexiDialogTempData KexiDB::Connection::TableSchemaChangeListenerInterface List of all members.

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::QuerySchemaquery () const
KexiDB::QuerySchematakeQuery ()

Public Attributes

KexiDB::Connectionconn
bool queryChangedInPreviousView: 1

Protected Attributes

KexiDB::QuerySchemam_query

Member Function Documentation

tristate KexiQueryPart::TempData::closeListener (  )  [virtual]

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.

void KexiQueryPart::TempData::setQuery ( KexiDB::QuerySchema query  ) 

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.

KexiDB::QuerySchema* KexiQueryPart::TempData::query (  )  const [inline]

Returns:
query associated with this data

Definition at line 75 of file kexiquerypart.h.

KexiDB::QuerySchema * KexiQueryPart::TempData::takeQuery (  ) 

Takes query associated with this data (without deleting) and returns it.

After this call query() == 0

Definition at line 260 of file kexiquerypart.cpp.


Member Data Documentation

Connection used for retrieving definition of the query.

Definition at line 82 of file kexiquerypart.h.

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.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys