• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KDECore

Debug message generators

KDE debug message streams let you and the user control just how many debug messages you see. More...


Classes

class  kdbgstream
 kdbgstream is a text stream that allows you to print debug messages. More...
class  kndbgstream

Defines

#define k_funcinfo   "[" << __FILE__ << ":" << __LINE__ << "] "
#define k_lineinfo   "[" << __FILE__ << ":" << __LINE__ << "] "

Typedefs

typedef kdbgstream &(* KDBGFUNC )(kdbgstream &)
typedef kndbgstream &(* KNDBGFUNC )(kndbgstream &)

Functions

kdbgstream & KGlobal::endl (kdbgstream &s)
kndbgstream & endl (kndbgstream &s)
kdbgstream & KGlobal::flush (kdbgstream &s)
kndbgstream & flush (kndbgstream &s)
QString KGlobal::kdBacktrace (int levels)
QString KGlobal::kdBacktrace ()
void KGlobal::kdClearDebugConfig ()
kdbgstream KGlobal::kdDebug (int area=0)
kdbgstream kdDebug (bool cond, int area=0)
kdbgstream KGlobal::kdError (int area=0)
kdbgstream kdError (bool cond, int area=0)
kdbgstream KGlobal::kdFatal (int area=0)
kdbgstream kdFatal (bool cond, int area=0)
kdbgstream KGlobal::kdWarning (int area=0)
kdbgstream kdWarning (bool cond, int area=0)
QString kndBacktrace (int)
QString kndBacktrace ()
kndbgstream kndDebug (bool, int=0)
kndbgstream kndDebug (int area=0)
template<class T >
kdbgstream & kdbgstream::operator<< (const QValueList< T > &list)
kndbgstream & perror (kndbgstream &s)
kdbgstream & perror (kdbgstream &s)

Detailed Description

KDE debug message streams let you and the user control just how many debug messages you see.

Define Documentation

#define k_funcinfo   "[" << __FILE__ << ":" << __LINE__ << "] "

Definition at line 61 of file kdebug.h.

#define k_lineinfo   "[" << __FILE__ << ":" << __LINE__ << "] "

Definition at line 64 of file kdebug.h.


Typedef Documentation

typedef kdbgstream&(* KDBGFUNC)(kdbgstream &)

Definition at line 55 of file kdebug.h.

typedef kndbgstream&(* KNDBGFUNC)(kndbgstream &)

Definition at line 56 of file kdebug.h.


Function Documentation

kdbgstream & endl ( kdbgstream &  s  )  [related, inherited]

Prints an "\n".

Parameters:
s the debug stream to write to
Returns:
the debug stream (s)

Definition at line 430 of file kdebug.h.

kndbgstream& endl ( kndbgstream &  s  )  [inline]

Does nothing.

Parameters:
s a stream
Returns:
the given s

Definition at line 583 of file kdebug.h.

kdbgstream & flush ( kdbgstream &  s  )  [related, inherited]

Flushes the stream.

Parameters:
s the debug stream to write to
Returns:
the debug stream (s)

Definition at line 438 of file kdebug.h.

kndbgstream& flush ( kndbgstream &  s  )  [inline]

Does nothing.

Parameters:
s a stream
Returns:
the given s

Definition at line 589 of file kdebug.h.

QString kdBacktrace ( int  levels  )  [related, inherited]

Returns a backtrace.

Parameters:
levels the number of levels of the backtrace
Returns:
a backtrace
Since:
3.1

Definition at line 561 of file kdebug.cpp.

QString kdBacktrace (  )  [related, inherited]

Returns a backtrace.

Returns:
a backtrace

Definition at line 586 of file kdebug.cpp.

void kdClearDebugConfig (  )  [related, inherited]

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

Definition at line 591 of file kdebug.cpp.

kdbgstream kdDebug ( int  area = 0  )  [related, inherited]

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

Parameters:
area an id to identify the output, 0 for default
See also:
kndDebug()

Definition at line 325 of file kdebug.cpp.

kdbgstream kdDebug ( bool  cond,
int  area = 0 
)

Definition at line 326 of file kdebug.cpp.

kdbgstream kdError ( int  area = 0  )  [related, inherited]

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 328 of file kdebug.cpp.

kdbgstream kdError ( bool  cond,
int  area = 0 
)

Definition at line 329 of file kdebug.cpp.

kdbgstream kdFatal ( int  area = 0  )  [related, inherited]

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 332 of file kdebug.cpp.

kdbgstream kdFatal ( bool  cond,
int  area = 0 
)

Definition at line 333 of file kdebug.cpp.

kdbgstream kdWarning ( int  area = 0  )  [related, inherited]

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 330 of file kdebug.cpp.

kdbgstream kdWarning ( bool  cond,
int  area = 0 
)

Definition at line 331 of file kdebug.cpp.

QString kndBacktrace ( int   )  [inline]

Definition at line 623 of file kdebug.h.

QString kndBacktrace (  )  [inline]

Definition at line 622 of file kdebug.h.

kndbgstream kndDebug ( bool  ,
int  = 0 
) [inline]

Definition at line 621 of file kdebug.h.

kndbgstream kndDebug ( int  area = 0  )  [inline]

Returns a dummy debug stream.

The stream does not print anything.

Parameters:
area an id to identify the output, 0 for default
See also:
kdDebug()

Definition at line 620 of file kdebug.h.

template<class T >
kdbgstream & kdbgstream::operator<< ( const QValueList< T > &  list  )  [inline, inherited]

Prints the given value.

Parameters:
list the list to print
Returns:
this stream
Since:
3.3

Definition at line 410 of file kdebug.h.

kndbgstream& perror ( kndbgstream &  s  )  [inline]

Definition at line 590 of file kdebug.h.

kdbgstream& perror ( kdbgstream &  s  ) 

Definition at line 324 of file kdebug.cpp.

KDECore

Skip menu "KDECore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal