Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit ccdfa524 authored by Alexander Potashev's avatar Alexander Potashev

Use ecm_qt_declare_logging_category()

parent d8e7fb82
......@@ -2,7 +2,7 @@ project(kget)
cmake_minimum_required(VERSION 2.8.12)
find_package(ECM REQUIRED NO_MODULE)
find_package(ECM 5.14.0 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} "${CMAKE_SOURCE_DIR}/cmake")
......@@ -13,6 +13,7 @@ include(KDECompilerSettings)
include(ECMInstallIcons)
include(ECMMarkAsTest)
include(GenerateExportHeader)
include(ECMQtDeclareLoggingCategory)
find_package(KF5 REQUIRED WidgetsAddons CoreAddons Solid Wallet
Config DBusAddons I18n ConfigWidgets Notifications KIO KDELibs4Support IconThemes KCMUtils NotifyConfig)
......@@ -120,7 +121,6 @@ remove_definitions(-DQT_NO_HTTP)
# kgetcore
set(kgetcore_SRCS
kget_debug.cpp
core/job.cpp
core/jobqueue.cpp
core/kget.cpp
......@@ -162,6 +162,11 @@ set(kgetcore_SRCS
core/filedeleter.cpp
)
ecm_qt_declare_logging_category(kgetcore_SRCS
HEADER kget_debug.h
IDENTIFIER KGET_DEBUG
CATEGORY_NAME kget)
kconfig_add_kcfg_files(kgetcore_SRCS conf/settings.kcfgc)
qt5_add_dbus_adaptor(kgetcore_SRCS dbus/org.kde.kget.transfer.xml dbus/dbustransferwrapper.h DBusTransferWrapper)
......
/* This file is part of the KDE project
Copyright (C) 2014 Laurent Montel <montel@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "kget_debug.h"
Q_LOGGING_CATEGORY(KGET_DEBUG, "log_kget")
/* This file is part of the KDE project
Copyright (C) 2014 Laurent Montel <montel@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef KGET_DEBUG_H
#define KGET_DEBUG_H
#include <QLoggingCategory>
Q_DECLARE_LOGGING_CATEGORY(KGET_DEBUG)
#endif
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