Changeset View
Changeset View
Standalone View
Standalone View
src/renderer/KReportOneRecordDataSource_p.cpp
- This file was moved from src/renderer/KReportOneRecordData_p.cpp.
Show All 13 Lines | |||||
14 | * | 14 | * | ||
15 | * You should have received a copy of the GNU Library General Public License | 15 | * You should have received a copy of the GNU Library General Public License | ||
16 | * along with this library; see the file COPYING.LIB. If not, write to | 16 | * along with this library; see the file COPYING.LIB. If not, write to | ||
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 | #include "KReportOneRecordData_p.h" | 22 | #include "KReportOneRecordDataSource_p.h" | ||
23 | 23 | | |||
24 | namespace KReportPrivate { | 24 | namespace KReportPrivate { | ||
25 | 25 | | |||
26 | OneRecordData::OneRecordData() | 26 | OneRecordDataSource::OneRecordDataSource() | ||
27 | { | 27 | { | ||
28 | } | 28 | } | ||
29 | 29 | | |||
30 | OneRecordData::~OneRecordData() | 30 | OneRecordDataSource::~OneRecordDataSource() | ||
31 | { | 31 | { | ||
32 | 32 | | |||
33 | } | 33 | } | ||
34 | 34 | | |||
35 | QVariant OneRecordData::value(const QString& field) const | 35 | QVariant OneRecordDataSource::value(const QString& field) const | ||
36 | { | 36 | { | ||
37 | Q_UNUSED(field); | 37 | Q_UNUSED(field); | ||
38 | return QVariant(); | 38 | return QVariant(); | ||
39 | } | 39 | } | ||
40 | 40 | | |||
41 | QVariant OneRecordData::value(unsigned int fieldNum) const | 41 | QVariant OneRecordDataSource::value(int fieldNum) const | ||
42 | { | 42 | { | ||
43 | Q_UNUSED(fieldNum); | 43 | Q_UNUSED(fieldNum); | ||
44 | return QVariant(); | 44 | return QVariant(); | ||
45 | } | 45 | } | ||
46 | 46 | | |||
47 | QStringList OneRecordData::fieldNames() const | 47 | QStringList OneRecordDataSource::fieldNames() const | ||
48 | { | 48 | { | ||
49 | return QStringList(); | 49 | return QStringList(); | ||
50 | } | 50 | } | ||
51 | 51 | | |||
52 | int OneRecordData::fieldNumber(const QString& field) const | 52 | int OneRecordDataSource::fieldNumber(const QString& field) const | ||
53 | { | 53 | { | ||
54 | Q_UNUSED(field); | 54 | Q_UNUSED(field); | ||
55 | return 0; | 55 | return 0; | ||
56 | } | 56 | } | ||
57 | 57 | | |||
58 | qint64 OneRecordData::recordCount() const | 58 | qint64 OneRecordDataSource::recordCount() const | ||
59 | { | 59 | { | ||
60 | return 1; | 60 | return 1; | ||
61 | } | 61 | } | ||
62 | 62 | | |||
63 | qint64 OneRecordData::at() const | 63 | qint64 OneRecordDataSource::at() const | ||
64 | { | 64 | { | ||
65 | return 0; | 65 | return 0; | ||
66 | } | 66 | } | ||
67 | 67 | | |||
68 | bool OneRecordData::moveLast() | 68 | bool OneRecordDataSource::moveLast() | ||
69 | { | 69 | { | ||
70 | return true; | 70 | return true; | ||
71 | } | 71 | } | ||
72 | 72 | | |||
73 | bool OneRecordData::moveFirst() | 73 | bool OneRecordDataSource::moveFirst() | ||
74 | { | 74 | { | ||
75 | return true; | 75 | return true; | ||
76 | } | 76 | } | ||
77 | 77 | | |||
78 | bool OneRecordData::movePrevious() | 78 | bool OneRecordDataSource::movePrevious() | ||
79 | { | 79 | { | ||
80 | return false; | 80 | return false; | ||
81 | } | 81 | } | ||
82 | 82 | | |||
83 | bool OneRecordData::moveNext() | 83 | bool OneRecordDataSource::moveNext() | ||
84 | { | 84 | { | ||
85 | return false; | 85 | return false; | ||
86 | } | 86 | } | ||
87 | 87 | | |||
88 | bool OneRecordData::close() | 88 | bool OneRecordDataSource::close() | ||
89 | { | 89 | { | ||
90 | return true; | 90 | return true; | ||
91 | } | 91 | } | ||
92 | 92 | | |||
93 | bool OneRecordData::open() | 93 | bool OneRecordDataSource::open() | ||
94 | { | 94 | { | ||
95 | return true; | 95 | return true; | ||
96 | } | 96 | } | ||
97 | 97 | | |||
98 | QStringList OneRecordDataSource::dataSourceNames() const | ||||
99 | { | ||||
100 | return QStringList(); | ||||
101 | } | ||||
102 | | ||||
98 | } | 103 | } | ||
99 | No newline at end of file | |