summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Seigo <aseigo@kde.org>2014-12-16 10:13:48 +0100
committerAaron Seigo <aseigo@kde.org>2014-12-16 10:13:48 +0100
commitf41f2ee922d1a653fbe64913dcc209a23758774e (patch)
treef26794b9eb6dc53608dd571e9eba2f6a1b019146
parenta1835a8cbd4f8ded7017a9580cf585111a7e1de0 (diff)
downloadsink-f41f2ee922d1a653fbe64913dcc209a23758774e.tar.gz
sink-f41f2ee922d1a653fbe64913dcc209a23758774e.zip
add a way to easily get at the type of a facade
handy for debug if nothing else
-rw-r--r--common/clientapi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/clientapi.h b/common/clientapi.h
index 2188123..fe60d9c 100644
--- a/common/clientapi.h
+++ b/common/clientapi.h
@@ -271,6 +271,7 @@ template<class DomainType>
271class StoreFacade { 271class StoreFacade {
272public: 272public:
273 virtual ~StoreFacade(){}; 273 virtual ~StoreFacade(){};
274 QString type() const { return Domain::getTypeName<DomainType>(); }
274 virtual void create(const DomainType &domainObject) = 0; 275 virtual void create(const DomainType &domainObject) = 0;
275 virtual void modify(const DomainType &domainObject) = 0; 276 virtual void modify(const DomainType &domainObject) = 0;
276 virtual void remove(const DomainType &domainObject) = 0; 277 virtual void remove(const DomainType &domainObject) = 0;