MCPcopy Create free account
hub / github.com/KDE/kdevelop / MIDebugJobBase

Method MIDebugJobBase

plugins/debuggercommon/midebugjobs.cpp:31–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30template<class JobBase>
31MIDebugJobBase<JobBase>::MIDebugJobBase(MIDebuggerPlugin* plugin, QObject* parent)
32 : JobBase(parent)
33{
34 Q_ASSERT(plugin);
35
36 JobBase::setCapabilities(KJob::Killable);
37
38 m_session = plugin->createSession();
39 QObject::connect(m_session, &MIDebugSession::stateChanged, this, [this](IDebugSession::DebuggerState state) {
40 if (state == IDebugSession::EndedState) {
41 done();
42 }
43 });
44
45 qCDebug(DEBUGGERCOMMON) << "created debug job" << this << "with" << m_session;
46}
47
48template<class JobBase>
49MIDebugJobBase<JobBase>::~MIDebugJobBase()

Callers

nothing calls this directly

Calls 1

createSessionMethod · 0.45

Tested by

no test coverage detected