digiKam
filesaveconflictbox.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2006-09-13
7  * Description : a widget to provide conflict rules to save image.
8  *
9  * Copyright (C) 2006-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
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) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * ============================================================ */
22 
23 #ifndef DIGIKAM_FILE_SAVE_CONFLICT_BOX_H
24 #define DIGIKAM_FILE_SAVE_CONFLICT_BOX_H
25 
26 // Qt includes
27 
28 #include <QWidget>
29 
30 // Local includes
31 
32 #include "digikam_export.h"
33 
34 class KConfigGroup;
35 
36 namespace Digikam
37 {
38 
39 class DIGIKAM_EXPORT FileSaveConflictBox : public QWidget
40 {
41  Q_OBJECT
42 
43 public:
44 
46  {
47  OVERWRITE = 0,
49  SKIPFILE
50  };
51 
52 public:
53 
54  explicit FileSaveConflictBox(QWidget* const parent, bool addSkip = false);
55  ~FileSaveConflictBox() override;
56 
57  ConflictRule conflictRule() const;
58  void setConflictRule(ConflictRule r);
59 
60  void resetToDefault();
61 
62  void readSettings(KConfigGroup& group);
63  void writeSettings(KConfigGroup& group);
64 
65 Q_SIGNALS:
66 
68 
69 private:
70 
71  class Private;
72  Private* const d;
73 };
74 
75 } // namespace Digikam
76 
77 #endif // DIGIKAM_FILE_SAVE_CONFLICT_BOX_H
Definition: filesaveconflictbox.h:40
ConflictRule
Definition: filesaveconflictbox.h:46
@ DIFFNAME
Definition: filesaveconflictbox.h:48
Definition: datefolderview.cpp:43