~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to parts/valgrind/valgrind_part.h

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2010-05-05 07:21:55 UTC
  • mfrom: (1.2.3 upstream) (5.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100505072155-h78lx19pu04sbhtn
Tags: 4:4.0.0-2
* Upload to unstable (Closes: #579947, #481832).
* Acknowledge obsolete NMU fixes (Closes: #562410, #546961).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 *  Copyright (C) 2002 Harald Fernengel <harry@kdevelop.org>   
3
 
 */
4
 
 
5
 
#ifndef __KDEVPART_VALGRIND_H__
6
 
#define __KDEVPART_VALGRIND_H__
7
 
 
8
 
#include <qguardedptr.h>
9
 
#include <qstring.h>
10
 
#include <qstringlist.h>
11
 
#include <kdevplugin.h>
12
 
 
13
 
class ValgrindWidget;
14
 
class KProcess;
15
 
 
16
 
class ValgrindPart : public KDevPlugin
17
 
{
18
 
  Q_OBJECT
19
 
 
20
 
public:   
21
 
  ValgrindPart( QObject *parent, const char *name, const QStringList & );
22
 
  ~ValgrindPart();
23
 
  
24
 
  void runValgrind( const QString& exec, const QString& parameters, const QString& valExec, const QString& valParameters );
25
 
 
26
 
  void savePartialProjectSession( QDomElement* el );
27
 
  void restorePartialProjectSession( const QDomElement* el );
28
 
 
29
 
private slots:
30
 
  void slotExecValgrind();
31
 
  void slotExecCalltree();
32
 
  void slotKillValgrind();
33
 
  void slotStopButtonClicked( KDevPlugin* which );
34
 
  void receivedStdout( KProcess*, char*, int );
35
 
  void receivedStderr( KProcess*, char*, int );
36
 
  void processExited( KProcess* );
37
 
  void loadOutput();
38
 
  void projectOpened();
39
 
  
40
 
private:
41
 
  void getActiveFiles();
42
 
  void appendMessage( const QString& message );
43
 
  void appendMessages( const QStringList& lines );
44
 
  void receivedString( const QString& str );
45
 
  void clear();
46
 
  QString _lastExec, _lastParams, _lastValExec, _lastValParams,
47
 
      _lastCtExec, _lastCtParams, _lastKcExec;
48
 
  KProcess* proc;
49
 
  QString currentMessage;
50
 
  QString lastPiece;
51
 
  QStringList activeFiles;
52
 
  int currentPid;
53
 
  QGuardedPtr<ValgrindWidget> m_widget;
54
 
  struct {
55
 
      bool runKc;
56
 
      QString kcPath;
57
 
//      QString kcWorkDir;
58
 
  } kcInfo;
59
 
};
60
 
 
61
 
 
62
 
#endif