1
/* ============================================================
3
* This file is a part of digiKam project
4
* http://www.digikam.org
7
* Description : image editor GUI saving context container
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>
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)
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.
23
* ============================================================ */
25
#ifndef SAVINGCONTEXTCONTAINER_H
26
#define SAVINGCONTEXTCONTAINER_H
31
#include <QTemporaryFile>
39
#include "digikam_export.h"
40
#include "versionfileoperation.h"
45
class DIGIKAM_EXPORT SavingContextContainer
50
SavingContextContainer()
52
savingState = SavingStateNone;
53
synchronizingState = NormalSaving;
55
destinationExisted = false;
56
synchronousSavingResult = false;
57
abortingSaving = false;
58
executedOperation = SavingStateNone;
69
enum SynchronizingState
75
SavingState savingState;
76
SynchronizingState synchronizingState;
77
bool synchronousSavingResult;
78
bool destinationExisted;
80
SavingState executedOperation;
82
QString originalFormat;
89
QTemporaryFile* saveTempFile;
90
QString saveTempFileName;
92
VersionFileOperation versionFileOperation;
95
} // namespace Digikam
97
#endif /* SAVINGCONTEXTCONTAINER_H */