summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-10-04 14:25:59 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-10-04 14:25:59 +0200
commit51099c67bcb8d3979cf9985f1d850bf9720ebe5b (patch)
treeb56668e7f76dc25a5444869c96da26ecaea6b1c6
parent80c2ac8b750d0b6460cdeb0d114f5cd77fbca725 (diff)
downloadsink-51099c67bcb8d3979cf9985f1d850bf9720ebe5b.tar.gz
sink-51099c67bcb8d3979cf9985f1d850bf9720ebe5b.zip
Store the resource/account type as just "type"
We use the resource/account prefix only because just "Type" would conflict with the typedef.
-rw-r--r--common/domain/applicationdomaintype.h4
-rw-r--r--common/resourcefacade.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/common/domain/applicationdomaintype.h b/common/domain/applicationdomaintype.h
index 2c93639..af2920c 100644
--- a/common/domain/applicationdomaintype.h
+++ b/common/domain/applicationdomaintype.h
@@ -275,7 +275,7 @@ struct SINK_EXPORT SinkAccount : public ApplicationDomainType {
275 275
276 SINK_PROPERTY(QString, Name, name); 276 SINK_PROPERTY(QString, Name, name);
277 SINK_PROPERTY(QString, Icon, icon); 277 SINK_PROPERTY(QString, Icon, icon);
278 SINK_PROPERTY(QString, AccountType, accountType); 278 SINK_PROPERTY(QString, AccountType, type);
279 SINK_STATUS_PROPERTY(int, Status, status); 279 SINK_STATUS_PROPERTY(int, Status, status);
280 SINK_STATUS_PROPERTY(ApplicationDomain::Error, Error, error); 280 SINK_STATUS_PROPERTY(ApplicationDomain::Error, Error, error);
281 SINK_STATUS_PROPERTY(ApplicationDomain::Progress, Progress, progress); 281 SINK_STATUS_PROPERTY(ApplicationDomain::Progress, Progress, progress);
@@ -296,7 +296,7 @@ struct SINK_EXPORT SinkResource : public ApplicationDomainType {
296 virtual ~SinkResource(); 296 virtual ~SinkResource();
297 297
298 SINK_REFERENCE_PROPERTY(SinkAccount, Account, account); 298 SINK_REFERENCE_PROPERTY(SinkAccount, Account, account);
299 SINK_PROPERTY(QByteArray, ResourceType, resourceType); 299 SINK_PROPERTY(QByteArray, ResourceType, type);
300 SINK_PROPERTY(QByteArrayList, Capabilities, capabilities); 300 SINK_PROPERTY(QByteArrayList, Capabilities, capabilities);
301 SINK_STATUS_PROPERTY(int, Status, status); 301 SINK_STATUS_PROPERTY(int, Status, status);
302 SINK_STATUS_PROPERTY(ApplicationDomain::Error, Error, error); 302 SINK_STATUS_PROPERTY(ApplicationDomain::Error, Error, error);
diff --git a/common/resourcefacade.cpp b/common/resourcefacade.cpp
index aee5706..6747938 100644
--- a/common/resourcefacade.cpp
+++ b/common/resourcefacade.cpp
@@ -279,7 +279,7 @@ QPair<KAsync::Job<void>, typename Sink::ResultEmitter<typename ApplicationDomain
279} 279}
280 280
281 281
282AccountFacade::AccountFacade() : LocalStorageFacade<Sink::ApplicationDomain::SinkAccount>("accounts", "type") 282AccountFacade::AccountFacade() : LocalStorageFacade<Sink::ApplicationDomain::SinkAccount>("accounts", ApplicationDomain::SinkAccount::AccountType::name)
283{ 283{
284} 284}
285 285