Commit 447b06ec authored by Stefan Brüns's avatar Stefan Brüns
Browse files

[kio/nfs] Use ecm_qt_declare_logging_category

parent 2a96a398
......@@ -32,6 +32,12 @@ add_library(kio_nfs MODULE kio_nfs.cpp nfsv2.cpp nfsv3.cpp rpc_nfs3_prot_xdr.c r
target_link_libraries(kio_nfs KF5::KIOCore KF5::I18n Qt5::Network ${TIRPC_LIBRARIES})
set_target_properties(kio_nfs PROPERTIES OUTPUT_NAME "nfs")
ecm_qt_declare_logging_category(kio_nfs
HEADER kio_nfs_debug.h
IDENTIFIER LOG_KIO_NFS
CATEGORY_NAME kde.kio_nfs
)
install(TARGETS kio_nfs DESTINATION ${KDE_INSTALL_PLUGINDIR}/kf5/kio)
########### install files ###############
......
......@@ -28,15 +28,13 @@
#include <kconfiggroup.h>
#include <kio/global.h>
#include "kio_nfs_debug.h"
#include "nfsv2.h"
#include "nfsv3.h"
using namespace KIO;
using namespace std;
Q_LOGGING_CATEGORY(LOG_KIO_NFS, "kde.kio-nfs")
extern "C" int Q_DECL_EXPORT kdemain(int argc, char** argv);
int kdemain(int argc, char** argv)
......
......@@ -17,13 +17,10 @@
#include <QString>
#include <QStringList>
#include <QTimer>
#include <QLoggingCategory>
#include "rpc_nfs2_prot.h"
#include "rpc_nfs3_prot.h"
Q_DECLARE_LOGGING_CATEGORY(LOG_KIO_NFS);
class NFSProtocol;
class NFSSlave : public QObject, public KIO::SlaveBase
......
......@@ -7,6 +7,7 @@
*/
#include "nfsv2.h"
#include "kio_nfs_debug.h"
#include <config-runtime.h>
......@@ -33,7 +34,6 @@
#include <QFile>
#include <QDir>
#include <QDebug>
#include <QLoggingCategory>
#include <QMimeDatabase>
#include <QMimeType>
......
......@@ -7,6 +7,7 @@
*/
#include "nfsv3.h"
#include "kio_nfs_debug.h"
#include <config-runtime.h>
......@@ -33,7 +34,6 @@
#include <QFile>
#include <QDir>
#include <QDebug>
#include <QLoggingCategory>
#include <QMimeType>
#include <QMimeDatabase>
......
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