digiKam
fileworkeriface.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 : 2012-01-18
7  * Description : file worker interface
8  *
9  * Copyright (C) 2012 by Marcel Wiesweg <marcel dot wiesweg at gmx 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 DIGIKAM_FILE_WORKER_IFACE_H
25 #define DIGIKAM_FILE_WORKER_IFACE_H
26 
27 // Local includes
28 
29 #include "fileactionmngr.h"
31 #include "iteminfo.h"
32 #include "workerobject.h"
33 
34 namespace Digikam
35 {
36 
37 class MetadataHub;
38 
39 class FileWorkerInterface : public WorkerObject // clazy:exclude=ctor-missing-parent-argument
40 {
41  Q_OBJECT
42 
43 public Q_SLOTS:
44 
45  virtual void writeOrientationToFiles(const FileActionItemInfoList&, int) {};
47  virtual void writeMetadata(const FileActionItemInfoList&, int) {};
48  virtual void transform(const FileActionItemInfoList&, int) {};
49 
50 Q_SIGNALS:
51 
52  void imageDataChanged(const QString& path, bool removeThumbnails, bool notifyCache);
53  void imageChangeFailed(const QString& message, const QStringList& fileNames);
54 };
55 
56 // ---------------------------------------------------------------------------------------------
57 
59 {
60  Q_OBJECT
61 
62 public:
63 
65  : d(dd)
66  {
67  }
68 
69 public:
70 
71  void writeOrientationToFiles(const FileActionItemInfoList& infos, int orientation) override;
72  void writeMetadataToFiles(const FileActionItemInfoList& infos) override;
73  void writeMetadata(const FileActionItemInfoList& infos, int flags) override;
74  void transform(const FileActionItemInfoList& infos, int orientation) override;
75 
76 private:
77 
78  FileActionMngr::Private* const d;
79 };
80 
81 } // namespace Digikam
82 
83 #endif // DIGIKAM_FILE_WORKER_IFACE_H
Definition: fileactionimageinfolist.h:104
Definition: fileworkeriface.h:59
void writeOrientationToFiles(const FileActionItemInfoList &infos, int orientation) override
Definition: fileworkeriface.cpp:52
void transform(const FileActionItemInfoList &infos, int orientation) override
Definition: fileworkeriface.cpp:167
FileActionMngrFileWorker(FileActionMngr::Private *const dd)
Definition: fileworkeriface.h:64
void writeMetadataToFiles(const FileActionItemInfoList &infos) override
Definition: fileworkeriface.cpp:90
void writeMetadata(const FileActionItemInfoList &infos, int flags) override
Definition: fileworkeriface.cpp:128
Definition: fileactionmngr_p.h:78
Definition: fileworkeriface.h:40
virtual void writeOrientationToFiles(const FileActionItemInfoList &, int)
Definition: fileworkeriface.h:45
virtual void transform(const FileActionItemInfoList &, int)
Definition: fileworkeriface.h:48
virtual void writeMetadataToFiles(const FileActionItemInfoList &)
Definition: fileworkeriface.h:46
void imageDataChanged(const QString &path, bool removeThumbnails, bool notifyCache)
virtual void writeMetadata(const FileActionItemInfoList &, int)
Definition: fileworkeriface.h:47
void imageChangeFailed(const QString &message, const QStringList &fileNames)
Definition: workerobject.h:45
Definition: datefolderview.cpp:43