File indexing completed on 2024-05-05 04:43:22

0001 /*
0002  *    This file is part of the KDE project
0003  *    Copyright (C) 2015 by Adam Pigg <adam@piggz.co.uk>
0004  *
0005  *    This library is free software; you can redistribute it and/or
0006  *    modify it under the terms of the GNU Library General Public
0007  *    License as published by the Free Software Foundation; either
0008  *    version 2.1 of the License, or (at your option) any later version.
0009  *
0010  *    This library is distributed in the hope that it will be useful,
0011  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
0012  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0013  *    Library General Public License for more details.
0014  *
0015  *    You should have received a copy of the GNU Library General Public License
0016  *    along with this library; see the file COPYING.LIB.  If not, write to
0017  *    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0018  *    Boston, MA 02110-1301, USA.
0019  *
0020 */
0021 
0022 #include "KReportOneRecordDataSource_p.h"
0023 
0024 namespace KReportPrivate {
0025 
0026 OneRecordDataSource::OneRecordDataSource()
0027 {
0028 }
0029 
0030 OneRecordDataSource::~OneRecordDataSource()
0031 {
0032 
0033 }
0034 
0035 QVariant OneRecordDataSource::value(const QString& field) const
0036 {
0037     Q_UNUSED(field);
0038     return QVariant();
0039 }
0040 
0041 QVariant OneRecordDataSource::value(int fieldNum) const
0042 {
0043     Q_UNUSED(fieldNum);
0044     return QVariant();
0045 }
0046 
0047 QStringList OneRecordDataSource::fieldNames() const
0048 {
0049     return QStringList();
0050 }
0051 
0052 int OneRecordDataSource::fieldNumber(const QString& field) const
0053 {
0054     Q_UNUSED(field);
0055     return 0;
0056 }
0057 
0058 qint64 OneRecordDataSource::recordCount() const
0059 {
0060     return 1;
0061 }
0062 
0063 qint64 OneRecordDataSource::at() const
0064 {
0065     return 0;
0066 }
0067 
0068 bool OneRecordDataSource::moveLast()
0069 {
0070     return true;
0071 }
0072 
0073 bool OneRecordDataSource::moveFirst()
0074 {
0075     return true;
0076 }
0077 
0078 bool OneRecordDataSource::movePrevious()
0079 {
0080     return false;
0081 }
0082 
0083 bool OneRecordDataSource::moveNext()
0084 {
0085     return false;
0086 }
0087 
0088 bool OneRecordDataSource::close()
0089 {
0090     return true;
0091 }
0092 
0093 bool OneRecordDataSource::open()
0094 {
0095     return true;
0096 }
0097 
0098 QStringList OneRecordDataSource::dataSourceNames() const
0099 {
0100     return QStringList();
0101 }
0102 
0103 }