Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

odebug.cpp File Reference

#include <opie2/odebug.h>
#include <opie2/oapplication.h>
#include <opie2/oglobalsettings.h>
#include <opie2/oconfig.h>
#include <qfile.h>
#include <qmessagebox.h>
#include <qsocketdevice.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdarg.h>
#include <ctype.h>
#include <syslog.h>
#include <errno.h>
#include <string.h>
#include <execinfo.h>

Include dependency graph for odebug.cpp:

Go to the source code of this file.

Namespaces

namespace  Opie
namespace  Opie::Core
namespace  Opie::Core::Internal

Enumerations

enum  DebugLevels { ODEBUG_INFO = 0, ODEBUG_WARN = 1, ODEBUG_ERROR = 2, ODEBUG_FATAL = 3 }

Functions

static void clean_up_routine ()
odbgstream & perror (odbgstream &s)
odbgstream odDebug (int area)
odbgstream odDebug (bool cond, int area)
odbgstream odError (int area)
odbgstream odError (bool cond, int area)
odbgstream odWarning (int area)
odbgstream odWarning (bool cond, int area)
odbgstream odFatal (int area)
odbgstream odFatal (bool cond, int area)
QString odBacktrace (int levels)
void odClearDebugConfig ()

Variables

static DebugBackend * backEnd = 0


Enumeration Type Documentation

enum Opie::Core::Internal::DebugLevels
 

Enumeration values:
ODEBUG_INFO 
ODEBUG_WARN 
ODEBUG_ERROR 
ODEBUG_FATAL 

Definition at line 79 of file odebug.cpp.


Function Documentation

static void Opie::Core::clean_up_routine  )  [static]
 

Definition at line 234 of file odebug.cpp.

References Opie::Core::Internal::backEnd, and qWarning().

Referenced by Opie::Core::odbgstream::flush().

QString Opie::Core::odBacktrace int  levels = -1  ) 
 

Returns a backtrace.

Parameters:
levels the number of levels (-1 for unlimited) of the backtrace
Returns:
a backtrace

Definition at line 612 of file odebug.cpp.

References QString::fromLatin1(), i, QString::number(), and s.

Referenced by DemoApp::emitTBOutput().

void Opie::Core::odClearDebugConfig  ) 
 

Deletes the odebugrc cache and therefore forces KDebug to reread the config file

Definition at line 634 of file odebug.cpp.

odbgstream Opie::Core::odDebug bool  cond,
int  area = 0
 

Definition at line 252 of file odebug.cpp.

References Opie::Core::Internal::ODEBUG_INFO.

odbgstream Opie::Core::odDebug int  area = 0  ) 
 

Returns a debug stream. You can use it to print debug information.

Parameters:
area an id to identify the output, 0 for default

Definition at line 248 of file odebug.cpp.

References Opie::Core::Internal::ODEBUG_INFO.

odbgstream Opie::Core::odError bool  cond,
int  area = 0
 

Definition at line 263 of file odebug.cpp.

References Opie::Core::Internal::ODEBUG_ERROR.

odbgstream Opie::Core::odError int  area = 0  ) 
 

Returns an error stream. You can use it to print error information.

Parameters:
area an id to identify the output, 0 for default

Definition at line 258 of file odebug.cpp.

References Opie::Core::Internal::ODEBUG_ERROR.

odbgstream Opie::Core::odFatal bool  cond,
int  area = 0
 

Definition at line 283 of file odebug.cpp.

References Opie::Core::Internal::ODEBUG_FATAL.

odbgstream Opie::Core::odFatal int  area = 0  ) 
 

Returns a fatal error stream. You can use it to print fatal error information.

Parameters:
area an id to identify the output, 0 for default

Definition at line 278 of file odebug.cpp.

References Opie::Core::Internal::ODEBUG_FATAL.

odbgstream Opie::Core::odWarning bool  cond,
int  area = 0
 

Definition at line 273 of file odebug.cpp.

References Opie::Core::Internal::ODEBUG_WARN.

odbgstream Opie::Core::odWarning int  area = 0  ) 
 

Returns a warning stream. You can use it to print warning information.

Parameters:
area an id to identify the output, 0 for default

Definition at line 268 of file odebug.cpp.

References Opie::Core::Internal::ODEBUG_WARN.

odbgstream & Opie::Core::perror odbgstream &  s  ) 
 

Definition at line 243 of file odebug.cpp.

References QString::fromLocal8Bit().

Referenced by filePermissions::accept(), HistoryBuffer::add(), AudioDevice::AudioDevice(), BackupAndRestore::backupRootFs(), BackupAndRestore::backupUserData(), HttpFactory::data(), HistoryBuffer::get(), getButtons(), ButtonDialog::getButtons(), Device::getDeviceBits(), Device::getDeviceChannels(), Device::getDeviceRate(), getRemotes(), LearnTab::getRemotes(), ButtonDialog::getRemotes(), AudioDevice::getVolume(), Opie::Core::OInputDevice::globalKeyMask(), Opie::Core::OInputDevice::globalSwitchMask(), Opie::Core::OInputDevice::hasFeature(), LibMadPlugin::http_open(), Opie::Core::OInputDevice::isHeld(), main(), WavFile::newFile(), Device::openDevice(), Device::openDsp(), VMemo::openDSP(), Output::Output(), quickexec(), quickexecv(), QtRec::quickRec(), readFile(), VMemo::record(), Device::reset(), MyPty::run(), save_licence(), Device::selectMicInput(), RemoteTab::sendIR(), Device::setDeviceChannels(), Device::setDeviceFormat(), Device::setDeviceRate(), Device::setFragSize(), HistoryBuffer::setScroll(), Jornada::setSoftSuspend(), Ramses::setSoftSuspend(), Zaurus::setSoftSuspend(), iPAQ::setSoftSuspend(), AudioDevice::setVolume(), ServerApplication::shutdown(), and SoundMixer::SoundMixer().


Variable Documentation

DebugBackend* Opie::Core::Internal::backEnd = 0 [static]
 

Definition at line 232 of file odebug.cpp.

Referenced by Opie::Core::clean_up_routine(), and Opie::Core::odbgstream::flush().


Generated on Sat Nov 5 16:35:21 2005 for OPIE by  doxygen 1.4.2