Skip to content

Commit

Permalink
Add support for VERBOSE macro for printing additional information to …
Browse files Browse the repository at this point in the history
…STDOUT. See mythbackend\main.cpp and mythbackend\mainserver.cpp for examples.

git-svn-id: http://svn.mythtv.org/svn/trunk@1404 7dbf422c-18fa-0310-86e9-fd20926502f2
  • Loading branch information
rkulagowski committed May 1, 2003
1 parent 2e30dff commit e9ad2bf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mythtv/libs/libmyth/mythcontext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#include "remotefile.h"
#include "lcddevice.h"

bool print_verbose_messages = false;

MythContext::MythContext(const QString &binversion, bool gui)
: QObject()
{
Expand Down Expand Up @@ -67,6 +69,7 @@ MythContext::MythContext(const QString &binversion, bool gui)
expectingReply = false;

lcd_device = new LCD();

}

MythContext::~MythContext()
Expand Down
4 changes: 4 additions & 0 deletions mythtv/libs/libmyth/mythcontext.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class QSqlQuery;
class QSocket;
class LCD;

#define VERBOSE(verbose,args...) if(verbose) cout << QDateTime::currentDateTime().toString("yyyy-MM-dd hh:mm:ss") << " " << args << endl;

class MythEvent : public QCustomEvent
{
public:
Expand Down Expand Up @@ -46,6 +48,8 @@ class MythEvent : public QCustomEvent

#define MYTH_BINARY_VERSION "0.9.04292003-2"

extern bool print_verbose_messages;

class MythContext : public QObject
{
Q_OBJECT
Expand Down

0 comments on commit e9ad2bf

Please sign in to comment.