keximigratedata.h
1/* This file is part of the KDE project
2 Copyright (C) 2004 Adam Pigg <adam@piggz.co.uk>
3 Copyright (C) 2004 Jaroslaw Staniek <js@iidea.pl>
4 Copyright (C) 2005 Martin Ellis <kde@martinellis.co.uk>
5
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
15
16 You should have received a copy of the GNU Library General Public License
17 along with this program; see the file COPYING. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
20*/
21
22#ifndef KEXI_MIGRATE_DATA_H
23#define KEXI_MIGRATE_DATA_H
24
25#include "kexidb/connection.h"
26
27class KexiProjectData;
28
29namespace KexiMigration
30{
31 //Use this class to store all possible options that could be used by keximigrate.
32 //The current members are not meant to be a definite set, for example, i envisage
33 //adding table/field lists if we allow only importing certain tables/fields
34 class KEXIMIGR_EXPORT Data
35 {
36 public:
37 Data();
38 ~Data();
39
42
44 TQString sourceName;
45
47 KexiProjectData* destination;
48
49// //! Actual connection to the new database
50// KexiDB::Connection* dest;
51
52// //! New database name
53// TQString destName;
54
56 bool keepData;
57 };
58}//namespace KexiMigration
59#endif
Database specific connection data, e.g. host, port.
Kexi project core data member.
Framework for importing databases into native KexiDB databases.