kexi
keximigratedata.h
00001 /* This file is part of the KDE project 00002 Copyright (C) 2004 Adam Pigg <adam@piggz.co.uk> 00003 Copyright (C) 2004 Jaroslaw Staniek <js@iidea.pl> 00004 Copyright (C) 2005 Martin Ellis <kde@martinellis.co.uk> 00005 00006 This program is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Library General Public 00008 License as published by the Free Software Foundation; either 00009 version 2 of the License, or (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Library General Public License for more details. 00015 00016 You should have received a copy of the GNU Library General Public License 00017 along with this program; see the file COPYING. If not, write to 00018 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00019 * Boston, MA 02110-1301, USA. 00020 */ 00021 00022 #ifndef KEXI_MIGRATE_DATA_H 00023 #define KEXI_MIGRATE_DATA_H 00024 00025 #include "kexidb/connection.h" 00026 00027 class KexiProjectData; 00028 00029 namespace KexiMigration 00030 { 00031 //Use this class to store all possible options that could be used by keximigrate. 00032 //The current members are not meant to be a definite set, for example, i envisage 00033 //adding table/field lists if we allow only importing certain tables/fields 00034 class KEXIMIGR_EXPORT Data 00035 { 00036 public: 00037 Data(); 00038 ~Data(); 00039 00041 KexiDB::ConnectionData* source; 00042 00044 QString sourceName; 00045 00047 KexiProjectData* destination; 00048 00049 // //! Actual connection to the new database 00050 // KexiDB::Connection* dest; 00051 00052 // //! New database name 00053 // QString destName; 00054 00056 bool keepData; 00057 }; 00058 }//namespace KexiMigration 00059 #endif