Changeset View
Changeset View
Standalone View
Standalone View
src/debuggerlaunchers.h
Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Line(s) | |||||
73 | 73 | | |||
74 | class DBusInterfaceAdaptor; | 74 | class DBusInterfaceAdaptor; | ||
75 | 75 | | |||
76 | /** This class handles the old drkonqi dbus interface used by kdevelop */ | 76 | /** This class handles the old drkonqi dbus interface used by kdevelop */ | ||
77 | class DBusInterfaceLauncher : public AbstractDebuggerLauncher | 77 | class DBusInterfaceLauncher : public AbstractDebuggerLauncher | ||
78 | { | 78 | { | ||
79 | Q_OBJECT | 79 | Q_OBJECT | ||
80 | public: | 80 | public: | ||
81 | explicit DBusInterfaceLauncher(const QString &name, DBusInterfaceAdaptor *parent = nullptr); | 81 | explicit DBusInterfaceLauncher(const QString &name, qint64 pid, DBusInterfaceAdaptor *parent = nullptr); | ||
82 | QString name() const override; | 82 | QString name() const override; | ||
83 | 83 | | |||
84 | public Q_SLOTS: | 84 | public Q_SLOTS: | ||
85 | void start() override; | 85 | void start() override; | ||
86 | 86 | | |||
87 | private: | 87 | private: | ||
88 | QString m_name; | 88 | QString m_name; | ||
89 | qint64 m_pid; | ||||
89 | }; | 90 | }; | ||
90 | 91 | | |||
91 | class DBusInterfaceAdaptor : public QDBusAbstractAdaptor | 92 | class DBusInterfaceAdaptor : public QDBusAbstractAdaptor | ||
92 | { | 93 | { | ||
93 | Q_OBJECT | 94 | Q_OBJECT | ||
94 | Q_CLASSINFO("D-Bus Interface", "org.kde.drkonqi") | 95 | Q_CLASSINFO("D-Bus Interface", "org.kde.drkonqi") | ||
95 | public: | 96 | public: | ||
96 | explicit DBusInterfaceAdaptor(DebuggerManager *parent); | 97 | explicit DBusInterfaceAdaptor(DebuggerManager *parent); | ||
97 | 98 | | |||
98 | public Q_SLOTS: | 99 | public Q_SLOTS: | ||
99 | int pid(); | 100 | int pid(); | ||
100 | Q_NOREPLY void registerDebuggingApplication(const QString &name); | 101 | Q_NOREPLY void registerDebuggingApplication(const QString &name, qint64 pid = 0); | ||
101 | Q_NOREPLY void debuggingFinished(const QString &name); | 102 | Q_NOREPLY void debuggingFinished(const QString &name); | ||
102 | Q_NOREPLY void debuggerClosed(const QString &name); | 103 | Q_NOREPLY void debuggerClosed(const QString &name); | ||
103 | 104 | | |||
104 | Q_SIGNALS: | 105 | Q_SIGNALS: | ||
105 | void acceptDebuggingApplication(const QString &name); | 106 | void acceptDebuggingApplication(const QString &name); | ||
106 | 107 | | |||
107 | private: | 108 | private: | ||
108 | QHash<QString, DBusInterfaceLauncher*> m_launchers; | 109 | QHash<QString, DBusInterfaceLauncher*> m_launchers; | ||
109 | }; | 110 | }; | ||
110 | 111 | | |||
111 | #endif // DEBUGGERLAUNCHERS_H | 112 | #endif // DEBUGGERLAUNCHERS_H |