kexi

kexidatatableview.h
1/* This file is part of the KDE project
2 Copyright (C) 2003 Lucijan Busch <lucijan@kde.org>
3 Copyright (C) 2003 Joseph Wenninger <jowenn@kde.org>
4 Copyright (C) 2003-2004 Jaroslaw Staniek <js@iidea.pl>
5
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
15
16 You should have received a copy of the GNU Library General Public License
17 along with this program; see the file COPYING. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
20 */
21
22#ifndef KEXIDATATABLEVIEW_H
23#define KEXIDATATABLEVIEW_H
24
25#include "kexitableview.h"
26
27class KexiTableItem;
28class TQVariant;
29class KXMLGUIClient;
30
31namespace KexiDB {
32 class Cursor;
33}
34
38class KEXIDATATABLE_EXPORT KexiDataTableView : public KexiTableView
39{
40 TQ_OBJECT
41
42
43 public:
47 KexiDataTableView(TQWidget *parent, const char *name =0);
48
55 KexiDataTableView(TQWidget *parent, const char *name, KexiDB::Cursor *cursor);
56
58
59// virtual void initActions(TDEActionCollection *col);
60
64
67 KexiDB::Cursor *cursor() { return m_cursor; }
68
73 int recordCount() { return m_data->count(); }
74
75 #ifndef KEXI_NO_PRINT
76// virtual void print(KPrinter &printer);
77 #endif
78
79 protected:
80 void init();
81
83// virtual bool beforeDeleteItem(KexiTableItem *item);
84
85 protected slots:
86// void slotClearData();
87
88 private:
89 //db stuff
90 KexiDB::Cursor *m_cursor;
91
92// TQMap<KexiDBUpdateRecord*,KexiTableItem*> m_insertMapping;
93};
94
95#endif
Provides database cursor functionality.
Definition cursor.h:67
KexiTableViewData * m_data
data structure displayed for this object
KexiDataTableView(TQWidget *parent, const char *name=0)
creates a blank widget
KexiDB::Cursor * cursor()
bool setData(KexiDB::Cursor *cursor)
High-level database connectivity library with database backend drivers.