kexi

migratemanager.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2003 Jaroslaw Staniek <js@iidea.pl>
00003 
00004    This program is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This program is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this program; see the file COPYING.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef KEXI_MIGRATION_MNGR_H
00021 #define KEXI_MIGRATION_MNGR_H
00022 
00023 #include <qobject.h>
00024 #include <qcstring.h>
00025 #include <qmap.h>
00026 #include <qdict.h>
00027 
00028 #include <klibloader.h>
00029 #include <kservice.h>
00030 
00031 #include "keximigrate.h"
00032 
00033 namespace KexiMigration {
00034 
00035 class MigrateManagerInternal;
00036 
00038 class KEXIMIGR_EXPORT MigrateManager : public QObject, public KexiDB::Object
00039 {
00040     public:
00041         typedef QMap<QString, KService::Ptr> ServicesMap;
00042         
00043         MigrateManager();
00044         virtual ~MigrateManager();
00045 
00049         KexiMigrate* driver(const QString& name);
00050 
00053         const QStringList driverNames();
00054 
00060         QString driverForMimeType(const QString &mimeType);
00061 
00063         virtual QString serverErrorMsg();
00064         virtual int serverResult();
00065         virtual QString serverResultName();
00066 
00068 
00071         QString possibleProblemsInfoMsg() const;
00072 
00073     protected:
00074         virtual void drv_clearServerResult();
00075 
00076     private:
00077         MigrateManagerInternal *d_int;
00078 };
00079 
00080 } //namespace KexiMigrate
00081 
00082 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys