~ubuntu-branches/ubuntu/saucy/digikam/saucy

« back to all changes in this revision

Viewing changes to libs/database/databasecopymanager.h

  • Committer: Package Import Robot
  • Author(s): Felix Geyer, Rohan Garg, Philip Muškovac, Felix Geyer
  • Date: 2011-09-23 18:18:55 UTC
  • mfrom: (1.2.36 upstream)
  • Revision ID: package-import@ubuntu.com-20110923181855-ifs67wxkugshev9k
Tags: 2:2.1.1-0ubuntu1
[ Rohan Garg ]
* New upstream release (LP: #834190)
  - debian/control
    + Build with libqtwebkit-dev
 - debian/kipi-plugins-common
    + Install libkvkontakte required by kipi-plugins
 - debian/digikam
    + Install panoramagui

[ Philip Muškovac ]
* New upstream release
  - debian/control:
    + Add libcv-dev, libcvaux-dev, libhighgui-dev, libboost-graph1.46-dev,
      libksane-dev, libxml2-dev, libxslt-dev, libqt4-opengl-dev, libqjson-dev,
      libgpod-dev and libqca2-dev to build-deps
    + Add packages for kipi-plugins, libmediawiki, libkface, libkgeomap and
      libkvkontakte
  - debian/rules:
    + Don't build with gphoto2 since it doesn't build with it.
  - Add kubuntu_fix_test_linking.diff to fix linking of the dngconverter test
  - update install files
  - update kubuntu_01_mysqld_executable_name.diff for new cmake layout
    and rename to kubuntu_mysqld_executable_name.diff
* Fix typo in digikam-data description (LP: #804894)
* Fix Vcs links

[ Felix Geyer ]
* Move library data files to the new packages libkface-data, libkgeomap-data
  and libkvkontakte-data.
* Override version of the embedded library packages to 1.0~digikam<version>.
* Exclude the library packages from digikam-dbg to prevent file conflicts in
  the future.
* Call dh_install with --list-missing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* ============================================================
2
 
 *
3
 
 * This file is a part of digiKam project
4
 
 * http://www.digikam.org
5
 
 *
6
 
 * Date        : 2009-11-14
7
 
 * Description : database migration dialog
8
 
 *
9
 
 * Copyright (C) 2009-2010 by Holger Foerster <Hamsi2k at freenet dot de>
10
 
 *
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)
15
 
 * any later version.
16
 
 *
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.
21
 
 *
22
 
 * ============================================================ */
23
 
 
24
 
#ifndef DATABASECOPYMANAGER_H
25
 
#define DATABASECOPYMANAGER_H
26
 
 
27
 
// Qt includes
28
 
 
29
 
#include <QObject>
30
 
 
31
 
// Local includes
32
 
 
33
 
#include "digikam_export.h"
34
 
#include "databasebackend.h"
35
 
 
36
 
namespace Digikam
37
 
{
38
 
 
39
 
class DIGIKAM_DATABASE_EXPORT DatabaseCopyManager : public QObject
40
 
{
41
 
    Q_OBJECT
42
 
 
43
 
public:
44
 
 
45
 
    enum FinishStates
46
 
    {
47
 
        success,
48
 
        failed,
49
 
        canceled
50
 
    };
51
 
 
52
 
public:
53
 
 
54
 
    DatabaseCopyManager();
55
 
    ~DatabaseCopyManager();
56
 
 
57
 
    void copyDatabases(DatabaseParameters fromDBParameters, DatabaseParameters toDBParameters);
58
 
 
59
 
Q_SIGNALS:
60
 
 
61
 
    void stepStarted(QString stepName);
62
 
    void smallStepStarted(int currValue, int maxValue);
63
 
    void finished(int finishState, QString errorMsg);
64
 
 
65
 
public Q_SLOTS:
66
 
 
67
 
    void stopProcessing();
68
 
 
69
 
private:
70
 
 
71
 
    bool isStopProcessing;
72
 
    bool copyTable(DatabaseBackend& fromDBbackend, QString fromActionName, DatabaseBackend& toDBbackend, QString toActionName);
73
 
    void handleClosing(bool isstopThread, DatabaseBackend& fromDBbackend, DatabaseBackend& toDBbackend);
74
 
};
75
 
 
76
 
} // namespace Digikam
77
 
 
78
 
#endif // DATABASECOPYMANAGER_H