~ubuntu-branches/ubuntu/trusty/digikam/trusty

« back to all changes in this revision

Viewing changes to core/utilities/imageeditor/editor/savingcontextcontainer.h

  • Committer: Package Import Robot
  • Author(s): Rohan Garg
  • Date: 2012-11-26 18:24:20 UTC
  • mfrom: (1.9.1) (3.1.23 experimental)
  • Revision ID: package-import@ubuntu.com-20121126182420-qoy6z0nx4ai0wzcl
Tags: 4:3.0.0~beta3-0ubuntu1
* New upstream release
  - Add build-deps :  libhupnp-dev, libqtgstreamer-dev, libmagickcore-dev
* Merge from debian, remaining changes:
  - Make sure libqt4-opengl-dev, libgl1-mesa-dev and libglu1-mesa-dev only
    install on i386,amd64 and powerpc
  - Depend on libtiff-dev instead of libtiff4-dev
  - Drop digikam breaks/replaces kipi-plugins-common since we're past the
    LTS release now
  - digikam to recommend mplayerthumbs | ffmpegthumbs. We currently only
    have latter in the archives, even though former is also supposed to
    be part of kdemultimedia. (LP: #890059)
  - kipi-plugins to recommend www-browser rather than konqueror directly
    since 2.8 no direct usage of konqueror is present in the flickr
    plugin anymore (LP: #1011211)
  - Keep kubuntu_mysqld_executable_name.diff
  - Don't install libkipi translations
  - Keep deps on libcv-dev, libcvaux-dev
  - Keep split packaging of libraries
  - Replace icons from KDE 3 time in debian/xpm.d/*.xpm with the new
    versions (LP: #658047)
* Update debian/not-installed

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        : 2006-01-20
7
 
 * Description : image editor GUI saving context container
8
 
 *
9
 
 * Copyright (C) 2006-2011 by Gilles Caulier <caulier dot gilles at gmail dot com>
10
 
 * Copyright (C) 2006-2011 by Marcel Wiesweg <marcel.wiesweg@gmx.de>
11
 
 *
12
 
 * This program is free software; you can redistribute it
13
 
 * and/or modify it under the terms of the GNU General
14
 
 * Public License as published by the Free Software Foundation;
15
 
 * either version 2, or (at your option)
16
 
 * any later version.
17
 
 *
18
 
 * This program is distributed in the hope that it will be useful,
19
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
 
 * GNU General Public License for more details.
22
 
 *
23
 
 * ============================================================ */
24
 
 
25
 
#ifndef SAVINGCONTEXTCONTAINER_H
26
 
#define SAVINGCONTEXTCONTAINER_H
27
 
 
28
 
// Qt includes
29
 
 
30
 
#include <QString>
31
 
#include <QTemporaryFile>
32
 
 
33
 
// KDE includes
34
 
 
35
 
#include <kurl.h>
36
 
 
37
 
// Local includes
38
 
 
39
 
#include "digikam_export.h"
40
 
#include "versionfileoperation.h"
41
 
 
42
 
namespace Digikam
43
 
{
44
 
 
45
 
class DIGIKAM_EXPORT SavingContextContainer
46
 
{
47
 
 
48
 
public:
49
 
 
50
 
    SavingContextContainer()
51
 
    {
52
 
        savingState             = SavingStateNone;
53
 
        synchronizingState      = NormalSaving;
54
 
        saveTempFile            = 0;
55
 
        destinationExisted      = false;
56
 
        synchronousSavingResult = false;
57
 
        abortingSaving          = false;
58
 
        executedOperation       = SavingStateNone;
59
 
    }
60
 
 
61
 
    enum SavingState
62
 
    {
63
 
        SavingStateNone,
64
 
        SavingStateSave,
65
 
        SavingStateSaveAs,
66
 
        SavingStateVersion
67
 
    };
68
 
 
69
 
    enum SynchronizingState
70
 
    {
71
 
        NormalSaving,
72
 
        SynchronousSaving
73
 
    };
74
 
 
75
 
    SavingState         savingState;
76
 
    SynchronizingState  synchronizingState;
77
 
    bool                synchronousSavingResult;
78
 
    bool                destinationExisted;
79
 
    bool                abortingSaving;
80
 
    SavingState         executedOperation;
81
 
 
82
 
    QString             originalFormat;
83
 
    QString             format;
84
 
 
85
 
    KUrl                srcURL;
86
 
    KUrl                destinationURL;
87
 
    KUrl                moveSrcURL;
88
 
 
89
 
    QTemporaryFile*     saveTempFile;
90
 
    QString             saveTempFileName;
91
 
 
92
 
    VersionFileOperation versionFileOperation;
93
 
};
94
 
 
95
 
} // namespace Digikam
96
 
 
97
 
#endif /* SAVINGCONTEXTCONTAINER_H */