Commit 5efb99ef authored by Laurent Montel's avatar Laurent Montel 😁

Create debug categories

parent fa94c8ea
......@@ -9,3 +9,5 @@ log_kaddressbook_sendvcards kdepim-addons (kaddressbook sendvcards plugins)
log_kaddressbook_sendmail kdepim-addons (kaddressbook sendmail plugins)
log_kmail_zoomtexteditorplugin kdepim-addons (kmail zoomtext editor plugins)
log_kmail_changecaseeditorplugin kdepim-addons (kmail changecase editor plugins)
log_adblockinterceptor kdepim-addons (adblock interceptor)
log_donottrackinterceptor kdepim-addons (do not track interceptor)
......@@ -4,6 +4,9 @@ set(messageviewer_webengineurlinterceptor_adblock_SRCS
adblockpluginurlinterceptorconfigurewidget.cpp
)
ecm_qt_declare_logging_category(messageviewer_webengineurlinterceptor_adblock_SRCS HEADER adblockinterceptor_debug.h IDENTIFIER ADBLOCKINTERCEPTOR_LOG CATEGORY_NAME log_adblockinterceptor)
add_library(messageviewer_adblockplugin MODULE ${messageviewer_webengineurlinterceptor_adblock_SRCS})
target_link_libraries(messageviewer_adblockplugin
......
......@@ -27,7 +27,6 @@ K_PLUGIN_FACTORY_WITH_JSON(AdblockPluginUrlInterceptorFactory, "messageviewer_ad
AdblockPluginUrlInterceptor::AdblockPluginUrlInterceptor(QObject *parent, const QList<QVariant> &)
: MessageViewer::NetworkPluginUrlInterceptor(parent)
{
qDebug() << " AdblockPluginUrlInterceptor::AdblockPluginUrlInterceptor(QObject *parent, const QList<QVariant> &)" << this;
}
AdblockPluginUrlInterceptor::~AdblockPluginUrlInterceptor()
......
......@@ -3,6 +3,8 @@ set(messageviewer_webengineurlinterceptor_donottrack_SRCS
donottrackpluginurlinterceptor.cpp
)
ecm_qt_declare_logging_category(messageviewer_webengineurlinterceptor_donottrack_SRCS HEADER donottrackinterceptor_debug.h IDENTIFIER DONOTTRACKINTERCEPTOR_LOG CATEGORY_NAME log_donottrackinterceptor)
kconfig_add_kcfg_files(messageviewer_webengineurlinterceptor_donottrack_SRCS
settings/donottrack.kcfgc
)
......
......@@ -25,7 +25,6 @@ K_PLUGIN_FACTORY_WITH_JSON(DoNotTrackPluginUrlInterceptorFactory, "messageviewer
DoNotTrackPluginUrlInterceptor::DoNotTrackPluginUrlInterceptor(QObject *parent, const QList<QVariant> &)
: MessageViewer::NetworkPluginUrlInterceptor(parent)
{
qDebug() << " DoNotTrackPluginUrlInterceptor::DoNotTrackPluginUrlInterceptor(QObject *parent, const QList<QVariant> &)" << this;
}
DoNotTrackPluginUrlInterceptor::~DoNotTrackPluginUrlInterceptor()
......
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