1
/* ============================================================
3
* This file is a part of digiKam project
4
* http://www.digikam.org
7
* Description : database migration dialog
9
* Copyright (C) 2009-2010 by Holger Foerster <Hamsi2k at freenet dot de>
11
* This program is free software; you can redistribute it
12
* and/or modify it under the terms of the GNU General
13
* Public License as published by the Free Software Foundation;
14
* either version 2, or (at your option)
17
* This program is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
* GNU General Public License for more details.
22
* ============================================================ */
24
#ifndef DATABASECOPYMANAGER_H
25
#define DATABASECOPYMANAGER_H
33
#include "digikam_export.h"
34
#include "databasebackend.h"
39
class DIGIKAM_DATABASE_EXPORT DatabaseCopyManager : public QObject
54
DatabaseCopyManager();
55
~DatabaseCopyManager();
57
void copyDatabases(DatabaseParameters fromDBParameters, DatabaseParameters toDBParameters);
61
void stepStarted(QString stepName);
62
void smallStepStarted(int currValue, int maxValue);
63
void finished(int finishState, QString errorMsg);
67
void stopProcessing();
71
bool isStopProcessing;
72
bool copyTable(DatabaseBackend& fromDBbackend, QString fromActionName, DatabaseBackend& toDBbackend, QString toActionName);
73
void handleClosing(bool isstopThread, DatabaseBackend& fromDBbackend, DatabaseBackend& toDBbackend);
76
} // namespace Digikam
78
#endif // DATABASECOPYMANAGER_H