~ubuntu-branches/ubuntu/raring/kdevplatform/raring

« back to all changes in this revision

Viewing changes to plugins/executescript/scriptappjob.h

  • Committer: Package Import Robot
  • Author(s): Rohan Garg
  • Date: 2012-01-17 03:21:56 UTC
  • mfrom: (0.3.15)
  • Revision ID: package-import@ubuntu.com-20120117032156-toarhfq5ihtpvm2p
Tags: 1.2.81-0ubuntu1
* New upstream release
  - Refreshed kubuntu_01_appmenu_fix.diff
  - Bump SONAME for kdevplatform and libsublime
    + Add appropriate Breaks/Replaces
  - Refresh install files

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*  This file is part of KDevelop
 
2
    Copyright 2009 Andreas Pakulat <apaku@gmx.de>
 
3
    Copyright 2009 Niko Sams <niko.sams@gmail.com>
 
4
 
 
5
    This library is free software; you can redistribute it and/or
 
6
    modify it under the terms of the GNU Library General Public
 
7
    License as published by the Free Software Foundation; either
 
8
    version 2 of the License, or (at your option) any later version.
 
9
 
 
10
    This library is distributed in the hope that it will be useful,
 
11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
13
    Library General Public License for more details.
 
14
 
 
15
    You should have received a copy of the GNU Library General Public License
 
16
    along with this library; see the file COPYING.LIB.  If not, write to
 
17
    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
18
    Boston, MA 02110-1301, USA.
 
19
*/
 
20
 
 
21
#ifndef SCRIPTAPPJOB_H
 
22
#define SCRIPTAPPJOB_H
 
23
 
 
24
#include <QtCore/QProcess>
 
25
#include <outputview/outputjob.h>
 
26
 
 
27
namespace KDevelop
 
28
{
 
29
class ILaunchConfiguration;
 
30
class ProcessLineMaker;
 
31
class OutputModel;
 
32
}
 
33
 
 
34
class KProcess;
 
35
 
 
36
class ScriptAppJob : public KDevelop::OutputJob
 
37
{
 
38
Q_OBJECT
 
39
public:
 
40
    ScriptAppJob( QObject* parent, KDevelop::ILaunchConfiguration* cfg );
 
41
    virtual void start();
 
42
    virtual bool doKill();
 
43
    KDevelop::OutputModel* model();
 
44
private slots:
 
45
    void processError(QProcess::ProcessError);
 
46
    void processFinished(int,QProcess::ExitStatus);
 
47
private:
 
48
    void appendLine(const QString &l);
 
49
    KProcess* proc;
 
50
    KDevelop::ProcessLineMaker* lineMaker;
 
51
};
 
52
 
 
53
#endif