~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

Viewing changes to kexi/plugins/reports/keximigratereportdata.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-09-21 15:36:35 UTC
  • mfrom: (1.4.1 upstream) (60.2.11 maverick)
  • Revision ID: james.westby@ubuntu.com-20100921153635-6tejqkiro2u21ydi
Tags: 1:2.2.2-0ubuntu3
Add kubuntu_03_fix-crash-on-closing-sqlite-connection-2.2.2.diff and
kubuntu_04_support-large-memo-values-for-msaccess-2.2.2.diff as
recommended by upstream http://kexi-
project.org/wiki/wikiview/index.php@Kexi2.2_Patches.html#sqlite_stab
ility

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
* Kexi Report Plugin
 
3
* Copyright (C) 2007-2009 by Adam Pigg (adam@piggz.co.uk)
 
4
*
 
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.
 
9
*
 
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.
 
14
*
 
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/>.
 
17
*/
 
18
 
 
19
#ifndef __KEXIMIGRATEREPORTDATA_H__
 
20
#define __KEXIMIGRATEREPORTDATA_H__
 
21
 
 
22
#include <QString>
 
23
#include <QStringList>
 
24
 
 
25
#include <kexidb/utils.h>
 
26
#include <migration/migratemanager.h>
 
27
#include <migration/keximigrate.h>
 
28
#include <KoReportData.h>
 
29
 
 
30
class KexiMigrateReportData : public KoReportData
 
31
{
 
32
private:
 
33
    QString m_qstrName;
 
34
    QString m_qstrQuery;
 
35
    bool m_valid;
 
36
    KexiDB::TableSchema m_TableSchema;
 
37
    KexiDB::TableOrQuerySchema *m_schema;
 
38
    KexiMigration::KexiMigrate *m_KexiMigrate;
 
39
    qint64 m_position;
 
40
 
 
41
public:
 
42
    KexiMigrateReportData(const QString &);
 
43
 
 
44
    virtual ~KexiMigrateReportData();
 
45
 
 
46
    virtual unsigned int fieldNumber(const QString &field) const;
 
47
    virtual QStringList fieldNames() const;
 
48
 
 
49
    virtual QVariant value(unsigned int) const;
 
50
    virtual QVariant value(const QString &field) const;
 
51
 
 
52
    virtual bool open() {
 
53
        return true;
 
54
    }
 
55
    virtual bool close() {
 
56
        return true;
 
57
    }
 
58
    virtual bool moveNext();
 
59
    virtual bool movePrevious();
 
60
    virtual bool moveFirst();
 
61
    virtual bool moveLast();
 
62
 
 
63
    virtual qint64 at() const;
 
64
 
 
65
    virtual qint64 recordCount() const;
 
66
};
 
67
 
 
68
#endif
 
69