kexi

queryschemaparameter.h
1/* This file is part of the KDE project
2 Copyright (C) 2006 Jaroslaw Staniek <js@iidea.pl>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20#ifndef KEXIDB_QUERYSCHEMAPARAMETER_H
21#define KEXIDB_QUERYSCHEMAPARAMETER_H
22
23#include "queryschema.h"
24
25namespace KexiDB
26{
27
29class KEXI_DB_EXPORT QuerySchemaParameter
30{
31 public:
34
35 TQString debugString() const;
36
38 TQString message;
39};
40
41typedef TQValueList<QuerySchemaParameter> QuerySchemaParameterList;
42typedef TQValueList<QuerySchemaParameter>::Iterator QuerySchemaParameterListIterator;
43typedef TQValueList<QuerySchemaParameter>::ConstIterator QuerySchemaParameterListConstIterator;
44
46KEXI_DB_EXPORT void debug(const QuerySchemaParameterList& list);
47
52{
53 public:
54 QuerySchemaParameterValueListIterator(const Driver& driver, const TQValueList<TQVariant>& params);
56
58 TQVariant getPreviousValue();
59
61 TQString getPreviousValueAsString(Field::Type type);
62 protected:
63 class Private;
64 Private * const d;
65};
66
67} //namespace KexiDB
68
69#endif
Generic database abstraction.
Definition driver.h:67
An iteratof for a list of values of query schema parameters providing Allows to iterate over paramete...
A single parameter of a query schema.
Field::Type type
A datatype of the parameter.
TQString message
A user-visible message that will be displayed to ask for value of the parameter.
High-level database connectivity library with database backend drivers.
KEXI_DB_EXPORT void debug(const QuerySchemaParameterList &list)
Shows debug information for list.