summaryrefslogtreecommitdiff
path: root/libopie2/opiecore/odebug.cpp
Side-by-side diff
Diffstat (limited to 'libopie2/opiecore/odebug.cpp') (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opiecore/odebug.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/libopie2/opiecore/odebug.cpp b/libopie2/opiecore/odebug.cpp
index 3bffdd0..d8dfe26 100644
--- a/libopie2/opiecore/odebug.cpp
+++ b/libopie2/opiecore/odebug.cpp
@@ -136,35 +136,35 @@ void DebugBackend::debug(unsigned short level, unsigned int, const QString& data
if (!oApp && (m_outp == 1)) {
qDebug( "oDebugBackend: Warning: no oapplication object - can't use MsgBox" );
m_outp = 2; // need an application object to use MsgBox
}
// gcc 2.9x is dumb and sucks... can you hear it?
//QString areaName = (oApp) ? oApp->appName() : "<unknown>";
QString areaName;
if ( oApp ) areaName = oApp->appName();
else areaName = "<unknown>";
switch( m_outp ) {
- case -1: // ignore
+ case ODEBUG_IGNORE:
return;
- case 0: // File
+ case ODEBUG_FILE:
return debugFile( areaName, data );
- case 1: // Message Box
+ case ODEBUG_MSGBOX:
return debugMsgB( areaName, data );
- case 2:
+ case ODEBUG_STDERR:
return debugShel( areaName,data );
- case 3: // syslog
+ case ODEBUG_SYSLOG:
return debugSysl( priority, data );
- case 4: // socket
+ case ODEBUG_SOCKET:
return debugSock( areaName, data );
}
}
inline void DebugBackend::debugFile(const QString& area, const QString& data) {
/* something went wrong with the file don't bother.. */
if ( m_opened && !m_file )
return;
else if ( !m_opened ) {
m_opened = true;
m_file = new QFile( OGlobalSettings::debugOutput() );
if (!m_file->open( IO_WriteOnly | IO_Append ) ) {