kexiqueryview.h
1/* This file is part of the KDE project
2 Copyright (C) 2004 Lucijan Busch <lucijan@kde.org>
3 Copyright (C) 2004, 2006 Jaroslaw Staniek <js@iidea.pl>
4
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this program; see the file COPYING. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19*/
20
21#ifndef KEXIQUERYVIEW_H
22#define KEXIQUERYVIEW_H
23
24#include <kexidatatable.h>
25
26namespace KexiDB
27{
28 class QuerySchema;
29}
30class KexiMainWindow;
31
32class KexiQueryView : public KexiDataTable
33{
34 TQ_OBJECT
35
36
37 public:
38 KexiQueryView(KexiMainWindow *win, TQWidget *parent, const char *name=0);
39 ~KexiQueryView();
40
41 protected:
42 virtual tristate afterSwitchFrom(int mode);
43
44 virtual KexiDB::SchemaData* storeNewData(const KexiDB::SchemaData& sdata, bool &cancel);
45
46 virtual tristate storeData(bool dontAsk = false);
47
52 tristate executeQuery(KexiDB::QuerySchema *query);
53
54 class Private;
55 Private *d;
56};
57
58#endif
59
KexiDB::QuerySchema provides information about database query.
Provides a data-driven (record-based) tabular view.
Kexi's main window interface This interface is implemented by KexiMainWindowImpl class.
virtual tristate afterSwitchFrom(int mode)
virtual KexiDB::SchemaData * storeNewData(const KexiDB::SchemaData &sdata, bool &cancel)
virtual tristate storeData(bool dontAsk=false)
3-state logical type with three values: true, false and cancelled and convenient operators.
Definition tristate.h:100
High-level database connectivity library with database backend drivers.