KDevelop API Documentation

valgrinditem.h

Go to the documentation of this file.
00001 #ifndef _VALGRINDITEM_H_
00002 #define _VALGRINDITEM_H_
00003 
00004 #include <qvaluelist.h>
00005 #include <qstring.h>
00006 
00007 class ValgrindBacktraceItem
00008 {
00009 public:
00010   enum Type { Unknown, SourceCode, Library };
00011   ValgrindBacktraceItem( const QString& rawOutput = QString::null );
00012   ~ValgrindBacktraceItem();
00013 
00014   QString message() const { return _message; }
00015   QString address() const { return _address; }
00016   QString url() const { return _url; }
00017   QString function() const { return _function; }
00018   int line() const { return _line; }
00019   int pid() const { return _pid; }
00020   Type type() const { return _type; }
00021   bool isHighlighted() const { return _highlight; }
00022   void setHighlighted( bool h ) { _highlight = h; }
00023   
00024 private:
00025   QString _rawOutput, _address, _url, _function, _message;
00026   int _line;
00027   int _pid;
00028   Type _type;
00029   bool _highlight;
00030 };
00031 
00032 class ValgrindItem
00033 {
00034 public:
00035   ValgrindItem( const QString& message );
00036   ~ValgrindItem();
00037 
00038   typedef QValueList<ValgrindBacktraceItem> BacktraceList;  
00039   BacktraceList& backtrace() { return _backtrace; }
00040   const BacktraceList& backtrace() const { return _backtrace; }
00041   QString message() const { return _message; }
00042   int pid() const { return _pid; }
00043   
00044 private:
00045   BacktraceList _backtrace;
00046   QString _message;
00047   int _pid;
00048 };
00049 
00050 #endif
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:03:58 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003