Commit 34bfbdf0 authored by Laurent Montel's avatar Laurent Montel 😁

Add info in kdepim-runtime.

parent f32ed518
...@@ -19,3 +19,4 @@ org.kde.pim.resources_contacts contacts resource (kdepim-runtime) ...@@ -19,3 +19,4 @@ org.kde.pim.resources_contacts contacts resource (kdepim-runtime)
org.kde.pim.pop3 kioslave (kdepim-runtime) org.kde.pim.pop3 kioslave (kdepim-runtime)
org.kde.pim.tomboynotesresource tomboynote resource (kdepim-runtime) org.kde.pim.tomboynotesresource tomboynote resource (kdepim-runtime)
org.kde.pim.invitationagent invitationagent agent (kdepim-runtime) org.kde.pim.invitationagent invitationagent agent (kdepim-runtime)
org.kde.pim.fbresource facebook resource (kdepim-runtime)
...@@ -15,7 +15,7 @@ qt5_wrap_ui(fbresource_SRCS ...@@ -15,7 +15,7 @@ qt5_wrap_ui(fbresource_SRCS
settingsdialog.ui 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 ) kcfg_generate_dbus_interface(settings.kcfg org.kde.Akonadi.Facebook.Settings )
kconfig_add_kcfg_files(fbresource_SRCS settings.kcfgc) kconfig_add_kcfg_files(fbresource_SRCS settings.kcfgc)
......
...@@ -70,7 +70,7 @@ Graph::RSVP Graph::rsvpFromString(const QString &rsvp) ...@@ -70,7 +70,7 @@ Graph::RSVP Graph::rsvpFromString(const QString &rsvp)
} else if (rsvp == QLatin1String("birthday")) { } else if (rsvp == QLatin1String("birthday")) {
return Birthday; return Birthday;
} else { } else {
qCDebug(RESOURCE_LOG) << "Unknown RSVP value" << rsvp; qCDebug(FBRESOURCE_LOG) << "Unknown RSVP value" << rsvp;
return NotResponded; return NotResponded;
} }
} }
......
...@@ -98,7 +98,7 @@ void ListJob::onGraphResponseReceived(KJob *job) ...@@ -98,7 +98,7 @@ void ListJob::onGraphResponseReceived(KJob *job)
QJsonParseError error; QJsonParseError error;
auto json = QJsonDocument::fromJson(tjob->data(), &error); auto json = QJsonDocument::fromJson(tjob->data(), &error);
if (error.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")); emitError(i18n("Invalid response from server: JSON parsing error"));
return; return;
} }
......
...@@ -139,7 +139,7 @@ bool FacebookResource::retrieveItems(const Akonadi::Item::List &items, const QSe ...@@ -139,7 +139,7 @@ bool FacebookResource::retrieveItems(const Akonadi::Item::List &items, const QSe
void FacebookResource::onListJobDone(KJob *job) void FacebookResource::onListJobDone(KJob *job)
{ {
if (job->error()) { if (job->error()) {
qCWarning(RESOURCE_LOG) << "Item sync error:" << job->errorString(); qCWarning(FBRESOURCE_LOG) << "Item sync error:" << job->errorString();
cancelTask(job->errorString()); cancelTask(job->errorString());
return; return;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment