kexi

record.h
1/* This file is part of the KDE project
2 Copyright (C) 2003 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_RECORD_H
21#define KEXIDB_RECORD_H
22
23#include <tqvaluelist.h>
24#include <tqstring.h>
25
26#include <kexidb/field.h>
27
28namespace KexiDB {
29
33class KEXI_DB_EXPORT Record {
34public:
35 Record(const TQString & name);
36
37//TODO.............
38 Table();
39 ~Table();
40 const TQString& name() const;
41 void setName(const TQString& name);
42 unsigned int fieldCount() const;
43 KexiDB::Field field(unsigned int id) const;
44 TQStringList primaryKeys() const;
45 bool hasPrimaryKeys() const;
46//js void addField(KexiDB::Field field);
47//js void addPrimaryKey(const TQString& key);
48private:
49//js TQStringList m_primaryKeys;
50 TQValueList<Field> m_fields;
51 TQString m_name;
52 Connection* m_conn;
53};
54
55
56/*
57class KexiDBTableFields: public TQValueList<KexiDBField> {
58public:
59 KexiDBTable(const TQString & name);
60 ~KexiDBTable();
61 void addField(KexiDBField);
62// const TQString& tableName() const;
63
64private:
65// TQString m_tableName;
66};
67*/
68
69} //namespace KexiDB
70
71#endif
Provides database connection, allowing queries and data modification.
Definition connection.h:62
Meta-data for a field.
Definition field.h:73
High-level database connectivity library with database backend drivers.
KEXI_DB_EXPORT int fieldCount(TableOrQuerySchema &tableOrQuery)