• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • KDevelop Utility Library
 

KDevelop Utility Library

  • lib
  • util
blockingkprocess.h
1
2/***************************************************************************
3* Copyright (C) 2006 by Andras Mantia *
4* amantia@kde.org *
5* *
6* This program is free software; you can redistribute it and/or modify *
7* it under the terms of the GNU General Public License as published by *
8* the Free Software Foundation; either version 2 of the License, or *
9* (at your option) any later version. *
10* *
11***************************************************************************/
12
13
14#ifndef BLOCKINGKPROCESS_H
15#define BLOCKINGKPROCESS_H
16
17#include <kprocess.h>
18
30class TQTimer;
31class BlockingTDEProcess : public TDEProcess
32{
33 TQ_OBJECT
34
35
36public:
37 BlockingTDEProcess(TQObject *parent, const char *name=0);
38 BlockingTDEProcess();
39
40 virtual ~BlockingTDEProcess();
41
50 virtual bool start(RunMode runmode=NotifyOnExit, Communication comm=NoCommunication);
51
56 TQString stdOut() { return m_stdOut;}
60 void clearStdOut() { m_stdOut = "";}
65 TQString stdErr() { return m_stdErr;}
69 void clearStdErr() { m_stdErr = "";}
70
75 void setTimeOut(int timeout) { m_timeoutValue = timeout; }
76
77private slots:
78 void slotReceivedStdOut(TDEProcess *proc, char *buffer, int buflen);
79 void slotReceivedStdErr(TDEProcess *proc, char *buffer, int buflen);
80 void slotProcessExited(TDEProcess *proc);
81 void slotTimeOut();
82
83private:
84 void enter_loop();
85
86 TQString m_stdOut;
87 TQString m_stdErr;
88 bool m_timeout;
89 int m_timeoutValue;
90 TQTimer *m_timer;
91};
92
93#endif

KDevelop Utility Library

Skip menu "KDevelop Utility Library"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

KDevelop Utility Library

Skip menu "KDevelop Utility Library"
  • buildtools
  •   lib
  •     base
  •     parsers
  •       autotools
  •       qmake
  •     widgets
  •   api
  • languages
  •   lib
  •     debugger
  •     designer_integration
  •     interfaces
  • lib
  •   catalog
  •   interfaces
  •     extensions
  •     external
  •     extras
  •   util
  •   widgets
  •     propeditor
  • parts
  •   documentation
  •     interfaces
  • src
  •   profileengine
  •     lib
Generated for KDevelop Utility Library by doxygen 1.9.8
This website is maintained by Timothy Pearson.