migratemanager.h
1/* This file is part of the KDE project
2 Copyright (C) 2003 Jaroslaw Staniek <js@iidea.pl>
3
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this program; see the file COPYING. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20#ifndef KEXI_MIGRATION_MNGR_H
21#define KEXI_MIGRATION_MNGR_H
22
23#include <tqobject.h>
24#include <tqcstring.h>
25#include <tqmap.h>
26#include <tqdict.h>
27
28#include <klibloader.h>
29#include <kservice.h>
30
31#include "keximigrate.h"
32
33namespace KexiMigration {
34
35class MigrateManagerInternal;
36
38class KEXIMIGR_EXPORT MigrateManager : public TQObject, public KexiDB::Object
39{
40 public:
41 typedef TQMap<TQString, KService::Ptr> ServicesMap;
42
44 virtual ~MigrateManager();
45
49 KexiMigrate* driver(const TQString& name);
50
53 const TQStringList driverNames();
54
60 TQString driverForMimeType(const TQString &mimeType);
61
63 virtual TQString serverErrorMsg();
64 virtual int serverResult();
65 virtual TQString serverResultName();
66
68
71 TQString possibleProblemsInfoMsg() const;
72
73 protected:
74 virtual void drv_clearServerResult();
75
76 private:
77 MigrateManagerInternal *d_int;
78};
79
80} //namespace KexiMigrate
81
82#endif
Imports non-native databases into Kexi projects.
Definition keximigrate.h:79
Migration library management, for finding and loading mogration drivers.
Framework for importing databases into native KexiDB databases.