kexi

KexiDB::LookupFieldSchema::RowSource Class Reference

#include <lookupfieldschema.h>

List of all members.


Detailed Description

Row source information that can be specified for the lookup field schema.

Definition at line 59 of file lookupfieldschema.h.


Public Types

enum  Type {
  NoType, Table, Query, SQLStatement,
  ValueList, FieldList
}

Public Member Functions

 RowSource ()
 ~RowSource ()
Type type () const
void setType (Type type)
QString typeName () const
void setTypeByName (const QString &typeName)
QString name () const
void setName (const QString &name)
QStringList values () const
void setValues (const QStringList &values)
QString debugString () const
void debug () const

Member Enumeration Documentation

Row source type.

Enumerator:
NoType  used for invalid schema
Table  table as lookup row source
Query  named query as lookup row source
SQLStatement  anonymous query as lookup row source
ValueList  a fixed list of values as lookup row source
FieldList  a list of column names from a table/query will be displayed

Definition at line 62 of file lookupfieldschema.h.


Member Function Documentation

Type KexiDB::LookupFieldSchema::RowSource::type (  )  const [inline]

Returns:
row source type: table, query, anonymous; in the future it will be also fixed value list and field list. The latter is basically a list of column names of a table/query, "Field List" in MSA.

Definition at line 77 of file lookupfieldschema.h.

void KexiDB::LookupFieldSchema::RowSource::setType ( Type  type  )  [inline]

Sets row source type to type.

Definition at line 80 of file lookupfieldschema.h.

QString LookupFieldSchema::RowSource::typeName (  )  const

Returns:
row source type name.
See also:
setTypeByName()

Definition at line 48 of file lookupfieldschema.cpp.

void LookupFieldSchema::RowSource::setTypeByName ( const QString &  typeName  ) 

Sets row source type by name using typeName. Accepted (cast sensitive) names are "table", "query", "sql", "valuelist", "fieldlist". For other value NoType type is set.

Definition at line 61 of file lookupfieldschema.cpp.

QString KexiDB::LookupFieldSchema::RowSource::name (  )  const [inline]

Returns:
a string for row source: table name, query name or anonymous query provided as KEXISQL string. If rowSourceType() is a ValueList, rowSourceValues() should be used instead. If rowSourceType() is a FieldList, rowSource() should return table or query name.

Definition at line 94 of file lookupfieldschema.h.

void LookupFieldSchema::RowSource::setName ( const QString &  name  ) 

Sets row source value.

See also:
value()

Definition at line 41 of file lookupfieldschema.cpp.

QStringList LookupFieldSchema::RowSource::values (  )  const

Returns:
row source values specified if type() is ValueList.

Definition at line 77 of file lookupfieldschema.cpp.

void LookupFieldSchema::RowSource::setValues ( const QStringList &  values  ) 

Sets row source values used if type() is ValueList. Using it clears name (see name()).

Definition at line 82 of file lookupfieldschema.cpp.

QString LookupFieldSchema::RowSource::debugString (  )  const

Returns:
String for debugging purposes.

Definition at line 91 of file lookupfieldschema.cpp.

void LookupFieldSchema::RowSource::debug (  )  const

Shows debug information.

Definition at line 97 of file lookupfieldschema.cpp.


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