Changeset View
Changeset View
Standalone View
Standalone View
examples/KReportExampleDataSource.h
Show All 15 Lines | 1 | /* This file is part of the KDE project | |||
---|---|---|---|---|---|
16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
17 | Boston, MA 02110-1301, USA. | 17 | Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #ifndef KREPORTEXAMPLEDATA_H | 20 | #ifndef KREPORTEXAMPLEDATA_H | ||
21 | #define KREPORTEXAMPLEDATA_H | 21 | #define KREPORTEXAMPLEDATA_H | ||
22 | 22 | | |||
23 | #include <KReportDataSource> | 23 | #include <KReportDataSource> | ||
24 | #include <KReportScriptSource> | ||||
24 | #include <QVariant> | 25 | #include <QVariant> | ||
25 | #include <QStringList> | 26 | #include <QStringList> | ||
26 | #include <QList> | 27 | #include <QList> | ||
27 | 28 | | |||
28 | class KReportExampleDataSource : public KReportDataSource | 29 | class KReportExampleDataSource : public KReportDataSource, public KReportScriptSource | ||
29 | { | 30 | { | ||
30 | public: | 31 | public: | ||
31 | KReportExampleDataSource(); | 32 | KReportExampleDataSource(); | ||
32 | ~KReportExampleDataSource() override; | 33 | ~KReportExampleDataSource() override; | ||
33 | QVariant value(const QString &field) const override; | 34 | QVariant value(const QString &field) const override; | ||
34 | QVariant value(int) const override; | 35 | QVariant value(int) const override; | ||
35 | QStringList fieldNames() const override; | 36 | QStringList fieldNames() const override; | ||
36 | QStringList fieldKeys() const override; | 37 | QStringList fieldKeys() const override; | ||
Show All 35 Lines |