KDevelop API Documentation

valgrind_part.h

Go to the documentation of this file.
00001 /*
00002  *  Copyright (C) 2002 Harald Fernengel <harry@kdevelop.org>   
00003  */
00004 
00005 #ifndef __KDEVPART_VALGRIND_H__
00006 #define __KDEVPART_VALGRIND_H__
00007 
00008 #include <qguardedptr.h>
00009 #include <qstring.h>
00010 #include <qstringlist.h>
00011 #include <kdevplugin.h>
00012 
00013 class ValgrindWidget;
00014 class KProcess;
00015 
00016 class ValgrindPart : public KDevPlugin
00017 {
00018   Q_OBJECT
00019 
00020 public:   
00021   ValgrindPart( QObject *parent, const char *name, const QStringList & );
00022   ~ValgrindPart();
00023   
00024   void runValgrind( const QString& exec, const QString& parameters, const QString& valExec, const QString& valParameters );
00025 
00026   void savePartialProjectSession( QDomElement* el );
00027   void restorePartialProjectSession( const QDomElement* el );
00028 
00029 private slots:
00030   void slotExecValgrind();
00031   void slotExecCalltree();
00032   void slotKillValgrind();
00033   void slotStopButtonClicked( KDevPlugin* which );
00034   void receivedStdout( KProcess*, char*, int );
00035   void receivedStderr( KProcess*, char*, int );
00036   void processExited( KProcess* );
00037   void loadOutput();
00038   void projectOpened();
00039   
00040 private:
00041   void getActiveFiles();
00042   void appendMessage( const QString& message );
00043   void appendMessages( const QStringList& lines );
00044   void receivedString( const QString& str );
00045   void clear();
00046   QString _lastExec, _lastParams, _lastValExec, _lastValParams,
00047       _lastCtExec, _lastCtParams, _lastKcExec;
00048   KProcess* proc;
00049   QString currentMessage;
00050   QString lastPiece;
00051   QStringList activeFiles;
00052   int currentPid;
00053   QGuardedPtr<ValgrindWidget> m_widget;
00054   struct {
00055       bool runKc;
00056       QString kcPath;
00057 //      QString kcWorkDir;
00058   } kcInfo;
00059 };
00060 
00061 
00062 #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