2 changes: 1 addition & 1 deletion mythtv/libs/libmyth/mediamonitor-darwin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "mythcdrom.h"
#include "mythhdd.h"

#include "mythverbose.h"
#include "mythlogging.h"

#include <IOKit/IOKitLib.h>
#include <IOKit/storage/IOMedia.h>
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmyth/mediamonitor-unix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ using namespace std;
#include "mythconfig.h"
#include "mythcdrom.h"
#include "mythhdd.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythsystem.h"
#include "exitcodes.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmyth/mediamonitor-windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "mediamonitor-windows.h"
#include "mythcdrom.h"
#include "mythhdd.h"
#include "mythverbose.h"
#include "mythlogging.h"


/**
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmyth/mythcommandlineparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ using namespace std;
#include "exitcodes.h"
#include "mythconfig.h"
#include "mythcontext.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythversion.h"
#include "util.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmyth/mythconfiggroups.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include "mythconfiggroups.h"
#include "mythcontext.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythuihelper.h"

static void clear_widgets(vector<Configurable*> &children,
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmyth/mythcontext.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "mythcorecontext.h"
#include "mythevent.h"
#include "mythexp.h"
#include "mythverbose.h"
#include "mythlogging.h"

class MythPluginManager;
class MythContextPrivate;
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmyth/mythdialogs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ using namespace std;
#include "mythdbcon.h"
#include "mythfontproperties.h"
#include "mythuihelper.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythcorecontext.h"

#ifdef USING_MINGW
Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmyth/mythmediamonitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ using namespace std;
#include "mythdialogs.h"
#include "mythconfig.h"
#include "mythdialogbox.h"
#include "mythverbose.h"
#include "util.h"
#include "mythlogging.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmyth/mythplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "mythdirs.h"
#include "mythversion.h"
#include "mythverbose.h"
#include "mythlogging.h"

using namespace std;

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmyth/mythrssmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include "mythdirs.h"
#include "mythcontext.h"
#include "mythverbose.h"
#include "mythlogging.h"

#include "mythrssmanager.h"
#include "netutils.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmyth/mythwidgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ using namespace std;
#include "mythcontext.h"
#include "util.h"
#include "mythdialogs.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythmainwindow.h"

typedef VirtualKeyboardQt* QWidgetP;
Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmyth/netgrabbermanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#include "mythdirs.h"
#include "mythcontext.h"
#include "mythverbose.h"
#include "mythsystem.h"
#include "exitcodes.h"
#include "util.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmyth/programinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ using namespace std;
#include "dialogbox.h"
#include "remoteutil.h"
#include "mythdb.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "storagegroup.h"
#include "programinfoupdater.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmyth/rawsettingseditor.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

#include "mythcorecontext.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythuibutton.h"
#include "mythuibuttonlist.h"
#include "mythuitext.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmyth/schemawizard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "util.h"

#include "mythtimer.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythmainwindow.h"
#include "mythuihelper.h"
#include "mythdb.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmyth/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ using namespace std;
#include "mythwidgets.h"
#include "mythcontext.h"
#include "mythdb.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "DisplayRes.h"
#include "mythuihelper.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmyth/storagegroupeditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "storagegroupeditor.h"
#include "mythcorecontext.h"
#include "mythdb.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "util.h"

#define LOC QString("SGE(%1): ").arg(m_groupname)
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmyth/uilistbtntype.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ using namespace std;
#include <QPixmap>
#include <QPainter>

#include "mythverbose.h"
#include "mythlogging.h"
#include "lcddevice.h"

#include "uilistbtntype.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmyth/uitypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ using namespace std;
#include "mythuihelper.h"
#include "x11colors.h"

#include "mythverbose.h"
#include "mythlogging.h"

#ifdef USING_MINGW
#undef LoadImage
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmyth/virtualkeyboard_qt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "virtualkeyboard_qt.h"
#include "mythdialogs.h"
#include "uitypes.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythcorecontext.h"

#include "mythfontproperties.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmyth/xmlparse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ using namespace std;
#include "mythfontproperties.h"
#include "mythuihelper.h"
#include "x11colors.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythcorecontext.h"

#ifdef USING_MINGW
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/dbutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "util.h"
#include "mythdb.h"
#include "mythdirs.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythsystem.h"
#include "exitcodes.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/httpcomms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ using namespace std;
#include <QTimer>
#include <QFile>

#include "mythverbose.h"
#include "mythlogging.h"
#include "compat.h"
#include "mcodecs.h"
#include "httpcomms.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/lcddevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

// MythTV headers
#include "lcddevice.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "compat.h"
#include "mythdb.h"
#include "mythdirs.h"
Expand Down
6 changes: 3 additions & 3 deletions mythtv/libs/libmythbase/libmythbase.pro
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ QMAKE_CLEAN += $(TARGET) $(TARGETA) $(TARGETD) $(TARGET0) $(TARGET1) $(TARGET2)
# Input
HEADERS += mythsocket.h mythsocket_cb.h mythsocketthread.h msocketdevice.h
HEADERS += mythbaseexp.h mythdbcon.h mythdb.h mythdbparams.h oldsettings.h
HEADERS += mythverbose.h verbosedefs.h mythversion.h compat.h mythconfig.h
HEADERS += verbosedefs.h mythversion.h compat.h mythconfig.h
HEADERS += mythobservable.h mythevent.h httpcomms.h mcodecs.h
HEADERS += mythtimer.h mythsignalingtimer.h mythdirs.h exitcodes.h
HEADERS += lcddevice.h mythstorage.h remotefile.h
Expand All @@ -24,7 +24,7 @@ HEADERS += mythhttppool.h mythhttphandler.h mythdeque.h mythlogging.h
HEADERS += mythbaseutil.h referencecounter.h version.h

SOURCES += mythsocket.cpp mythsocketthread.cpp msocketdevice.cpp
SOURCES += mythdbcon.cpp mythdb.cpp oldsettings.cpp mythverbose.cpp
SOURCES += mythdbcon.cpp mythdb.cpp oldsettings.cpp
SOURCES += mythobservable.cpp mythevent.cpp httpcomms.cpp mcodecs.cpp
SOURCES += mythdirs.cpp mythsignalingtimer.cpp
SOURCES += lcddevice.cpp mythstorage.cpp remotefile.cpp
Expand All @@ -49,7 +49,7 @@ mingw {

# Install headers to same location as libmyth to make things easier
inc.path = $${PREFIX}/include/mythtv/
inc.files = mythverbose.h mythdbcon.h mythdbparams.h mythbaseexp.h mythdb.h
inc.files = mythdbcon.h mythdbparams.h mythbaseexp.h mythdb.h
inc.files += compat.h mythversion.h mythconfig.h mythconfig.mak version.h
inc.files += mythobservable.h mythevent.h httpcomms.h mcodecs.h verbosedefs.h
inc.files += mythtimer.h lcddevice.h exitcodes.h mythdirs.h mythstorage.h
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/msocketdevice_unix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
****************************************************************************/

#include "qplatformdefs.h"
#include "mythverbose.h"
#include "mythlogging.h"

// Almost always the same. If not, specify in qplatformdefs.h.
#if !defined(QT_SOCKOPTLEN_T)
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/msocketdevice_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
#include <QDateTime>

#include <QCoreApplication>
#include "mythverbose.h"
#include "mythlogging.h"

#include <string.h>

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/mythbaseutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <QString>

// MythTV
#include "mythverbose.h"
#include "mythlogging.h"

#ifdef USING_MINGW
static inline void setup_pipe(int[2], long[2]) {}
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/mythcdrom-darwin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include "mythcdrom.h"
#include "mythcdrom-darwin.h"
#include "mythverbose.h"
#include "mythlogging.h"

#define LOC QString("MythCDROMDarwin:")
#define LOC_ERR QString("mythcdrom-darwin, Error: ")
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/mythcdrom-freebsd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include "mythcdrom.h"
#include "mythcdrom-freebsd.h"
#include "mythverbose.h"
#include "mythlogging.h"


#define ASSUME_WANT_AUDIO 1
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/mythcdrom-linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "mythcdrom.h"
#include "mythcdrom-linux.h"
#include "mythconfig.h" // for HAVE_BIGENDIAN
#include "mythverbose.h"
#include "mythlogging.h"
#ifdef USING_LIBUDF
#include <cdio/udf.h>
#endif
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/mythcdrom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#elif CONFIG_DARWIN
#include "mythcdrom-darwin.h"
#endif
#include "mythverbose.h"
#include "mythlogging.h"


// If your DVD has directories in lowercase, then it is wrongly mounted!
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/mythcorecontext.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "mythbaseexp.h"
#include "mythobservable.h"
#include "mythsocket_cb.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythlocale.h"

#define MYTH_APPNAME_MYTHBACKEND "mythbackend"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/mythcoreutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

// libmythbase headers
#include "mythcorecontext.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "unzip.h"

/** \fn getDiskSpace(const QString&,long long&,long long&)
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/mythdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ using namespace std;

#include "mythdb.h"
#include "mythdbcon.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "oldsettings.h"
#include "mythdirs.h"
#include "mythcorecontext.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/mythdbcon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "compat.h"
#include "mythdbcon.h"
#include "mythdb.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythsystem.h"
#include "exitcodes.h"
#include <unistd.h>
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/mythdirs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include "mythconfig.h" // for CONFIG_DARWIN
#include "mythdirs.h"
#include "mythverbose.h"
#include "mythlogging.h"

static QString installprefix = QString::null;
static QString sharedir = QString::null;
Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmythbase/mythdownloadmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include "mythcoreutil.h"
#include "mythdirs.h"
#include "mythevent.h"
#include "mythverbose.h"
#include "mythversion.h"
#include "remotefile.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/mythhttphandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// Myth headers
#include "mythhttphandler.h"
#include "mythhttppool.h"
#include "mythverbose.h"
#include "mythlogging.h"

#define LOC QString("MythHttpHandler: ")
#define LOC_WARN QString("MythHttpHandler, Warning: ")
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/mythhttppool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Myth headers
#include "mythhttppool.h"
#include "mythhttphandler.h"
#include "mythverbose.h"
#include "mythlogging.h"

#define LOC QString("MythHttpPool: ")
#define LOC_WARN QString("MythHttpPool, Warning: ")
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/mythlocale.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <QIODevice>

// libmythbase
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythdb.h"
#include "mythdirs.h"

Expand Down
205 changes: 204 additions & 1 deletion mythtv/libs/libmythbase/mythlogging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,19 @@
#include <QHash>
#include <QCoreApplication>
#include <QFileInfo>
#include <QStringList>
#include <QMap>
#include <iostream>

using namespace std;

#define _LogLevelNames_
#include "mythlogging.h"
#include "mythverbose.h"
#include "mythconfig.h"
#include "mythdb.h"
#include "mythcorecontext.h"
#include "dbutil.h"
#include "exitcodes.h"

#include <stdlib.h>
#define SYSLOG_NAMES
Expand Down Expand Up @@ -64,12 +69,40 @@ QString logPropagatePath;

LogLevel_t logLevel = (LogLevel_t)LOG_INFO;

typedef struct {
uint64_t mask;
QString name;
bool additive;
QString helpText;
} VerboseDef;

typedef QMap<QString, VerboseDef *> VerboseMap;

bool verboseInitialized = false;
VerboseMap verboseMap;
QMutex verboseMapMutex;

const uint64_t verboseDefaultInt = VB_IMPORTANT | VB_GENERAL;
const char *verboseDefaultStr = " important general";

uint64_t verboseMask = verboseDefaultInt;
QString verboseString = QString(verboseDefaultStr);

unsigned int userDefaultValueInt = verboseDefaultInt;
QString userDefaultValueStr = QString(verboseDefaultStr);
bool haveUserDefaultValues = false;

void verboseAdd(uint64_t mask, QString name, bool additive, QString helptext);
void verboseInit(void);
void verboseHelp();

char *getThreadName( LoggingItem_t *item );
int64_t getThreadTid( LoggingItem_t *item );
void setThreadTid( LoggingItem_t *item );
void deleteItem( LoggingItem_t *item );
void logSighup( int signum, siginfo_t *info, void *secret );


LoggerBase::LoggerBase(char *string, int number)
{
QMutexLocker locker(&loggerListMutex);
Expand Down Expand Up @@ -897,6 +930,176 @@ LogLevel_t logLevelGet(QString level)
return LOG_UNKNOWN;
}


void verboseAdd(uint64_t mask, QString name, bool additive, QString helptext)
{
VerboseDef *item = new VerboseDef;

item->mask = mask;
name.detach();
// VB_GENERAL -> general
name.remove(0, 3);
name = name.toLower();
item->name = name;
item->additive = additive;
helptext.detach();
item->helpText = helptext;

verboseMap.insert(name, item);
}

void verboseInit(void)
{
QMutexLocker locker(&verboseMapMutex);
verboseMap.clear();

// This looks funky, so I'll put some explanation here. The verbosedefs.h
// file gets included as part of the mythlogging.h include, and at that
// time, the normal (without _IMPLEMENT_VERBOSE defined) code case will
// define the VerboseMask enum. At this point, we force it to allow us
// to include the file again, but with _IMPLEMENT_VERBOSE set so that the
// single definition of the VB_* values can be shared to define also the
// contents of verboseMap, via repeated calls to verboseAdd()

#undef VERBOSEDEFS_H_
#define _IMPLEMENT_VERBOSE
#include "verbosedefs.h"

verboseInitialized = true;
}

void verboseHelp()
{
QString m_verbose = verboseString.trimmed();
m_verbose.replace(QRegExp(" "), ",");
m_verbose.remove(QRegExp("^,"));

cerr << "Verbose debug levels.\n"
"Accepts any combination (separated by comma) of:\n\n";

for (VerboseMap::Iterator vit = verboseMap.begin();
vit != verboseMap.end(); ++vit )
{
VerboseDef *item = vit.value();
QString name = QString(" %1").arg(item->name, -15, ' ');
cerr << name.toLocal8Bit().constData() << " - " <<
item->helpText.toLocal8Bit().constData() << endl;
}

cerr << endl <<
"The default for this program appears to be: '-v " <<
m_verbose.toLocal8Bit().constData() << "'\n\n"
"Most options are additive except for none, all, and important.\n"
"These three are semi-exclusive and take precedence over any\n"
"prior options given. You can however use something like\n"
"'-v none,jobqueue' to get only JobQueue related messages\n"
"and override the default verbosity level.\n\n"
"The additive options may also be subtracted from 'all' by \n"
"prefixing them with 'no', so you may use '-v all,nodatabase'\n"
"to view all but database debug messages.\n\n"
"Some debug levels may not apply to this program.\n\n";
}

int verboseArgParse(QString arg)
{
QString option;

if (!verboseInitialized)
verboseInit();

QMutexLocker locker(&verboseMapMutex);

verboseMask = verboseDefaultInt;
verboseString = QString(verboseDefaultStr);

if (arg.startsWith('-'))
{
cerr << "Invalid or missing argument to -v/--verbose option\n";
return GENERIC_EXIT_INVALID_CMDLINE;
}

QStringList verboseOpts = arg.split(',');
for (QStringList::Iterator it = verboseOpts.begin();
it != verboseOpts.end(); ++it )
{
option = (*it).toLower();
bool reverseOption = false;

if (option != "none" && option.left(2) == "no")
{
reverseOption = true;
option = option.right(option.length() - 2);
}

if (option == "help")
{
verboseHelp();
return GENERIC_EXIT_INVALID_CMDLINE;
}
else if (option == "default")
{
if (haveUserDefaultValues)
{
verboseMask = userDefaultValueInt;
verboseString = userDefaultValueStr;
}
else
{
verboseMask = verboseDefaultInt;
verboseString = QString(verboseDefaultStr);
}
}
else
{
VerboseDef *item = verboseMap.value(option);

if (item)
{
if (reverseOption)
{
verboseMask &= ~(item->mask);
verboseString += " no" + item->name;
}
else
{
if (item->additive)
{
verboseMask |= item->mask;
verboseString += ' ' + item->name;
}
else
{
verboseMask = item->mask;
verboseString = item->name;
}
}
}
else
{
cerr << "Unknown argument for -v/--verbose: " <<
option.toLocal8Bit().constData() << endl;;
return GENERIC_EXIT_INVALID_CMDLINE;
}
}
}

if (!haveUserDefaultValues)
{
haveUserDefaultValues = true;
userDefaultValueInt = verboseMask;
userDefaultValueStr = verboseString;
}

return GENERIC_EXIT_OK;
}

// Verbose helper function for ENO macro
QString logStrerror(int errnum)
{
return QString("%1 (%2)").arg(strerror(errnum)).arg(errnum);
}


/*
* vim:ts=4:sw=4:ai:et:si:sts=4
*/
41 changes: 41 additions & 0 deletions mythtv/libs/libmythbase/mythlogging.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
#include <stdint.h>
#include <time.h>
#include <unistd.h>
#include <errno.h>

#include "mythbaseexp.h" // MBASE_PUBLIC , etc.
#include "verbosedefs.h"

#define LOGLINE_MAX 2048

Expand Down Expand Up @@ -218,6 +221,44 @@ class DBLoggerThread : public QThread {
};
#endif

/// This global variable is set at startup with the flags
/// of the verbose messages we want to see.
extern MBASE_PUBLIC uint64_t verboseMask;

// Helper for checking verbose flags outside of VERBOSE macro
#define VERBOSE_LEVEL_NONE (verboseMask == 0)
#define VERBOSE_LEVEL_CHECK(mask) ((verboseMask & (mask)) == (mask))

// There are two VERBOSE macros now. One for use with Qt/C++, one for use
// without Qt.
//
// Neither of them will lock the calling thread, but rather put the log message
// onto a queue.

#ifdef __cplusplus
#define VERBOSE(mask, ...) \
LogPrint((uint64_t)(mask), LOG_INFO, QString(__VA_ARGS__))
#else
#define VERBOSE(mask, ...) \
LogPrint((uint64_t)(mask), LOG_INFO, __VA_ARGS__)
#endif


#ifdef __cplusplus
/// Verbose helper function for ENO macro
extern MBASE_PUBLIC QString logStrerror(int errnum);

extern MBASE_PUBLIC QString verboseString;

MBASE_PUBLIC int verboseArgParse(QString arg);

/// This can be appended to the VERBOSE args with
/// "+". Please do not use "<<". It uses
/// a thread safe version of strerror to produce the
/// string representation of errno and puts it on the
/// next line in the verbose output.
#define ENO QString("\n\t\t\teno: ") + logStrerror(errno)
#endif // __cplusplus

#endif

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/mythmedia.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// MythTV headers
#include "mythmedia.h"
#include "mythconfig.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "util.h"
#include "mythsystem.h"
#include "exitcodes.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/mythsocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "mythsocket.h"
#include "mythevent.h"
#include "mythversion.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythcorecontext.h"

#define SLOC(a) QString("MythSocket(%1:%2): ")\
Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmythbase/mythsocketthread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
// MythTV
#include "mythsocketthread.h"
#include "mythbaseutil.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythsocket.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/mythsystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
// libmythbase headers
#include "mythcorecontext.h"
#include "mythevent.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "exitcodes.h"

#if CONFIG_CYGWIN || defined(_WIN32)
Expand Down
210 changes: 0 additions & 210 deletions mythtv/libs/libmythbase/mythverbose.cpp

This file was deleted.

55 changes: 0 additions & 55 deletions mythtv/libs/libmythbase/mythverbose.h

This file was deleted.

2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/oldsettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ using namespace std;
#include <QDir>

#include "oldsettings.h"
#include "mythverbose.h"
#include "mythlogging.h"

Settings::Settings(QString strSettingsFile)
{
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/referencecounter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <QString>
#include <QMutexLocker>
#include "referencecounter.h"
#include "mythverbose.h"
#include "mythlogging.h"

ReferenceCounter::ReferenceCounter(void) :
m_refCount(1)
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/storagegroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "storagegroup.h"
#include "mythcorecontext.h"
#include "mythdb.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythcoreutil.h"
#include "mythdirs.h"

Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmythbase/system-unix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
// libmythbase headers
#include "mythcorecontext.h"
#include "mythevent.h"
#include "mythverbose.h"
#include "exitcodes.h"
#include "mythlogging.h"

Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmythbase/system-windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
// libmythbase headers
#include "mythcorecontext.h"
#include "mythevent.h"
#include "mythverbose.h"
#include "exitcodes.h"
#include "mythlogging.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ using namespace std;
// Myth headers
#include "mythcorecontext.h"
#include "exitcodes.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "msocketdevice.h"
#include "mythsocket.h"
#include "mythcoreutil.h"
Expand Down
8 changes: 4 additions & 4 deletions mythtv/libs/libmythbase/verbosedefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
#include <stdint.h>

/// This file gets included in two different ways:
/// 1) from mythverbose.h from nearly every file. This will define the
/// 1) from mythlogging.h from nearly every file. This will define the
/// VerboseMask enum
/// 2) specifically (and a second include with _IMPLEMENT_VERBOSE defined) from
/// mythverbose.cpp. This is done in verboseInit (in the middle of the
/// mythlogging.cpp. This is done in verboseInit (in the middle of the
/// function) as it will expand out to a series of calls to verboseAdd()
/// to fill the verboseMap.
///
Expand All @@ -19,7 +19,7 @@
///
/// To create a new VB_* flag, this is the only piece of code you need to
/// modify, then you can start using the new flag and it will automatically be
/// processed by the parse_verbose_arg() function and help info printed when
/// processed by the verboseArgParse() function and help info printed when
/// "-v help" is used.

#undef VERBOSE_PREAMBLE
Expand All @@ -28,7 +28,7 @@

#ifdef _IMPLEMENT_VERBOSE

// This is used to actually implement the mask in mythverbose.cpp
// This is used to actually implement the mask in mythlogging.cpp
#define VERBOSE_PREAMBLE
#define VERBOSE_POSTAMBLE
#define VERBOSE_MAP(name,mask,additive,help) \
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythfreesurround/freesurround.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
using namespace std;

#include "compat.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "freesurround.h"
#include "el_processor.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythmetadata/dirscan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "dirscan.h"
#include "remoteutil.h"
#include "mythcontext.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "videoutils.h"
#include "storagegroup.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythmetadata/metadatacommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "rssparse.h"
#include "mythcorecontext.h"
#include "metadatacommon.h"
#include "mythverbose.h"
#include "mythlogging.h"

// null constructor
MetadataLookup::MetadataLookup(void) :
Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmythmetadata/metadatadownload.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// myth
#include "mythcorecontext.h"
#include "mythdirs.h"
#include "mythverbose.h"
#include "mythuihelper.h"
#include "mythsystem.h"
#include "metadatadownload.h"
Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmythmetadata/metadataimagedownload.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "mythcorecontext.h"
#include "mythuihelper.h"
#include "mythdirs.h"
#include "mythverbose.h"
#include "httpcomms.h"
#include "metadataimagedownload.h"
#include "remotefile.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythmetadata/videometadata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "remotefile.h"
#include "remoteutil.h"
#include "util.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "globals.h"
#include "dbaccess.h"
#include "videometadatalistmanager.h"
Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmythprotoserver/mythsocketmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ using namespace std;
#include "referencecounter.h"
#include "mythcorecontext.h"
#include "mythconfig.h"
#include "mythverbose.h"
#include "mythversion.h"
#include "mythlogging.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ using namespace std;
#include "socketrequesthandler.h"
#include "sockethandler.h"
#include "util.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythcorecontext.h"

#include "requesthandler/basehandler.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ using namespace std;

#include "util.h"
#include "mythdb.h"
#include "mythverbose.h"
#include "requesthandler/deletethread.h"
#include "mythcorecontext.h"
#include "mythlogging.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ using namespace std;
#include "mythdb.h"
#include "ringbuffer.h"
#include "mythsocket.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "programinfo.h"
#include "storagegroup.h"
#include "mythcorecontext.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythprotoserver/sockethandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ using namespace std;
#include <QStringList>

#include "sockethandler.h"
#include "mythverbose.h"
#include "mythlogging.h"

SocketHandler::SocketHandler(MythSocket *sock, MythSocketManager *parent,
QString hostname) :
Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmythtv/DeviceReadBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ using namespace std;
#include "DeviceReadBuffer.h"
#include "mythcorecontext.h"
#include "mythbaseutil.h"
#include "mythverbose.h"
#include "tspacket.h"
#include "compat.h"
#include "mythlogging.h"
Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmythtv/NuppelVideoRecorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ using namespace std;

#include "util.h"
#include "mythcontext.h"
#include "mythverbose.h"
#include "NuppelVideoRecorder.h"
#include "channelbase.h"
#include "filtermanager.h"
Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmythtv/ThreadedFileWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

// MythTV headers
#include "ThreadedFileWriter.h"
#include "mythverbose.h"
#include "mythlogging.h"

#include "mythtimer.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/analogsignalmonitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <linux/videodev.h>
#endif // USING_V4L1

#include "mythverbose.h"
#include "mythlogging.h"
#include "analogsignalmonitor.h"
#include "v4lchannel.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/asichannel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

// MythTV includes
#include "mythverbose.h"
#include "mythlogging.h"
#include "mpegtables.h"
#include "asichannel.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/asisignalmonitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <sys/select.h>
#endif

#include "mythverbose.h"
#include "mythlogging.h"
#include "mythdbcon.h"
#include "asisignalmonitor.h"
#include "atscstreamdata.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/audioinput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* 02110-1301, USA.
*/

#include "mythverbose.h"
#include "mythlogging.h"
#include "mythconfig.h"
#include "audioinput.h"
#include "audioinputoss.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/audioinputalsa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* 02110-1301, USA.
*/

#include "mythverbose.h"
#include "mythlogging.h"
#include "audioinputalsa.h"

#define LOC QString("AudioInALSA: ")
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/audioinputoss.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#endif

#include "audioinputoss.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include <fcntl.h>
#include <sys/ioctl.h>

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/bdringbuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "mythevent.h"
#include "iso639.h"
#include "bdringbuffer.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythcorecontext.h"
#include "mythlocale.h"
#include "mythdirs.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/cardutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "diseqcsettings.h"
#include "sourceutil.h"
#include "mythdb.h"
#include "mythverbose.h"
#include "mythlogging.h"

#ifdef USING_DVB
#include "dvbtypes.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/cc608decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ using namespace std;
#include "format.h"
#include "cc608decoder.h"
#include "mythcontext.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "vbilut.h"

#define DEBUG_XDS 0
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/cc708decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <cstdlib>
#include <stdio.h>

#include "mythverbose.h"
#include "mythlogging.h"
#include "cc708reader.h"
#include "cc708decoder.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/cc708reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include <cstdlib>

#include "mythverbose.h"
#include "mythlogging.h"
#include "decoderbase.h"
#include "mythplayer.h"
#include "cc708reader.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/cc708window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using namespace std;

#include "cc708window.h"
#include "mythverbose.h"
#include "mythlogging.h"

/************************************************************************

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/channelbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ using namespace std;
#include "frequencies.h"
#include "hdhrchannel.h"
#include "iptvchannel.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "asichannel.h"
#include "dtvchannel.h"
#include "dvbchannel.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/channelgroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <algorithm>

// mythtv
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythdb.h"
#include "channelgroup.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/channelgroupsettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <iostream>

// myth
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythdb.h"
#include "channelutil.h"
#include "channelgroup.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/channelscan/channelscanner_cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ void ChannelScannerCLI::HandleEvent(const ScannerEvent *scanEvent)
else if (scanEvent->type() == ScannerEvent::SetStatusSignalStrength)
;

//cout<<"HERE<"<<print_verbose_messages<<">"<<endl;
//cout<<"HERE<"<<verboseMask<<">"<<endl;
QString msg;
if (VERBOSE_LEVEL_NONE || VERBOSE_LEVEL_CHECK(VB_CHANSCAN))
{
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/channelscan/scaninfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "mythdb.h"
#include "scaninfo.h"
#include "mythdbcon.h"
#include "mythverbose.h"
#include "mythlogging.h"

ScanInfo::ScanInfo() : scanid(0), cardid(0), sourceid(0), processed(false) { }

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/channelsettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "mythwidgets.h"
#include "mythwizard.h"
#include "mythdb.h"
#include "mythverbose.h"
#include "mythlogging.h"

class QWidget;

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/darwinavcinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ using namespace std;
// MythTV headers
#include "darwinfirewiredevice.h"
#include "darwinavcinfo.h"
#include "mythverbose.h"
#include "mythlogging.h"

#ifndef kIOFireWireAVCLibUnitInterfaceID2
#define kIOFireWireAVCLibUnitInterfaceID2 \
Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmythtv/darwinfirewiredevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ using namespace std;
// MythTV headers
#include "darwinfirewiredevice.h"
#include "darwinavcinfo.h"
#include "mythverbose.h"
#include "mythlogging.h"

// Apple Firewire example headers
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/datadirect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "listingsources.h"
#include "mythcontext.h"
#include "mythdb.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythversion.h"
#include "util.h"
#include "dbutil.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/dbcheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ using namespace std;
#include "mythcorecontext.h"
#include "schemawizard.h"
#include "mythdb.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "diseqcsettings.h" // for convert_diseqc_db()
#include "videodbcheck.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/decoderbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ using namespace std;
#include "mythplayer.h"
#include "remoteencoder.h"
#include "mythdbcon.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "decoderbase.h"
#include "programinfo.h"
#include "livetvchain.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/deletemap.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <cmath>
#include <stdint.h>

#include "mythverbose.h"
#include "mythlogging.h"
#include "mythcontext.h"
#include "osd.h"
#include "deletemap.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/diseqc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// MythTV headers
#include "mythcorecontext.h"
#include "mythdb.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "diseqc.h"
#include "dtvmultiplex.h"
#include "compat.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/diseqcsettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

// MythTV headers
#include "mythdbcon.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "diseqcsettings.h"

/* Lat/Long items relocated from videosource.cpp */
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/dsmcc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/
#include <stdint.h>

#include "mythverbose.h"
#include "mythlogging.h"

#include "dsmccreceiver.h"
#include "dsmccbiop.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/dsmccbiop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "dsmccobjcarousel.h"
#include "dsmcc.h"

#include "mythverbose.h"
#include "mythlogging.h"

BiopNameComp::~BiopNameComp()
{
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/dsmcccache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "dsmccreceiver.h"
#include "dsmcc.h"

#include "mythverbose.h"
#include "mythlogging.h"

/** \class DSMCCCache
*
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/dsmccobjcarousel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "dsmcccache.h"
#include "dsmcc.h"

#include "mythverbose.h"
#include "mythlogging.h"

// Construct the data for a new module from a DII message.
DSMCCCacheModuleData::DSMCCCacheModuleData(DsmccDii *dii,
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/dtvchannel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ using namespace std;
#include "cardutil.h"
#include "dtvchannel.h"
#include "mpegtables.h"
#include "mythverbose.h"
#include "mythlogging.h"

#define LOC QString("DTVChan(%1): ").arg(GetDevice())
#define LOC_WARN QString("DTVChan(%1) Warning: ").arg(GetDevice())
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/dtvconfparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
// MythTV headers
#include "mythcontext.h"
#include "mythdbcon.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "dtvconfparser.h"
#include "channelutil.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/dtvconfparserhelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <QMutex>
#include <QMap>

#include "mythverbose.h"
#include "mythlogging.h"
#include "dtvconfparserhelpers.h"

bool DTVParamHelper::ParseParam(const QString &symbol, int &value,
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/dtvmultiplex.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// MythTV headers
#include "dtvmultiplex.h"
#include "mythdb.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mpeg/dvbdescriptors.h"

#define LOC QString("DTVMux: ")
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/dtvrecorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "dvbstreamdata.h"
#include "dtvrecorder.h"
#include "programinfo.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mpegtables.h"
#include "ringbuffer.h"
#include "tv_rec.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/dvbdev/dvbci.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

#include <QString>

#include "mythverbose.h"
#include "mythlogging.h"

#ifndef MALLOC
#define MALLOC(type, size) (type *)malloc(sizeof(type) * (size))
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/dvbrecorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "dvbrecorder.h"
#include "dvbchannel.h"
#include "tv_rec.h"
#include "mythverbose.h"
#include "mythlogging.h"

#define LOC QString("DVBRec(%1:%2): ") \
.arg(tvrec->GetCaptureCardNum()).arg(videodevice)
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/dvdringbuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#include "mythdvdplayer.h"
#include "compat.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythuihelper.h"

#define LOC QString("DVDRB: ")
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/dxva2decoder.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <QString>
#include <QLibrary>

#include "mythverbose.h"
#include "mythlogging.h"
#include "initguid.h"
#include "mythrender_d3d9.h"
#include "dxva2decoder.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/eitcache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "eitcache.h"
#include "mythcontext.h"
#include "mythdb.h"
#include "mythverbose.h"
#include "mythlogging.h"

#define LOC QString("EITCache: ")

Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmythtv/eitscanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include "scheduledrecording.h"
#include "util.h"
#include "mythdb.h"
#include "mythverbose.h"
#include "mythlogging.h"

#define LOC QString("EITScanner: ")
Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmythtv/fifowriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

#include "fifowriter.h"
#include "compat.h"
#include "mythverbose.h"
#include "mythlogging.h"

#include "mythconfig.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/firewirechannel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Distributed as part of MythTV under GPL v2 and later.
*/

#include "mythverbose.h"
#include "mythlogging.h"
#include "tv_rec.h"
#include "linuxfirewiredevice.h"
#include "darwinfirewiredevice.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/firewiredevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// MythTV headers
#include "linuxfirewiredevice.h"
#include "darwinfirewiredevice.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "pespacket.h"

#define LOC QString("FireDev(%1): ").arg(guid_to_string(m_guid))
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/firewirerecorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// MythTV includes
#include "firewirerecorder.h"
#include "firewirechannel.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mpegtables.h"
#include "mpegstreamdata.h"
#include "tv_rec.h"
Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmythtv/firewiresignalmonitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include <unistd.h>
#include <sys/select.h>

#include "mythverbose.h"
#include "mythdbcon.h"
#include "atscstreamdata.h"
#include "mpegtables.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/hdhrchannel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ using namespace std;

// MythTV includes
#include "mythdbcon.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "hdhrchannel.h"
#include "videosource.h"
#include "channelutil.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/hdhrrecorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "hdhrrecorder.h"
#include "hdhrchannel.h"
#include "tv_rec.h"
#include "mythverbose.h"
#include "mythlogging.h"

#define LOC QString("HDHRRec(%1): ").arg(tvrec->GetCaptureCardNum())
#define LOC_WARN QString("HDHRRec(%1), Warning: ") \
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/hdhrsignalmonitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <sys/select.h>
#endif

#include "mythverbose.h"
#include "mythlogging.h"
#include "mythdbcon.h"
#include "hdhrsignalmonitor.h"
#include "atscstreamdata.h"
Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmythtv/hdhrstreamhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include "streamlisteners.h"
#include "mpegstreamdata.h"
#include "cardutil.h"
#include "mythverbose.h"
#include "mythlogging.h"

#define LOC QString("HDHRSH(%1): ").arg(_device)
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/interactivetv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// MythTV headers
#include "interactivetv.h"
#include "mhi.h"
#include "mythverbose.h"
#include "mythlogging.h"

InteractiveTV::InteractiveTV(MythPlayer *nvp)
: m_context(new MHIContext(this)), m_nvp(nvp)
Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmythtv/iptv/iptvchannelfetcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// MythTV headers
#include "mythcontext.h"
#include "httpcomms.h"
#include "mythverbose.h"
#include "cardutil.h"
#include "channelutil.h"
#include "iptvchannelfetcher.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/iptv/iptvfeederfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
// MythTV headers
#include "iptvmediasink.h"
#include "mythcontext.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "tspacket.h"

#define LOC QString("FbFeedFile: ")
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/iptv/iptvfeederlive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "iptvfeederlive.h"

// MythTV headers
#include "mythverbose.h"
#include "mythlogging.h"
#include "timeoutedtaskscheduler.h"

#define LOC QString("FbFeedLive:")
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/iptv/iptvfeederrtp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// MythTV headers
#include "iptvmediasink.h"
#include "mythcontext.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "tspacket.h"

#define LOC QString("IPTVFeedRTP: ")
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/iptv/iptvfeederrtsp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// MythTV headers
#include "iptvmediasink.h"
#include "mythcontext.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "tspacket.h"

#define LOC QString("IPTVFeedRTSP:")
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/iptv/iptvfeederudp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
// MythTV headers
#include "iptvmediasink.h"
#include "mythcontext.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "tspacket.h"

#define LOC QString("IPTVFeedUDP: ")
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/iptv/iptvfeederwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ using namespace std;
#include "iptvfeederrtp.h"
#include "iptvfeederfile.h"
#include "mythcontext.h"
#include "mythverbose.h"
#include "mythlogging.h"

#define LOC QString("IPTVFeed: ")
#define LOC_ERR QString("IPTVFeed, Error: ")
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/iptv/iptvmediasink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <algorithm>

#include "mythcontext.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "iptvmediasink.h"
#include "streamlisteners.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/iptvchannel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// MythTV headers
#include "mythdb.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "iptvchannelfetcher.h"
#include "iptvfeederwrapper.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/jitterometer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <cstdlib>
#include <cmath>

#include "mythverbose.h"
#include "mythlogging.h"
#include "jitterometer.h"

Jitterometer::Jitterometer(QString nname, int ncycles)
Expand Down
7 changes: 3 additions & 4 deletions mythtv/libs/libmythtv/jobqueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ using namespace std;

#include "mythdb.h"
#include "mythdirs.h"
#include "mythverbose.h"
#include "mythlogging.h"

#ifndef O_STREAMING
Expand Down Expand Up @@ -1768,7 +1767,7 @@ QString JobQueue::GetJobCommand(int id, int jobType, ProgramInfo *tmpInfo)
tmpInfo->SubstituteMatches(command);

command.replace("%VERBOSELEVEL%",
QString("%1").arg(print_verbose_messages));
QString("%1").arg(verboseMask));

uint transcoder = tmpInfo->QueryTranscoderID();
command.replace("%TRANSPROFILE%",
Expand Down Expand Up @@ -1885,7 +1884,7 @@ void JobQueue::DoTranscodeThread(int jobID)
path = GetInstallPrefix() + "/bin/mythtranscode";
QByteArray parg = profilearg.toAscii();
command = QString("%1 -j %2 -V %3 -p %4 %5")
.arg(path).arg(jobID).arg(print_verbose_messages)
.arg(path).arg(jobID).arg(verboseMask)
.arg(parg.constData()).arg(useCutlist ? "--honorcutlist" : "");
if (logPropagate())
command += QString(" --logpath %1").arg(logPropPath());
Expand Down Expand Up @@ -2126,7 +2125,7 @@ void JobQueue::DoFlagCommercialsThread(int jobID)
{
path = GetInstallPrefix() + "/bin/mythcommflag";
command = QString("%1 -j %2 -V %3 --noprogress")
.arg(path).arg(jobID).arg(print_verbose_messages);
.arg(path).arg(jobID).arg(verboseMask);
if (logPropagate())
command += QString(" --logpath %1").arg(logPropPath());
}
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/livetvchain.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "livetvchain.h"
#include "mythcontext.h"
#include "mythdb.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "programinfo.h"
#include "mythsocket.h"
#include "cardutil.h"
Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmythtv/mhi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include "mythuiimage.h"
#include "osd.h"
#include "mythdirs.h"
#include "mythverbose.h"
#include "myth_imgconvert.h"
#include "mythlogging.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/mpeg/H264Parser.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// MythTV headers
#include "H264Parser.h"
#include <iostream>
#include "mythverbose.h"
#include "mythlogging.h"

extern "C" {
// from libavcodec
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/mpeg/atscdescriptors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using namespace std;

#include "atscdescriptors.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "iso639.h"
#include "atsc_huffman.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/mpeg/atsctables.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <QString>
#include "mpegtables.h"
#include "atscdescriptors.h"
#include "mythverbose.h"
#include "mythlogging.h"

// Some sample code is in pcHDTV's dtvscan.c,
// accum_sect/dequeue_buf/atsc_tables. We should stuff
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/mpeg/dvbdescriptors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "dvbdescriptors.h"
#include "iso6937tables.h"
#include "freesat_huffman.h"
#include "mythverbose.h"
#include "mythlogging.h"


// Only some of the QTextCodec calls are reenterant.
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/mpeg/mpegtables.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Copyright (c) 2003-2004, Daniel Thor Kristjansson
#include "mpegtables.h"
#include "atscdescriptors.h"
#include "mythverbose.h"
#include "mythlogging.h"

const unsigned char DEFAULT_PAT_HEADER[8] =
{
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/mpeg/pespacket.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// -*- Mode: c++ -*-
// Copyright (c) 2003-2004, Daniel Thor Kristjansson
#include "mythverbose.h"
#include "mythlogging.h"
#include "pespacket.h"
#include "mpegtables.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/mpeg/pespacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
using namespace std;

#include "tspacket.h"
#include "mythverbose.h"
#include "mythlogging.h"

unsigned char *pes_alloc(uint size);
void pes_free(unsigned char *ptr);
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/myth_imgconvert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ extern "C" {
#include <QMutex>
#include <QMutexLocker>

#include "mythverbose.h"
#include "mythlogging.h"
#include "myth_imgconvert.h"

int myth_sws_img_convert(AVPicture *dst, PixelFormat dst_pix_fmt, AVPicture *src,
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/mythcodecid.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "mythcodecid.h"
#include "mythverbose.h"
#include "mythlogging.h"

extern "C"
{
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/mythiowrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "mythconfig.h"
#include "compat.h"
#include "mythcorecontext.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "remotefile.h"
#include "ringbuffer.h"

Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmythtv/mythplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ using namespace std;
#include "NuppelVideoRecorder.h"
#include "tv_play.h"
#include "interactivetv.h"
#include "mythverbose.h"
#include "myth_imgconvert.h"
#include "mythsystemevent.h"
#include "mythpainter.h"
Expand Down
3 changes: 1 addition & 2 deletions mythtv/libs/libmythtv/mythsystemevent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include "mythcorecontext.h"
#include "mythsystem.h"
#include "mythsystemevent.h"
#include "mythverbose.h"
#include "programinfo.h"
#include "remoteutil.h"
#include "exitcodes.h"
Expand Down Expand Up @@ -216,7 +215,7 @@ void MythSystemEventHandler::SubstituteMatches(const QStringList &tokens,
}

command.replace(QString("%VERBOSELEVEL%"),
QString("%1").arg(print_verbose_messages));
QString("%1").arg(verboseMask));

VERBOSE(VB_FILE+VB_EXTRA, LOC + QString("SubstituteMatches: AFTER : %1")
.arg(command));
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/nuppeldecoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ using namespace std;
#include "nuppeldecoder.h"
#include "mythplayer.h"
#include "remoteencoder.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "myth_imgconvert.h"
#include "programinfo.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/osd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <QCoreApplication>

// libmyth
#include "mythverbose.h"
#include "mythlogging.h"

// libmythui
#include "mythmainwindow.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/osdchromakey.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "osd.h"
#include "osdchromakey.h"

#include "mythverbose.h"
#include "mythlogging.h"
#include "videoout_xv.h"
#include "mythxdisplay.h"

Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmythtv/previewgenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include "util.h"
#include "playercontext.h"
#include "mythdirs.h"
#include "mythverbose.h"
#include "remoteutil.h"
#include "mythsystem.h"
#include "exitcodes.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/privatedecoder_vda.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Based upon CDVDVideoCodecVDA from the xbmc project, originally written by
// Scott Davilla (davilla@xbmc.org) and released under the GPLv2

#include "mythverbose.h"
#include "mythlogging.h"
#define LOC QString("VDADec: ")
#define ERR QString("VDADec error: ")

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/programdata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ using namespace std;
// MythTV headers
#include "channelutil.h"
#include "mythdb.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "programinfo.h"
#include "programdata.h"
#include "dvbdescriptors.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/recorderbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ using namespace std;
#include "dvbrecorder.h"
#include "hdhrchannel.h"
#include "iptvchannel.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "programinfo.h"
#include "asichannel.h"
#include "dtvchannel.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/recordinginfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ using namespace std;
#include "tvremoteutil.h"
#include "jobqueue.h"
#include "mythdb.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "previewgenerator.h"
#include "channelutil.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/recordingprofile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "cardutil.h"
#include "mythcorecontext.h"
#include "mythdb.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythwizard.h"
#include "managedlist.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/remoteencoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "videooutbase.h"
#include "mythdb.h"
#include "mythsocket.h"
#include "mythverbose.h"
#include "mythlogging.h"

using namespace std;

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/scanwizard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#include "videosource.h"
#include "scaninfo.h"
#include "channelimporter.h"
#include "mythverbose.h"
#include "mythlogging.h"

#define LOC QString("SWiz: ")
#define LOC_ERR QString("SWiz, Error: ")
Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmythtv/signalmonitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include "signalmonitor.h"
#include "mythcontext.h"
#include "compat.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "tv_rec.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/signalmonitorvalue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using namespace std;

#include "signalmonitorvalue.h"
#include "mythverbose.h"
#include "mythlogging.h"

bool SignalMonitorValue::run_static_init = true;
QStringList SignalMonitorValue::ERROR_NO_CHANNEL;
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/sourceutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "sourceutil.h"
#include "cardutil.h"
#include "mythdb.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "util.h"

bool SourceUtil::HasDigitalChannel(uint sourceid)
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/streamingringbuffer.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "mythverbose.h"
#include "mythlogging.h"

#include "streamingringbuffer.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/subtitlescreen.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <QFontMetrics>

#include "mythverbose.h"
#include "mythlogging.h"
#include "mythfontproperties.h"
#include "mythuitext.h"
#include "mythuishape.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/teletextdecoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ using namespace std;
#include "teletextdecoder.h"
#include "teletextreader.h"
#include "vbilut.h"
#include "mythverbose.h"
#include "mythlogging.h"

/** \fn TeletextDecoder::Decode(const unsigned char*, int)
* \brief Decodes teletext data
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/teletextscreen.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <QFontMetrics>
#include <QPainter>

#include "mythverbose.h"
#include "mythlogging.h"
#include "mythfontproperties.h"
#include "mythuitext.h"
#include "mythuishape.h"
Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmythtv/tv_play.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ using namespace std;
#include "cardutil.h"
#include "channelutil.h"
#include "compat.h"
#include "mythverbose.h"
#include "mythuihelper.h"
#include "mythdialogbox.h"
#include "mythmainwindow.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/tv_play_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

// MythTV
#include "mythmainwindow.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythuiprogressbar.h"

#include "tv_play_win.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/util-osd.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef UTIL_OSD_H
#define UTIL_OSD_H

#include "mythverbose.h"
#include "mythlogging.h"
#include "mythimage.h"
#include "frame.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/util-xv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using namespace std;

// MythTH headers
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythxdisplay.h"
#include "util-xv.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/vaapicontext.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "openglvideo.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythxdisplay.h"
#include "mythcodecid.h"
#include "frame.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/vbi608extractor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
using namespace std;

#include "vbi608extractor.h"
#include "mythverbose.h"
#include "mythlogging.h"

#define LOC QString("VBI608Extractor: ")
#define LOC_WARN QString("VBI608Extractor, Warning: ")
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/videobuffers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ extern "C" {
}
#include "fourcc.h"
#include "compat.h"
#include "mythverbose.h"
#include "mythlogging.h"

#define TRY_LOCK_SPINS 100
#define TRY_LOCK_SPINS_BEFORE_WARNING 10
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/videocolourspace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include "compat.h"
#include "mythcorecontext.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "videocolourspace.h"


Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/videodbcheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "videodbcheck.h"
#include "mythdb.h"
#include "mythcorecontext.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "remotefile.h"
#include "util.h"
#include "libmythmetadata/videoutils.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/videodisplayprofile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ using namespace std;
#include "videodisplayprofile.h"
#include "mythcorecontext.h"
#include "mythdb.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "videooutbase.h"
#include "avformatdecoder.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/videometadatautil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <QUrl>

#include "videometadatautil.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythdb.h"

#define LOC QString("VideoMetaDataUtil: ")
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/videoout_null.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <iostream>
using namespace std;

#include "mythverbose.h"
#include "mythlogging.h"
#include "videoout_null.h"
#include "videodisplayprofile.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/videoout_quartz.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ using namespace std;

#include "osd.h"
#include "mythconfig.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "videodisplayprofile.h"

#define LOC QString("VideoOutputQuartz::")
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/videoout_xv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ using namespace std;

// MythTV General headers
#include "mythcorecontext.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "filtermanager.h"
#include "videodisplayprofile.h"
#define IGNORE_TV_PLAY_REC
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/videooutbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "decoderbase.h"

#include "mythcorecontext.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythmainwindow.h"
#include "mythuihelper.h"
#include "mythxdisplay.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/videosource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ using namespace std;
#include "compat.h"
#include "mythdb.h"
#include "mythdirs.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "libmythupnp/httprequest.h" // for TestMimeType()
#include "mythsystem.h"
#include "exitcodes.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/visualisations/videovisual.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <QList>
#include <QDateTime>

#include "mythverbose.h"
#include "mythlogging.h"
#include "visual.h"
#include "mythpainter.h"
#include "videovisualdefs.h"
Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmythui/AppleRemote.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

#include <sstream>

#include "mythverbose.h"
#include "mythlogging.h"

AppleRemote* AppleRemote::_instance = 0;
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/DisplayRes.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

#include "DisplayRes.h"
#include "config.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythdb.h"

#ifdef USING_XRANDR
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/DisplayResX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include <cmath>

#include "mythverbose.h"
#include "mythlogging.h"
#include "mythdb.h"
#include "mythdisplay.h"
#include "mythxdisplay.h"
Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmythui/jsmenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
#include <linux/joystick.h>

// Myth headers
#include "mythverbose.h"
#include "mythlogging.h"

// Mythui headers
Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmythui/lirc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ using namespace std;
#include <QStringList>

// MythTV headers
#include "mythverbose.h"
#include "mythdb.h"
#include "mythsystem.h"
#include "lircevent.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythdialogbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <QStringList>
#include <QTimer>

#include "mythverbose.h"
#include "mythlogging.h"

#include "mythmainwindow.h"
#include "mythfontproperties.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythfontmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <QMutexLocker>

#include "mythfontmanager.h"
#include "mythverbose.h"
#include "mythlogging.h"

static MythFontManager *gFontManager = NULL;

Expand Down
3 changes: 1 addition & 2 deletions mythtv/libs/libmythui/mythfontproperties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@
#include <QFontInfo>
#include <QRect>

#include "mythverbose.h"
#include "mythlogging.h"
#include "mythdb.h"

#include "mythuihelper.h"
#include "mythmainwindow.h"
#include "xmlparsebase.h"
#include "mythverbose.h"

#define LOC QString("MythFontProperties: ")
#define LOC_WARN QString("MythFontProperties, Warning: ")
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythgenerictree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "mythuibuttonlist.h"

// Myth headers
#include "mythverbose.h"
#include "mythlogging.h"

class SortableMythGenericTreeList : public QList<MythGenericTree*>
{
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythimage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

// Mythdb headers
#include "mythdownloadmanager.h"
#include "mythverbose.h"
#include "mythlogging.h"

// Myth headers
#include "remotefile.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythmainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ using namespace std;

// libmythbase headers
#include "mythdb.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythevent.h"
#include "mythdirs.h"
#include "compat.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythpainter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <QPainter>

// libmythbase headers
#include "mythverbose.h"
#include "mythlogging.h"

// libmythui headers
#include "mythfontproperties.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythpainter_d3d9.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <QMutex>

// Mythdb headers
#include "mythverbose.h"
#include "mythlogging.h"

// Mythui headers
#include "mythpainter_d3d9.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythpainter_ogl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <QGLWidget>

// libmythbase headers
#include "mythverbose.h"
#include "mythlogging.h"

// Mythui headers
#include "mythrender_opengl.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythpainter_qimage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// MythDB headers
#include "compat.h"
#include "mythverbose.h"
#include "mythlogging.h"

MythQImagePainter::MythQImagePainter() :
MythPainter(), painter(NULL), copy(false)
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythpainter_qt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

// MythDB headers
#include "compat.h"
#include "mythverbose.h"
#include "mythlogging.h"

class MythQtImage : public MythImage
{
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythpainter_vdpau.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <QX11Info>

// Mythdb headers
#include "mythverbose.h"
#include "mythlogging.h"

// Mythui headers
#include "mythrender_vdpau.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythpainter_yuva.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include "mythpainter_yuva.h"
#include "mythfontproperties.h"
#include "mythverbose.h"
#include "mythlogging.h"

#define MAX_FONT_CACHE 32

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythprogressdialog.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// MythTV headers
#include "mythprogressdialog.h"
#include "mythverbose.h"
#include "mythlogging.h"

QEvent::Type ProgressUpdateEvent::kEventType =
(QEvent::Type) QEvent::registerEventType();
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythrender_d3d9.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ using std::min;
#include <QMap>
#include <QMutex>

#include "mythverbose.h"
#include "mythlogging.h"
#include "mythrender_d3d9.h"

#define DXVA2_E_NEW_VIDEO_DEVICE MAKE_HRESULT(1, 4, 4097)
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythrender_opengl.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <algorithm>
using namespace std;

#include "mythverbose.h"
#include "mythlogging.h"
#include "mythrender_opengl.h"
#include "mythxdisplay.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythrender_opengl.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#endif

#include "mythuiexp.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythrender_base.h"
#include "mythrender_opengl_defs.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythrender_vdpau.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <QSize>
#include <QThread>

#include "mythverbose.h"
#include "mythlogging.h"
#include "mythmainwindow.h"
#include "mythrender_vdpau.h"

Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmythui/mythscreentype.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include <QRunnable>
#include <QThreadPool>

#include "mythverbose.h"
#include "mythobservable.h"

#include "mythscreenstack.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/myththemedmenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "mythcorecontext.h"

// libmythbase headers
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythdb.h"
#include "mythdirs.h"
#include "mythmedia.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythudplistener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <QDomDocument>

#include "mythcorecontext.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythmainwindow.h"
#include "mythudplistener.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythuibutton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <QCoreApplication>

// Myth headers
#include "mythverbose.h"
#include "mythlogging.h"

// MythUI headers
#include "mythmainwindow.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythuibuttonlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <QDomDocument>

// libmyth headers
#include "mythverbose.h"
#include "mythlogging.h"

// mythui headers
#include "mythmainwindow.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythuibuttontree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <QDomDocument>

// Mythdb headers
#include "mythverbose.h"
#include "mythlogging.h"

// Mythui Headers
#include "mythmainwindow.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythuicheckbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "mythuicheckbox.h"

// Myth headers
#include "mythverbose.h"
#include "mythlogging.h"

// MythUI headers
#include "mythmainwindow.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythuiclock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "mythmainwindow.h"
#include "mythfontproperties.h"

#include "mythverbose.h"
#include "mythlogging.h"
#include "mythdb.h"

MythUIClock::MythUIClock(MythUIType *parent, const QString &name)
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythuieditbar.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythuieditbar.h"

MythUIEditBar::MythUIEditBar(MythUIType *parent, const QString &name)
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythuifilebrowser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <QTimer>
#include <QUrl>

#include "mythverbose.h"
#include "mythlogging.h"

#include "mythdialogbox.h"
#include "mythmainwindow.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythuiguidegrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ using namespace std;
#include "mythfontproperties.h"
#include "mythuihelper.h"
#include "x11colors.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythimage.h"
#include "mythuitype.h"
#include "mythmainwindow.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythuihelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <QFile>

#include "mythdirs.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythdownloadmanager.h"
#include "oldsettings.h"
#include "screensaver.h"
Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmythui/mythuiimage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include <QCoreApplication>

// libmythbase
#include "mythverbose.h"
#include "mythlogging.h"

// Mythui
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythuiprogressbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <QDomDocument>

// MythDB
#include "mythverbose.h"
#include "mythlogging.h"

// MythUI

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythuishape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ using namespace std;
#include <QColor>

// myth
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythpainter.h"
#include "mythimage.h"
#include "mythmainwindow.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythuitext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <QString>
#include <QHash>

#include "mythverbose.h"
#include "mythlogging.h"

#include "mythuihelper.h"
#include "mythpainter.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythuitextedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <QDomDocument>

// libmythbase headers
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythdb.h"

// MythUI headers
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythuitype.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <QDomDocument>

// Mythdb headers
#include "mythverbose.h"
#include "mythlogging.h"

// MythUI headers
#include "mythgesture.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythuiutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <QString>

// libmythbase headers
#include "mythverbose.h"
#include "mythlogging.h"

bool ETPrintWarning::Child(const QString &container_name,
const QString &child_name)
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythuivideo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <QDomDocument>

// libmythbase
#include "mythverbose.h"
#include "mythlogging.h"

// Mythui
#include "mythpainter.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythuiwebbrowser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "mythimage.h"
#include "mythmainwindow.h"
#include "mythfontproperties.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythdb.h"
#include "mythdirs.h"
#include "mythuihelper.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythvirtualkeyboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

// myth
#include "mythmainwindow.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythfontproperties.h"
#include "mythuihelper.h"
#include "mythuibutton.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythxdisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <vector>

#include "config.h" // for CONFIG_DARWIN
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythuihelper.h"

#ifdef USING_X11
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/screensaver-x11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <QX11Info>

// Mythdb headers
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythdb.h"

// Mythui headers
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/themeinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <QDomElement>

// MythTV headers
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythdownloadmanager.h"

#define LOC QString("ThemeInfo: ")
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/util-nvctrl.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

#include "util-nvctrl.h"

#include "mythverbose.h"
#include "mythlogging.h"
#include "mythdb.h"

#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/xmlparsebase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <QLinearGradient>

// libmyth headers
#include "mythverbose.h"
#include "mythlogging.h"

// Mythui headers
#include "mythmainwindow.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/bufferedsocketdevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "mythtimer.h"
#include "bufferedsocketdevice.h"
#include "upnputil.h"
#include "mythverbose.h" // for VERBOSE
#include "mythlogging.h"

/////////////////////////////////////////////////////////////////////////////
//
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <QTextStream>

#include "configuration.h"
#include "mythverbose.h" // for VERBOSE and GetConfDir()
#include "mythlogging.h"
#include "mythdb.h"
#include "mythdirs.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/eventing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include "upnp.h"
#include "eventing.h"
#include "upnptaskevent.h"
#include "mythverbose.h"
#include "mythlogging.h"

/////////////////////////////////////////////////////////////////////////////
//
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/htmlserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
//
//////////////////////////////////////////////////////////////////////////////

#include "mythverbose.h"
#include "mythlogging.h"
#include "htmlserver.h"

#include <QFileInfo>
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/httprequest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
#include "upnp.h"

#include "compat.h"
#include "mythverbose.h"
#include "mythlogging.h"

#include "serializers/xmlSerializer.h"
#include "serializers/soapSerializer.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/httpserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#include "upnp.h" // only needed for Config... remove once config is moved.
#include "compat.h"
#include "mythdirs.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "htmlserver.h"

/////////////////////////////////////////////////////////////////////////////
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/mbroadcastsocketdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <QString>

#include "msocketdevice.h"
#include "mythverbose.h"
#include "mythlogging.h"

/////////////////////////////////////////////////////////////////////////////
// Broadcast Socket is used for XBox (original) since Multicast is not supported
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/mmulticastsocketdevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

// MythTV headers
#include "mmulticastsocketdevice.h"
#include "mythverbose.h"
#include "mythlogging.h"

#define LOC (QString("MMulticastSocketDevice(%1:%2): ") \
.arg(m_address.toString()).arg(socket()))
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/mmulticastsocketdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

// MythTV headers
#include "msocketdevice.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "compat.h"

/////////////////////////////////////////////////////////////////////////////
Expand Down
3 changes: 1 addition & 2 deletions mythtv/libs/libmythupnp/mythxmlclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@
//////////////////////////////////////////////////////////////////////////////

#include "mythxmlclient.h"
#include "mythverbose.h"
#include "mythlogging.h"

#include <QObject>
#include "mythverbose.h"

/////////////////////////////////////////////////////////////////////////////
//
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/serverSideScripting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <QFileInfo>

#include "serverSideScripting.h"
#include "mythverbose.h"
#include "mythlogging.h"

QScriptValue formatStr(QScriptContext *context, QScriptEngine *interpreter);

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/servicehost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include <QDomDocument>

#include "mythverbose.h"
#include "mythlogging.h"
#include "servicehost.h"
#include "wsdl.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/soapclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#include "soapclient.h"

#include "mythverbose.h"
#include "mythlogging.h"
#include "httprequest.h"

#define LOC QString("SOAPClient: ")
Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmythupnp/ssdp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include <algorithm>

#include "upnp.h"
#include "mythverbose.h"
#include "mythlogging.h"

#include "upnptasksearch.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/ssdpcache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include "upnp.h"
#include "mythevent.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "upnptaskcache.h"

SSDPCache* SSDPCache::g_pSSDPCache = NULL;
Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmythupnp/taskqueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
//////////////////////////////////////////////////////////////////////////////

#include "taskqueue.h"
#include "mythverbose.h"
#include "mythlogging.h"

#include <QDateTime>
Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmythupnp/threadpool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ using namespace std;

#include "threadpool.h"
#include "upnp.h" // only needed for Config... remove once config is moved.
#include "mythverbose.h"
#include "mythlogging.h"

/////////////////////////////////////////////////////////////////////////////
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/upnp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
//////////////////////////////////////////////////////////////////////////////

#include "upnptaskcache.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "upnp.h"

//////////////////////////////////////////////////////////////////////////////
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/upnpcds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "upnp.h"
#include "upnpcds.h"
#include "upnputil.h"
#include "mythverbose.h"
#include "mythlogging.h"

#define DIDL_LITE_BEGIN "<DIDL-Lite xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:upnp=\"urn:schemas-upnp-org:metadata-1-0/upnp/\" xmlns=\"urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/\">"
#define DIDL_LITE_END "</DIDL-Lite>";
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/upnpcmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include "upnp.h"
#include "upnpcmgr.h"
#include "mythverbose.h"
#include "mythlogging.h"

/////////////////////////////////////////////////////////////////////////////
//
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/upnpdevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "upnp.h"
#include "upnpdevice.h"
#include "httpcomms.h"
#include "mythverbose.h"
#include "mythlogging.h"

// MythDB
#include "mythdb.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/upnpmsrr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include "upnp.h"
#include "upnpmsrr.h"
#include "mythverbose.h"
#include "mythlogging.h"

#include <cmath>
#include <QRegExp>
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/upnpsubscription.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ QObject::customEvent to receive event notifications for subscribed services.
#include <QTextCodec>

#include "mythcorecontext.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "upnpsubscription.h"

// default requested time for subscription (actual is dictated by server)
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/upnptaskcache.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#include <QString>

#include "mythverbose.h"
#include "mythlogging.h"
#include "upnp.h"

/////////////////////////////////////////////////////////////////////////////
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/upnptaskevent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
//////////////////////////////////////////////////////////////////////////////

#include "upnptaskevent.h"
#include "mythverbose.h"
#include "mythlogging.h"

/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/upnptasknotify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

// MythTV headers
#include "mmulticastsocketdevice.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "compat.h"
#include "upnp.h"

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/upnputil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include "upnp.h"
#include "compat.h"
#include "mythconfig.h" // for HAVE_GETIFADDRS
#include "mythverbose.h"
#include "mythlogging.h"

// POSIX headers 2, needs to be after compat.h for OS X
#ifndef USING_MINGW
Expand Down
7 changes: 3 additions & 4 deletions mythtv/programs/mythavtest/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ using namespace std;

#include "exitcodes.h"
#include "mythcontext.h"
#include "mythverbose.h"
#include "mythversion.h"
#include "mythdbcon.h"
#include "compat.h"
Expand Down Expand Up @@ -56,7 +55,7 @@ int main(int argc, char *argv[])
QString filename = "";

if (cmdline.toBool("verbose"))
if (parse_verbose_arg(cmdline.toString("verbose")) ==
if (verboseArgParse(cmdline.toString("verbose")) ==
GENERIC_EXIT_INVALID_CMDLINE)
return GENERIC_EXIT_INVALID_CMDLINE;

Expand All @@ -65,8 +64,8 @@ int main(int argc, char *argv[])
quiet = cmdline.toUInt("quiet");
if (quiet > 1)
{
print_verbose_messages = VB_NONE;
parse_verbose_arg("none");
verboseMask = VB_NONE;
verboseArgParse("none");
}
}

Expand Down
8 changes: 4 additions & 4 deletions mythtv/programs/mythbackend/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "storagegroup.h"
#include "housekeeper.h"
#include "mediaserver.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythversion.h"
#include "programinfo.h"
#include "autoexpire.h"
Expand Down Expand Up @@ -90,7 +90,7 @@ int main(int argc, char **argv)
pidfile = cmdline.toString("pidfile");

if (cmdline.toBool("verbose"))
if (parse_verbose_arg(cmdline.toString("verbose")) ==
if (verboseArgParse(cmdline.toString("verbose")) ==
GENERIC_EXIT_INVALID_CMDLINE)
return GENERIC_EXIT_INVALID_CMDLINE;

Expand All @@ -99,8 +99,8 @@ int main(int argc, char **argv)
quiet = cmdline.toUInt("quiet");
if (quiet > 1)
{
print_verbose_messages = VB_NONE;
parse_verbose_arg("none");
verboseMask = VB_NONE;
verboseArgParse("none");
}
}

Expand Down
3 changes: 1 addition & 2 deletions mythtv/programs/mythbackend/main_helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
#include "housekeeper.h"

#include "mythcontext.h"
#include "mythverbose.h"
#include "mythversion.h"
#include "mythdb.h"
#include "exitcodes.h"
Expand Down Expand Up @@ -430,7 +429,7 @@ int handle_command(const MythBackendCommandLineParser &cmdline)
sched->FillRecordListFromDB();
}

print_verbose_messages |= VB_SCHEDULE;
verboseMask |= VB_SCHEDULE;
sched->PrintList(true);
return GENERIC_EXIT_OK;
}
Expand Down
5 changes: 2 additions & 3 deletions mythtv/programs/mythbackend/mainserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ using namespace std;
#include "previewgeneratorqueue.h"
#include "exitcodes.h"
#include "mythcontext.h"
#include "mythverbose.h"
#include "mythversion.h"
#include "mythdb.h"
#include "mainserver.h"
Expand Down Expand Up @@ -5024,9 +5023,9 @@ void MainServer::HandleSetVerbose(QStringList &slist, PlaybackSock *pbs)
int len=newverbose.length();
if (len > 12)
{
parse_verbose_arg(newverbose.right(len-12));
verboseArgParse(newverbose.right(len-12));

VERBOSE(VB_IMPORTANT, QString("Verbose level changed, new level is: %1")
VERBOSE(VB_IMPORTANT, QString("Verbose mask changed, new mask is: %1")
.arg(verboseString));

retlist << "OK";
Expand Down
2 changes: 1 addition & 1 deletion mythtv/programs/mythcommflag/CannyEdgeDetector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// MythTV headers
#include "mythplayer.h"
#include "frame.h" // VideoFrame
#include "mythverbose.h"
#include "mythlogging.h"

// Commercial Flagging headers
#include "pgm.h"
Expand Down
2 changes: 1 addition & 1 deletion mythtv/programs/mythcommflag/CommDetector2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ using namespace std;
// MythTV headers
#include "compat.h"
#include "mythdb.h"
#include "mythverbose.h"
#include "mythlogging.h"
#include "mythplayer.h"
#include "programinfo.h"
#include "channelutil.h"
Expand Down
Loading