Warning, file /kdevelop/kdev-python/debugger/debugjob.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 SPDX-FileCopyrightText: 2012 Sven Brauch <svenbrauch@googlemail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef PDBDEBUGJOB_H 0008 #define PDBDEBUGJOB_H 0009 0010 #include <outputview/outputjob.h> 0011 #include <outputview/outputmodel.h> 0012 #include "debugsession.h" 0013 0014 namespace Python { 0015 0016 class DebugJob : public KDevelop::OutputJob 0017 { 0018 Q_OBJECT 0019 public: 0020 DebugJob(); 0021 ~DebugJob() override; 0022 0023 /** 0024 * @brief Create a debug session and start it. 0025 **/ 0026 void start() override; 0027 bool doKill() override; 0028 0029 QUrl m_scriptUrl; 0030 QString m_interpreter; 0031 QStringList m_args; 0032 QUrl m_workingDirectory; 0033 QString m_envProfileName; 0034 0035 private slots: 0036 void standardOutputReceived(QStringList lines); 0037 void standardErrorReceived(QStringList lines); 0038 0039 private: 0040 OutputModel* outputModel(); 0041 DebugSession* m_session; 0042 public slots: 0043 void sessionFinished(); 0044 }; 0045 0046 } 0047 0048 #endif // DEBUGJOB_H