summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-06-24 07:48:19 +0200
committerMontel Laurent <[email protected]>2017-06-24 07:48:19 +0200
commit34bfbdf0bc647980cca02f4c85d481fc438854ab (patch)
tree6ddf75e0a1a4e5a067a20067a3024baac79516c9
parentf32ed51812bbc3cbc4ae435fd1f9a80218901c41 (diff)
Add info in kdepim-runtime.
-rw-r--r--kdepim-runtime.categories1
-rw-r--r--resources/facebook/CMakeLists.txt2
-rw-r--r--resources/facebook/graph.cpp2
-rw-r--r--resources/facebook/listjob.cpp2
-rw-r--r--resources/facebook/resource.cpp2
5 files changed, 5 insertions, 4 deletions
diff --git a/kdepim-runtime.categories b/kdepim-runtime.categories
index 08b830d..f971f65 100644
--- a/kdepim-runtime.categories
+++ b/kdepim-runtime.categories
@@ -19,3 +19,4 @@ org.kde.pim.resources_contacts contacts resource (kdepim-runtime)
org.kde.pim.pop3 kioslave (kdepim-runtime)
org.kde.pim.tomboynotesresource tomboynote resource (kdepim-runtime)
org.kde.pim.invitationagent invitationagent agent (kdepim-runtime)
+org.kde.pim.fbresource facebook resource (kdepim-runtime)
diff --git a/resources/facebook/CMakeLists.txt b/resources/facebook/CMakeLists.txt
index 563b5b8..658a5b8 100644
--- a/resources/facebook/CMakeLists.txt
+++ b/resources/facebook/CMakeLists.txt
@@ -15,7 +15,7 @@ qt5_wrap_ui(fbresource_SRCS
settingsdialog.ui
)
-ecm_qt_declare_logging_category(fbresource_SRCS HEADER resource_debug.h IDENTIFIER RESOURCE_LOG CATEGORY_NAME org.kde.pim.fbresource)
+ecm_qt_declare_logging_category(fbresource_SRCS HEADER resource_debug.h IDENTIFIER FBRESOURCE_LOG CATEGORY_NAME org.kde.pim.fbresource)
kcfg_generate_dbus_interface(settings.kcfg org.kde.Akonadi.Facebook.Settings )
kconfig_add_kcfg_files(fbresource_SRCS settings.kcfgc)
diff --git a/resources/facebook/graph.cpp b/resources/facebook/graph.cpp
index b5039fe..ea0b6e1 100644
--- a/resources/facebook/graph.cpp
+++ b/resources/facebook/graph.cpp
@@ -70,7 +70,7 @@ Graph::RSVP Graph::rsvpFromString(const QString &rsvp)
} else if (rsvp == QLatin1String("birthday")) {
return Birthday;
} else {
- qCDebug(RESOURCE_LOG) << "Unknown RSVP value" << rsvp;
+ qCDebug(FBRESOURCE_LOG) << "Unknown RSVP value" << rsvp;
return NotResponded;
}
}
diff --git a/resources/facebook/listjob.cpp b/resources/facebook/listjob.cpp
index 6c19d4a..b981d1c 100644
--- a/resources/facebook/listjob.cpp
+++ b/resources/facebook/listjob.cpp
@@ -98,7 +98,7 @@ void ListJob::onGraphResponseReceived(KJob *job)
QJsonParseError error;
auto json = QJsonDocument::fromJson(tjob->data(), &error);
if (error.error) {
- qCWarning(RESOURCE_LOG) << "JSON parsing error" << error.error << ", offset" << error.offset;
+ qCWarning(FBRESOURCE_LOG) << "JSON parsing error" << error.error << ", offset" << error.offset;
emitError(i18n("Invalid response from server: JSON parsing error"));
return;
}
diff --git a/resources/facebook/resource.cpp b/resources/facebook/resource.cpp
index 282ec3f..6aabac3 100644
--- a/resources/facebook/resource.cpp
+++ b/resources/facebook/resource.cpp
@@ -139,7 +139,7 @@ bool FacebookResource::retrieveItems(const Akonadi::Item::List &items, const QSe
void FacebookResource::onListJobDone(KJob *job)
{
if (job->error()) {
- qCWarning(RESOURCE_LOG) << "Item sync error:" << job->errorString();
+ qCWarning(FBRESOURCE_LOG) << "Item sync error:" << job->errorString();
cancelTask(job->errorString());
return;
}