Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
KIO Extras
Commits
447b06ec
Commit
447b06ec
authored
May 06, 2021
by
Stefan Brüns
Browse files
[kio/nfs] Use ecm_qt_declare_logging_category
parent
2a96a398
Changes
5
Hide whitespace changes
Inline
Side-by-side
nfs/CMakeLists.txt
View file @
447b06ec
...
...
@@ -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 ###############
...
...
nfs/kio_nfs.cpp
View file @
447b06ec
...
...
@@ -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
)
...
...
nfs/kio_nfs.h
View file @
447b06ec
...
...
@@ -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
...
...
nfs/nfsv2.cpp
View file @
447b06ec
...
...
@@ -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>
...
...
nfs/nfsv3.cpp
View file @
447b06ec
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment