Commit 54882f1a authored by Stefan Brüns's avatar Stefan Brüns
Browse files

[kio/filenamesearch] Use ecm_qt_declare_logging_category

parent 4c4f76d5
......@@ -2,6 +2,12 @@ add_library(kio_filenamesearch MODULE kio_filenamesearch.cpp)
target_link_libraries(kio_filenamesearch KF5::KIOCore KF5::DBusAddons Qt5::Network KF5::KIOCore KF5::I18n)
set_target_properties(kio_filenamesearch PROPERTIES OUTPUT_NAME "filenamesearch")
ecm_qt_declare_logging_category(kio_filenamesearch
HEADER kio_filenamesearch_debug.h
IDENTIFIER KIO_FILENAMESEARCH
CATEGORY_NAME kio_filenamesearch
)
install(TARGETS kio_filenamesearch DESTINATION ${KDE_INSTALL_PLUGINDIR}/kf5/kio)
install(FILES filenamesearch.protocol DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
......
......@@ -19,8 +19,6 @@
#include <QDBusInterface>
#include <KLocalizedString>
Q_LOGGING_CATEGORY(KIO_FILENAMESEARCH, "kio_filenamesearch")
FileNameSearchProtocol::FileNameSearchProtocol(const QByteArray &pool, const QByteArray &app)
: SlaveBase("search", pool, app)
{
......
......@@ -7,18 +7,16 @@
#ifndef KIO_FILENAMESEARCH_H
#define KIO_FILENAMESEARCH_H
#include "kio_filenamesearch_debug.h"
#include <kio/slavebase.h>
#include <functional>
#include <QLoggingCategory>
class QUrl;
class QRegularExpression;
class KFileItem;
Q_DECLARE_LOGGING_CATEGORY(KIO_FILENAMESEARCH)
/**
* @brief Lists files where the filename matches do a given query.
*
......
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