kexi

schemadata.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_SCHEMADATA_H
21#define KEXIDB_SCHEMADATA_H
22
23#include <tqvaluelist.h>
24#include <tqstring.h>
25
26#include <kexidb/global.h>
27#include <kexidb/field.h>
28
29namespace KexiDB {
30
36class KEXI_DB_EXPORT SchemaData
37{
38 public:
40 virtual ~SchemaData();
41
42 int type() const { return m_type; }
43 int id() const { return m_id; }
44 TQString name() const { return m_name; }
46 TQString objectName() const { return m_name; }
47 void setName(const TQString& n) { m_name=n; }
48 TQString caption() const { return m_caption; }
49 void setCaption(const TQString& c) { m_caption=c; }
50 TQString description() const { return m_desc; }
51 void setDescription(const TQString& desc) { m_desc=desc; }
52
54 virtual TQString schemaDataDebugString() const;
55
71 virtual bool isNative() const { return m_native; }
72
73 /* Sets native flag */
74 virtual void setNative(bool set) { m_native=set; }
75
76 protected:
78 void clear();
79
80 int m_type;
81 int m_id;
82 TQString m_name;
83 TQString m_caption;
84 TQString m_desc;
85 bool m_native : 1;
86
87 friend class Connection;
88};
89
90} //namespace KexiDB
91
92#endif
virtual bool isNative() const
Definition schemadata.h:71
TQString objectName() const
Definition schemadata.h:46
High-level database connectivity library with database backend drivers.
@ UnknownObjectType
helper
Definition global.h:148