diff options
Diffstat (limited to 'common/genericresource.h')
-rw-r--r-- | common/genericresource.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/common/genericresource.h b/common/genericresource.h index 4ae2645..ceb6b61 100644 --- a/common/genericresource.h +++ b/common/genericresource.h | |||
@@ -19,7 +19,7 @@ | |||
19 | */ | 19 | */ |
20 | #pragma once | 20 | #pragma once |
21 | 21 | ||
22 | #include <sinkcommon_export.h> | 22 | #include "sink_export.h" |
23 | #include <resource.h> | 23 | #include <resource.h> |
24 | #include <messagequeue.h> | 24 | #include <messagequeue.h> |
25 | #include <flatbuffers/flatbuffers.h> | 25 | #include <flatbuffers/flatbuffers.h> |
@@ -37,7 +37,7 @@ class Preprocessor; | |||
37 | /** | 37 | /** |
38 | * Generic Resource implementation. | 38 | * Generic Resource implementation. |
39 | */ | 39 | */ |
40 | class SINKCOMMON_EXPORT GenericResource : public Resource | 40 | class SINK_EXPORT GenericResource : public Resource |
41 | { | 41 | { |
42 | public: | 42 | public: |
43 | GenericResource(const QByteArray &resourceInstanceIdentifier, const QSharedPointer<Pipeline> &pipeline = QSharedPointer<Pipeline>()); | 43 | GenericResource(const QByteArray &resourceInstanceIdentifier, const QSharedPointer<Pipeline> &pipeline = QSharedPointer<Pipeline>()); |
@@ -52,6 +52,7 @@ public: | |||
52 | 52 | ||
53 | int error() const; | 53 | int error() const; |
54 | 54 | ||
55 | void removeDataFromDisk() Q_DECL_OVERRIDE; | ||
55 | static void removeFromDisk(const QByteArray &instanceIdentifier); | 56 | static void removeFromDisk(const QByteArray &instanceIdentifier); |
56 | static qint64 diskUsage(const QByteArray &instanceIdentifier); | 57 | static qint64 diskUsage(const QByteArray &instanceIdentifier); |
57 | 58 | ||
@@ -74,6 +75,7 @@ protected: | |||
74 | */ | 75 | */ |
75 | void recordRemoteId(const QByteArray &bufferType, const QByteArray &localId, const QByteArray &remoteId, Sink::Storage::Transaction &transaction); | 76 | void recordRemoteId(const QByteArray &bufferType, const QByteArray &localId, const QByteArray &remoteId, Sink::Storage::Transaction &transaction); |
76 | void removeRemoteId(const QByteArray &bufferType, const QByteArray &localId, const QByteArray &remoteId, Sink::Storage::Transaction &transaction); | 77 | void removeRemoteId(const QByteArray &bufferType, const QByteArray &localId, const QByteArray &remoteId, Sink::Storage::Transaction &transaction); |
78 | void updateRemoteId(const QByteArray &bufferType, const QByteArray &localId, const QByteArray &remoteId, Sink::Storage::Transaction &transaction); | ||
77 | 79 | ||
78 | /** | 80 | /** |
79 | * Tries to find a local id for the remote id, and creates a new local id otherwise. | 81 | * Tries to find a local id for the remote id, and creates a new local id otherwise. |