diff options
author | Aaron Seigo <aseigo@kde.org> | 2014-12-16 10:13:48 +0100 |
---|---|---|
committer | Aaron Seigo <aseigo@kde.org> | 2014-12-16 10:13:48 +0100 |
commit | f41f2ee922d1a653fbe64913dcc209a23758774e (patch) | |
tree | f26794b9eb6dc53608dd571e9eba2f6a1b019146 /common | |
parent | a1835a8cbd4f8ded7017a9580cf585111a7e1de0 (diff) | |
download | sink-f41f2ee922d1a653fbe64913dcc209a23758774e.tar.gz sink-f41f2ee922d1a653fbe64913dcc209a23758774e.zip |
add a way to easily get at the type of a facade
handy for debug if nothing else
Diffstat (limited to 'common')
-rw-r--r-- | common/clientapi.h | 1 |
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> | |||
271 | class StoreFacade { | 271 | class StoreFacade { |
272 | public: | 272 | public: |
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; |