Changeset View
Changeset View
Standalone View
Standalone View
src/renderer/KReportOneRecordData_p.h
Show All 16 Lines | |||||
17 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
18 | * Boston, MA 02110-1301, USA. | 18 | * Boston, MA 02110-1301, USA. | ||
19 | * | 19 | * | ||
20 | */ | 20 | */ | ||
21 | 21 | | |||
22 | #ifndef KREPORTONERECORDDATA_H | 22 | #ifndef KREPORTONERECORDDATA_H | ||
23 | #define KREPORTONERECORDDATA_H | 23 | #define KREPORTONERECORDDATA_H | ||
24 | 24 | | |||
25 | #include <KReportData.h> | 25 | #include <KReportDataSource.h> | ||
26 | 26 | | |||
27 | namespace KReportPrivate { | 27 | namespace KReportPrivate { | ||
28 | /** | 28 | /** | ||
29 | * @brief A Report Data provide which returns one record | 29 | * @brief A Report Data provide which returns one record | ||
staniek: Data -> data source | |||||
30 | * | 30 | * | ||
31 | * When no other data source is specified the pre-renderer | 31 | * When no other data source is specified the pre-renderer | ||
32 | * will create this as its data source. This will return | 32 | * will create this as its data source. This will return | ||
33 | * one record of data, and no fields. Useful for creating | 33 | * one record of data, and no fields. Useful for creating | ||
34 | * a report with a static page of data, or a report page | 34 | * a report with a static page of data, or a report page | ||
35 | * generated from a script only. | 35 | * generated from a script only. | ||
36 | */ | 36 | */ | ||
37 | class OneRecordData : public KReportData | 37 | class OneRecordData : public KReportDataSource | ||
staniek: [ ] -> OneRecordDataSource
[ ] and the files rename accordingly
| |||||
38 | { | 38 | { | ||
39 | public: | 39 | public: | ||
40 | OneRecordData(); | 40 | OneRecordData(); | ||
41 | ~OneRecordData(); | 41 | ~OneRecordData(); | ||
42 | virtual QVariant value(const QString& field) const; | 42 | virtual QVariant value(const QString& field) const; | ||
43 | virtual QVariant value(unsigned int fieldNum) const; | 43 | virtual QVariant value(int fieldNum) const; | ||
44 | virtual QStringList fieldNames() const; | 44 | virtual QStringList fieldNames() const; | ||
45 | virtual int fieldNumber(const QString& field) const; | 45 | virtual int fieldNumber(const QString& field) const; | ||
46 | virtual qint64 recordCount() const; | 46 | virtual qint64 recordCount() const; | ||
47 | virtual qint64 at() const; | 47 | virtual qint64 at() const; | ||
48 | virtual bool moveLast(); | 48 | virtual bool moveLast(); | ||
49 | virtual bool moveFirst(); | 49 | virtual bool moveFirst(); | ||
50 | virtual bool movePrevious(); | 50 | virtual bool movePrevious(); | ||
51 | virtual bool moveNext(); | 51 | virtual bool moveNext(); | ||
52 | virtual bool close(); | 52 | virtual bool close(); | ||
53 | virtual bool open(); | 53 | virtual bool open(); | ||
54 | virtual QStringList dataSourceNames() const; | ||||
54 | }; | 55 | }; | ||
55 | } | 56 | } | ||
56 | 57 | | |||
57 | #endif // KREPORTONERECORDDATA_H | 58 | #endif // KREPORTONERECORDDATA_H |
Data -> data source