diff options
Diffstat (limited to 'kexi/kexidb/fieldlist.h')
-rw-r--r-- | kexi/kexidb/fieldlist.h | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/kexi/kexidb/fieldlist.h b/kexi/kexidb/fieldlist.h index fd47459e..c5f28d5b 100644 --- a/kexi/kexidb/fieldlist.h +++ b/kexi/kexidb/fieldlist.h @@ -20,9 +20,9 @@ #ifndef KEXIDB_FIELDLIST_H #define KEXIDB_FIELDLIST_H -#include <qvaluelist.h> -#include <qdict.h> -#include <qstring.h> +#include <tqvaluelist.h> +#include <tqdict.h> +#include <tqstring.h> #include <kexidb/field.h> #include <kexidb/driver.h> @@ -76,17 +76,17 @@ class KEXI_DB_EXPORT FieldList inline Field* field(uint id) { return (id < m_fields.count()) ? m_fields.at(id) : 0; } /*! \return field with name \a name or NULL if there is no such a field. */ - virtual Field* field(const QString& name); + virtual Field* field(const TQString& name); /*! \return true if this list contains given \a field. */ - inline bool hasField(const Field* field) { return m_fields.findRef(field)!=-1; } + inline bool hasField(const Field* field) { return m_fields.tqfindRef(field)!=-1; } /*! \return first occurrence of \a field in the list or -1 if this list does not contain this field. */ - inline int indexOf(const Field* field) { return m_fields.findRef(field); } + inline int indexOf(const Field* field) { return m_fields.tqfindRef(field); } /*! \return list of field names for this list. */ - QStringList names() const; + TQStringList names() const; Field::ListIterator fieldsIterator() const { return Field::ListIterator(m_fields); } @@ -102,40 +102,40 @@ class KEXI_DB_EXPORT FieldList virtual void clear(); /*! \return String for debugging purposes. */ - virtual QString debugString(); + virtual TQString debugString(); /*! Shows debug information about all fields in the list. */ void debug(); /*! Creates and returns a list that contain fields selected by name. At least one field (exising on this list) should be selected, otherwise 0 is - returned. Returned FieldList object is not owned by any parent (so you need + returned. Returned FieldList object is not owned by any tqparent (so you need to destroy yourself) and Field objects included in it are not owned by it (but still as before, by 'this' object). Returned list can be usable e.g. as argument for Connection::insertRecord(). 0 is returned if at least one name cannot be found. */ - FieldList* subList(const QString& n1, const QString& n2 = QString::null, - const QString& n3 = QString::null, const QString& n4 = QString::null, - const QString& n5 = QString::null, const QString& n6 = QString::null, - const QString& n7 = QString::null, const QString& n8 = QString::null, - const QString& n9 = QString::null, const QString& n10 = QString::null, - const QString& n11 = QString::null, const QString& n12 = QString::null, - const QString& n13 = QString::null, const QString& n14 = QString::null, - const QString& n15 = QString::null, const QString& n16 = QString::null, - const QString& n17 = QString::null, const QString& n18 = QString::null + FieldList* subList(const TQString& n1, const TQString& n2 = TQString(), + const TQString& n3 = TQString(), const TQString& n4 = TQString(), + const TQString& n5 = TQString(), const TQString& n6 = TQString(), + const TQString& n7 = TQString(), const TQString& n8 = TQString(), + const TQString& n9 = TQString(), const TQString& n10 = TQString(), + const TQString& n11 = TQString(), const TQString& n12 = TQString(), + const TQString& n13 = TQString(), const TQString& n14 = TQString(), + const TQString& n15 = TQString(), const TQString& n16 = TQString(), + const TQString& n17 = TQString(), const TQString& n18 = TQString() ); - /*! Like above, but with a QStringList */ - FieldList* subList(const QStringList& list); + /*! Like above, but with a TQStringList */ + FieldList* subList(const TQStringList& list); /*! Like above, but with a list of field indices */ - FieldList* subList(const QValueList<uint>& list); + FieldList* subList(const TQValueList<uint>& list); /*! \return a string that is a result of all field names concatenated and with \a separator. This is usable e.g. as argument like "field1,field2" for "INSERT INTO (xxx) ..". The result of this method is effectively cached, - and it is invalidated when set of fields changes (e.g. using clear() + and it is tqinvalidated when set of fields changes (e.g. using clear() or addField()). \a tableAlias, if provided is prepended to each field, so the resulting names will be in form tableAlias.fieldName. This option is used for building @@ -143,31 +143,31 @@ class KEXI_DB_EXPORT FieldList See @ref Connection::selectStatement() for example use. \a drvEscaping can be used to alter default escaping type. */ - QString sqlFieldsList(Driver *driver, const QString& separator = QString::fromLatin1(","), - const QString& tableAlias = QString::null, + TQString sqlFieldsList(Driver *driver, const TQString& separator = TQString::tqfromLatin1(","), + const TQString& tableAlias = TQString(), int drvEscaping = Driver::EscapeDriver|Driver::EscapeAsNecessary); /*! Like above, but this is convenient static function, so you can pass any \a list here. */ - static QString sqlFieldsList(Field::List* list, Driver *driver, - const QString& separator = QString::fromLatin1(","), const QString& tableAlias = QString::null, + static TQString sqlFieldsList(Field::List* list, Driver *driver, + const TQString& separator = TQString::tqfromLatin1(","), const TQString& tableAlias = TQString(), int drvEscaping = Driver::EscapeDriver|Driver::EscapeAsNecessary); /*! @internal Renames field \a oldName to \a newName. Do not use this for physical renaming columns. Use AlterTableHandler instead. */ - void renameField(const QString& oldName, const QString& newName); + void renameField(const TQString& oldName, const TQString& newName); /*! @internal - \overload void renameField(const QString& oldName, const QString& newName) */ - void renameField(KexiDB::Field *field, const QString& newName); + \overload void renameField(const TQString& oldName, const TQString& newName) */ + void renameField(KexiDB::Field *field, const TQString& newName); protected: Field::List m_fields; - QDict<Field> m_fields_by_name; //!< Fields collected by name. Not used by QuerySchema. + TQDict<Field> m_fields_by_name; //!< Fields collected by name. Not used by QuerySchema. Field::List *m_autoinc_fields; private: //! cached - QString m_sqlFields; + TQString m_sqlFields; }; } //namespace KexiDB |