File indexing completed on 2024-04-28 04:50:48

0001 /*
0002  * log.h
0003  *
0004  * Copyright (C) 2017 Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
0005  *
0006  * This program is free software; you can redistribute it and/or modify
0007  * it under the terms of the GNU General Public License as published by
0008  * the Free Software Foundation; either version 2 of the License, or
0009  * (at your option) any later version.
0010  *
0011  * This program is distributed in the hope that it will be useful,
0012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0014  * GNU General Public License for more details.
0015  *
0016  * You should have received a copy of the GNU General Public License along
0017  * with this program; if not, write to the Free Software Foundation, Inc.,
0018  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
0019  */
0020 
0021 #ifndef LOG_H
0022 #define LOG_H
0023 
0024 #include <KLocalizedString>
0025 
0026 #include <QDebug>
0027 #if QT_VERSION < 0x050500
0028 # define qInfo qDebug
0029 #endif
0030 
0031 #include <QLoggingCategory>
0032 
0033 // Log categories. Should match the ones at mainwindow.cpp
0034 
0035 Q_DECLARE_LOGGING_CATEGORY(logCam)
0036 Q_DECLARE_LOGGING_CATEGORY(logDev)
0037 Q_DECLARE_LOGGING_CATEGORY(logDvb)
0038 Q_DECLARE_LOGGING_CATEGORY(logDvbSi)
0039 Q_DECLARE_LOGGING_CATEGORY(logEpg)
0040 
0041 Q_DECLARE_LOGGING_CATEGORY(logConfig)
0042 Q_DECLARE_LOGGING_CATEGORY(logMediaWidget)
0043 Q_DECLARE_LOGGING_CATEGORY(logPlaylist)
0044 Q_DECLARE_LOGGING_CATEGORY(logSql)
0045 Q_DECLARE_LOGGING_CATEGORY(logVlc)
0046 
0047 #endif