summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-12 08:20:43 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-12 08:33:57 +0200
commit41f8f9bc05c059cafa780ac8aec27a56cba2c278 (patch)
treea53ac218ebc075c1fa1e5a31f011855ba815638d /common
parent380ecbf2866a322de01b28e90dafc1a24e4d948c (diff)
downloadsink-41f8f9bc05c059cafa780ac8aec27a56cba2c278.tar.gz
sink-41f8f9bc05c059cafa780ac8aec27a56cba2c278.zip
No more SINK_DEBUG_AREA
Diffstat (limited to 'common')
-rw-r--r--common/configstore.cpp2
-rw-r--r--common/domain/applicationdomaintype.cpp2
-rw-r--r--common/domainadaptor.h1
-rw-r--r--common/facade.h1
-rw-r--r--common/genericresource.h2
-rw-r--r--common/listener.h2
-rw-r--r--common/mail/threadindexer.cpp2
-rw-r--r--common/mailpreprocessor.cpp2
-rw-r--r--common/messagequeue.cpp2
-rw-r--r--common/queryrunner.h2
-rw-r--r--common/resourceaccess.h2
-rw-r--r--common/resourcecontrol.cpp2
-rw-r--r--common/resourcefacade.cpp2
-rw-r--r--common/specialpurposepreprocessor.cpp2
-rw-r--r--common/storage_common.cpp2
-rw-r--r--common/store.cpp2
-rw-r--r--common/synchronizerstore.cpp2
-rw-r--r--common/test.cpp2
-rw-r--r--common/typeindex.cpp2
19 files changed, 0 insertions, 36 deletions
diff --git a/common/configstore.cpp b/common/configstore.cpp
index 1ae9da8..6751907 100644
--- a/common/configstore.cpp
+++ b/common/configstore.cpp
@@ -24,8 +24,6 @@
24#include <log.h> 24#include <log.h>
25#include <definitions.h> 25#include <definitions.h>
26 26
27SINK_DEBUG_AREA("configstore")
28
29static QSharedPointer<QSettings> getConfig(const QByteArray &identifier) 27static QSharedPointer<QSettings> getConfig(const QByteArray &identifier)
30{ 28{
31 return QSharedPointer<QSettings>::create(Sink::configLocation() + "/" + identifier + ".ini", QSettings::IniFormat); 29 return QSharedPointer<QSettings>::create(Sink::configLocation() + "/" + identifier + ".ini", QSettings::IniFormat);
diff --git a/common/domain/applicationdomaintype.cpp b/common/domain/applicationdomaintype.cpp
index 67d463f..7ce80ee 100644
--- a/common/domain/applicationdomaintype.cpp
+++ b/common/domain/applicationdomaintype.cpp
@@ -25,8 +25,6 @@
25#include "storage.h" //for generateUid() 25#include "storage.h" //for generateUid()
26#include <QFile> 26#include <QFile>
27 27
28SINK_DEBUG_AREA("applicationdomaintype");
29
30QDebug Sink::ApplicationDomain::operator<< (QDebug d, const Sink::ApplicationDomain::Mail::Contact &c) 28QDebug Sink::ApplicationDomain::operator<< (QDebug d, const Sink::ApplicationDomain::Mail::Contact &c)
31{ 29{
32 d << "Contact(" << c.name << ", " << c.emailAddress << ")"; 30 d << "Contact(" << c.name << ", " << c.emailAddress << ")";
diff --git a/common/domainadaptor.h b/common/domainadaptor.h
index c38b713..f981a1f 100644
--- a/common/domainadaptor.h
+++ b/common/domainadaptor.h
@@ -120,7 +120,6 @@ private:
120 */ 120 */
121class DatastoreBufferAdaptor : public Sink::ApplicationDomain::BufferAdaptor 121class DatastoreBufferAdaptor : public Sink::ApplicationDomain::BufferAdaptor
122{ 122{
123 SINK_DEBUG_AREA("bufferadaptor")
124public: 123public:
125 DatastoreBufferAdaptor() : BufferAdaptor() 124 DatastoreBufferAdaptor() : BufferAdaptor()
126 { 125 {
diff --git a/common/facade.h b/common/facade.h
index 45c718b..0ec2e59 100644
--- a/common/facade.h
+++ b/common/facade.h
@@ -48,7 +48,6 @@ template <typename DomainType>
48class SINK_EXPORT GenericFacade : public Sink::StoreFacade<DomainType> 48class SINK_EXPORT GenericFacade : public Sink::StoreFacade<DomainType>
49{ 49{
50protected: 50protected:
51 SINK_DEBUG_AREA("facade")
52 SINK_DEBUG_COMPONENT(mResourceContext.resourceInstanceIdentifier) 51 SINK_DEBUG_COMPONENT(mResourceContext.resourceInstanceIdentifier)
53public: 52public:
54 /** 53 /**
diff --git a/common/genericresource.h b/common/genericresource.h
index 558145c..bffc697 100644
--- a/common/genericresource.h
+++ b/common/genericresource.h
@@ -35,8 +35,6 @@ class CommandProcessor;
35 */ 35 */
36class SINK_EXPORT GenericResource : public Resource 36class SINK_EXPORT GenericResource : public Resource
37{ 37{
38protected:
39 SINK_DEBUG_AREA("resource")
40public: 38public:
41 GenericResource(const Sink::ResourceContext &context, const QSharedPointer<Pipeline> &pipeline = QSharedPointer<Pipeline>()); 39 GenericResource(const Sink::ResourceContext &context, const QSharedPointer<Pipeline> &pipeline = QSharedPointer<Pipeline>());
42 virtual ~GenericResource(); 40 virtual ~GenericResource();
diff --git a/common/listener.h b/common/listener.h
index 8d8b529..f29130d 100644
--- a/common/listener.h
+++ b/common/listener.h
@@ -55,8 +55,6 @@ public:
55class SINK_EXPORT Listener : public QObject 55class SINK_EXPORT Listener : public QObject
56{ 56{
57 Q_OBJECT 57 Q_OBJECT
58 SINK_DEBUG_AREA("communication")
59
60public: 58public:
61 Listener(const QByteArray &resourceName, const QByteArray &resourceType, QObject *parent = 0); 59 Listener(const QByteArray &resourceName, const QByteArray &resourceType, QObject *parent = 0);
62 ~Listener(); 60 ~Listener();
diff --git a/common/mail/threadindexer.cpp b/common/mail/threadindexer.cpp
index af96b94..473f28e 100644
--- a/common/mail/threadindexer.cpp
+++ b/common/mail/threadindexer.cpp
@@ -21,8 +21,6 @@
21#include "typeindex.h" 21#include "typeindex.h"
22#include "log.h" 22#include "log.h"
23 23
24SINK_DEBUG_AREA("threadindex")
25
26using namespace Sink; 24using namespace Sink;
27using namespace Sink::ApplicationDomain; 25using namespace Sink::ApplicationDomain;
28 26
diff --git a/common/mailpreprocessor.cpp b/common/mailpreprocessor.cpp
index dff3b3d..5c54fbc 100644
--- a/common/mailpreprocessor.cpp
+++ b/common/mailpreprocessor.cpp
@@ -29,8 +29,6 @@
29 29
30using namespace Sink; 30using namespace Sink;
31 31
32SINK_DEBUG_AREA("mailpreprocessor")
33
34QString MailPropertyExtractor::getFilePathFromMimeMessagePath(const QString &s) const 32QString MailPropertyExtractor::getFilePathFromMimeMessagePath(const QString &s) const
35{ 33{
36 return s; 34 return s;
diff --git a/common/messagequeue.cpp b/common/messagequeue.cpp
index 6e79d89..362ddfd 100644
--- a/common/messagequeue.cpp
+++ b/common/messagequeue.cpp
@@ -3,8 +3,6 @@
3#include <QDebug> 3#include <QDebug>
4#include <log.h> 4#include <log.h>
5 5
6SINK_DEBUG_AREA("messagequeue")
7
8MessageQueue::MessageQueue(const QString &storageRoot, const QString &name) : mStorage(storageRoot, name, Sink::Storage::DataStore::ReadWrite) 6MessageQueue::MessageQueue(const QString &storageRoot, const QString &name) : mStorage(storageRoot, name, Sink::Storage::DataStore::ReadWrite)
9{ 7{
10} 8}
diff --git a/common/queryrunner.h b/common/queryrunner.h
index 5308eac..11a302f 100644
--- a/common/queryrunner.h
+++ b/common/queryrunner.h
@@ -32,8 +32,6 @@
32class QueryRunnerBase : public QObject 32class QueryRunnerBase : public QObject
33{ 33{
34 Q_OBJECT 34 Q_OBJECT
35protected:
36 SINK_DEBUG_AREA("queryrunner")
37public: 35public:
38 typedef std::function<void(Sink::ApplicationDomain::ApplicationDomainType &domainObject)> ResultTransformation; 36 typedef std::function<void(Sink::ApplicationDomain::ApplicationDomainType &domainObject)> ResultTransformation;
39 37
diff --git a/common/resourceaccess.h b/common/resourceaccess.h
index c32566b..b6a0b34 100644
--- a/common/resourceaccess.h
+++ b/common/resourceaccess.h
@@ -101,7 +101,6 @@ protected:
101class SINK_EXPORT ResourceAccess : public ResourceAccessInterface 101class SINK_EXPORT ResourceAccess : public ResourceAccessInterface
102{ 102{
103 Q_OBJECT 103 Q_OBJECT
104 SINK_DEBUG_AREA("communication")
105public: 104public:
106 typedef QSharedPointer<ResourceAccess> Ptr; 105 typedef QSharedPointer<ResourceAccess> Ptr;
107 106
@@ -158,7 +157,6 @@ private:
158 */ 157 */
159class SINK_EXPORT ResourceAccessFactory 158class SINK_EXPORT ResourceAccessFactory
160{ 159{
161 SINK_DEBUG_AREA("ResourceAccessFactory")
162public: 160public:
163 static ResourceAccessFactory &instance(); 161 static ResourceAccessFactory &instance();
164 Sink::ResourceAccess::Ptr getAccess(const QByteArray &instanceIdentifier, const QByteArray resourceType); 162 Sink::ResourceAccess::Ptr getAccess(const QByteArray &instanceIdentifier, const QByteArray resourceType);
diff --git a/common/resourcecontrol.cpp b/common/resourcecontrol.cpp
index 70a3f7d..b6a4c0b 100644
--- a/common/resourcecontrol.cpp
+++ b/common/resourcecontrol.cpp
@@ -30,8 +30,6 @@
30#include "log.h" 30#include "log.h"
31#include "notifier.h" 31#include "notifier.h"
32 32
33SINK_DEBUG_AREA("resourcecontrol")
34
35namespace Sink { 33namespace Sink {
36 34
37KAsync::Job<void> ResourceControl::shutdown(const QByteArray &identifier) 35KAsync::Job<void> ResourceControl::shutdown(const QByteArray &identifier)
diff --git a/common/resourcefacade.cpp b/common/resourcefacade.cpp
index 0cf9df2..e6f98a9 100644
--- a/common/resourcefacade.cpp
+++ b/common/resourcefacade.cpp
@@ -27,8 +27,6 @@
27 27
28using namespace Sink; 28using namespace Sink;
29 29
30SINK_DEBUG_AREA("ResourceFacade")
31
32template<typename DomainType> 30template<typename DomainType>
33ConfigNotifier LocalStorageFacade<DomainType>::sConfigNotifier; 31ConfigNotifier LocalStorageFacade<DomainType>::sConfigNotifier;
34 32
diff --git a/common/specialpurposepreprocessor.cpp b/common/specialpurposepreprocessor.cpp
index 25a6d1a..54f7f46 100644
--- a/common/specialpurposepreprocessor.cpp
+++ b/common/specialpurposepreprocessor.cpp
@@ -5,8 +5,6 @@
5 5
6using namespace Sink; 6using namespace Sink;
7 7
8SINK_DEBUG_AREA("SpecialPurposeProcessor")
9
10static QHash<QByteArray, QString> specialPurposeFolders() 8static QHash<QByteArray, QString> specialPurposeFolders()
11{ 9{
12 QHash<QByteArray, QString> hash; 10 QHash<QByteArray, QString> hash;
diff --git a/common/storage_common.cpp b/common/storage_common.cpp
index dfcfc2a..1426cd5 100644
--- a/common/storage_common.cpp
+++ b/common/storage_common.cpp
@@ -24,8 +24,6 @@
24#include "log.h" 24#include "log.h"
25#include <QUuid> 25#include <QUuid>
26 26
27SINK_DEBUG_AREA("storage")
28
29QDebug& operator<<(QDebug &dbg, const Sink::Storage::DataStore::Error &error) 27QDebug& operator<<(QDebug &dbg, const Sink::Storage::DataStore::Error &error)
30{ 28{
31 dbg << error.message << "Code: " << error.code << "Db: " << error.store; 29 dbg << error.message << "Code: " << error.code << "Db: " << error.store;
diff --git a/common/store.cpp b/common/store.cpp
index 0eefe69..4735113 100644
--- a/common/store.cpp
+++ b/common/store.cpp
@@ -36,8 +36,6 @@
36#include "storage.h" 36#include "storage.h"
37#include "log.h" 37#include "log.h"
38 38
39SINK_DEBUG_AREA("store")
40
41Q_DECLARE_METATYPE(QSharedPointer<Sink::ResultEmitter<Sink::ApplicationDomain::SinkResource::Ptr>>) 39Q_DECLARE_METATYPE(QSharedPointer<Sink::ResultEmitter<Sink::ApplicationDomain::SinkResource::Ptr>>)
42Q_DECLARE_METATYPE(QSharedPointer<Sink::ResourceAccessInterface>); 40Q_DECLARE_METATYPE(QSharedPointer<Sink::ResourceAccessInterface>);
43Q_DECLARE_METATYPE(std::shared_ptr<void>); 41Q_DECLARE_METATYPE(std::shared_ptr<void>);
diff --git a/common/synchronizerstore.cpp b/common/synchronizerstore.cpp
index 5364094..79cd920 100644
--- a/common/synchronizerstore.cpp
+++ b/common/synchronizerstore.cpp
@@ -25,8 +25,6 @@
25 25
26using namespace Sink; 26using namespace Sink;
27 27
28SINK_DEBUG_AREA("synchronizerstore")
29
30SynchronizerStore::SynchronizerStore(Sink::Storage::DataStore::Transaction &transaction) 28SynchronizerStore::SynchronizerStore(Sink::Storage::DataStore::Transaction &transaction)
31 : mTransaction(transaction) 29 : mTransaction(transaction)
32{ 30{
diff --git a/common/test.cpp b/common/test.cpp
index 90586ba..f9bfa23 100644
--- a/common/test.cpp
+++ b/common/test.cpp
@@ -29,8 +29,6 @@
29#include "resourceconfig.h" 29#include "resourceconfig.h"
30#include "definitions.h" 30#include "definitions.h"
31 31
32SINK_DEBUG_AREA("test")
33
34using namespace Sink; 32using namespace Sink;
35 33
36void Sink::Test::initTest() 34void Sink::Test::initTest()
diff --git a/common/typeindex.cpp b/common/typeindex.cpp
index 153aa43..3e66ffe 100644
--- a/common/typeindex.cpp
+++ b/common/typeindex.cpp
@@ -22,8 +22,6 @@
22#include "index.h" 22#include "index.h"
23#include <QDateTime> 23#include <QDateTime>
24 24
25SINK_DEBUG_AREA("typeindex")
26
27using namespace Sink; 25using namespace Sink;
28 26
29static QByteArray getByteArray(const QVariant &value) 27static QByteArray getByteArray(const QVariant &value)