summaryrefslogtreecommitdiff
path: root/kde-apps/gwenview/files/gwenview-15.08.3-fix-libkipi.patch
blob: a66eeb3f6b628a92b397b8ca52315a9f906cb88e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
diff --git a/app/kipiinterface.h b/app/kipiinterface.h
index d3961e9..f8a2f8e 100644
--- a/app/kipiinterface.h
+++ b/app/kipiinterface.h
@@ -26,9 +26,17 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Cambridge, MA 02110-1301, USA
 #include <kipi/interface.h>
 #include <kipi/imagecollectionshared.h>
 #include <kipi/plugin.h>
+#include <libkipi_version.h>
 
 class QAction;
 
+#ifndef KIPI_VERSION_MAJOR
+#error KIPI_VERSION_MAJOR should be provided.
+#endif
+#if KIPI_VERSION_MAJOR >= 5
+#define GWENVIEW_KIPI_WITH_CREATE_METHODS
+#endif
+
 namespace Gwenview
 {
 
@@ -60,6 +68,12 @@ public:
 
     bool isLoadingFinished() const;
 
+#ifdef GWENVIEW_KIPI_WITH_CREATE_METHODS
+    virtual KIPI::FileReadWriteLock* createReadWriteLock(const QUrl& url) const;
+    virtual KIPI::MetadataProcessor* createMetadataProcessor() const;
+    virtual KIPI::RawProcessor* createRawProcessor() const;
+#endif
+
 Q_SIGNALS:
     void loadingFinished();
 
diff --git a/app/kipiinterface.cpp b/app/kipiinterface.cpp
index 8f71700..88a212b 100644
--- a/app/kipiinterface.cpp
+++ b/app/kipiinterface.cpp
@@ -457,4 +457,22 @@ void KIPIInterface::slotDirectoryChanged()
     emit currentAlbumChanged(true);
 }
 
+#ifdef GWENVIEW_KIPI_WITH_CREATE_METHODS
+KIPI::FileReadWriteLock* KIPIInterface::createReadWriteLock(const QUrl& url) const
+{
+    return NULL;
+}
+
+KIPI::MetadataProcessor* KIPIInterface::createMetadataProcessor() const
+{
+    return NULL;
+}
+
+KIPI::RawProcessor* KIPIInterface::createRawProcessor() const
+{
+    return NULL;
+}
+#endif
+
+
 } //namespace