3
* Copyright (C) 2007-2009 by Adam Pigg (adam@piggz.co.uk)
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Lesser General Public
7
* License as published by the Free Software Foundation; either
8
* version 2.1 of the License, or (at your option) any later version.
10
* This library 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
* Lesser General Public License for more details.
15
* You should have received a copy of the GNU Lesser General Public
16
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
19
#ifndef __KEXIMIGRATEREPORTDATA_H__
20
#define __KEXIMIGRATEREPORTDATA_H__
23
#include <QStringList>
25
#include <kexidb/utils.h>
26
#include <migration/migratemanager.h>
27
#include <migration/keximigrate.h>
28
#include <KoReportData.h>
30
class KexiMigrateReportData : public KoReportData
36
KexiDB::TableSchema m_TableSchema;
37
KexiDB::TableOrQuerySchema *m_schema;
38
KexiMigration::KexiMigrate *m_KexiMigrate;
42
KexiMigrateReportData(const QString &);
44
virtual ~KexiMigrateReportData();
46
virtual unsigned int fieldNumber(const QString &field) const;
47
virtual QStringList fieldNames() const;
49
virtual QVariant value(unsigned int) const;
50
virtual QVariant value(const QString &field) const;
55
virtual bool close() {
58
virtual bool moveNext();
59
virtual bool movePrevious();
60
virtual bool moveFirst();
61
virtual bool moveLast();
63
virtual qint64 at() const;
65
virtual qint64 recordCount() const;