summaryrefslogtreecommitdiffstats
path: root/common/facadeinterface.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-12-04 10:36:58 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-12-04 10:36:58 +0100
commit59aa460cf704d5f1a1fb1fe6b8ede4457da083ff (patch)
treed1cf394099e4897d2b8abf6817191c488c754667 /common/facadeinterface.h
parent41006b5cab7b0260f8abc42aa2d2e959a013764e (diff)
downloadsink-59aa460cf704d5f1a1fb1fe6b8ede4457da083ff.tar.gz
sink-59aa460cf704d5f1a1fb1fe6b8ede4457da083ff.zip
Copy command and proper move
Diffstat (limited to 'common/facadeinterface.h')
-rw-r--r--common/facadeinterface.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/common/facadeinterface.h b/common/facadeinterface.h
index 136791e..5d12360 100644
--- a/common/facadeinterface.h
+++ b/common/facadeinterface.h
@@ -70,6 +70,13 @@ public:
70 virtual KAsync::Job<void> move(const DomainType &domainObject, const QByteArray &newResource) = 0; 70 virtual KAsync::Job<void> move(const DomainType &domainObject, const QByteArray &newResource) = 0;
71 71
72 /** 72 /**
73 * Copy an entity to a new resource.
74 *
75 * The job returns succefully once the task has been successfully placed in the queue
76 */
77 virtual KAsync::Job<void> copy(const DomainType &domainObject, const QByteArray &newResource) = 0;
78
79 /**
73 * Remove an entity from the store. 80 * Remove an entity from the store.
74 * 81 *
75 * The job returns succefully once the task has been successfully placed in the queue 82 * The job returns succefully once the task has been successfully placed in the queue
@@ -102,6 +109,11 @@ public:
102 return KAsync::error<void>(-1, "Failed to create a facade"); 109 return KAsync::error<void>(-1, "Failed to create a facade");
103 } 110 }
104 111
112 KAsync::Job<void> copy(const DomainType &domainObject, const QByteArray &newResource)
113 {
114 return KAsync::error<void>(-1, "Failed to create a facade");
115 }
116
105 KAsync::Job<void> remove(const DomainType &domainObject) 117 KAsync::Job<void> remove(const DomainType &domainObject)
106 { 118 {
107 return KAsync::error<void>(-1, "Failed to create a facade"); 119 return KAsync::error<void>(-1, "Failed to create a facade");