Changeset View
Changeset View
Standalone View
Standalone View
debuggers/common/mi/micommand.h
Show First 20 Lines • Show All 95 Lines • ▼ Show 20 Line(s) | |||||
96 | * @author John Birch | 96 | * @author John Birch | ||
97 | */ | 97 | */ | ||
98 | 98 | | |||
99 | class MICommand | 99 | class MICommand | ||
100 | { | 100 | { | ||
101 | protected: | 101 | protected: | ||
102 | MICommand(CommandType type, const QString& arguments = QString(), CommandFlags flags = 0); | 102 | MICommand(CommandType type, const QString& arguments = QString(), CommandFlags flags = 0); | ||
103 | friend class KDevMI::MIDebugSession; | 103 | friend class KDevMI::MIDebugSession; | ||
104 | | ||||
104 | public: | 105 | public: | ||
105 | 106 | | |||
106 | virtual ~MICommand(); | 107 | virtual ~MICommand(); | ||
107 | 108 | | |||
108 | CommandType type() const; | 109 | CommandType type() const; | ||
109 | virtual QString miCommand() const; | 110 | virtual QString miCommand() const; | ||
110 | 111 | | |||
111 | CommandFlags flags() const {return flags_;} | 112 | CommandFlags flags() const {return flags_;} | ||
▲ Show 20 Lines • Show All 77 Lines • ▼ Show 20 Line(s) | |||||
189 | const QStringList& allStreamOutput() const; | 190 | const QStringList& allStreamOutput() const; | ||
190 | 191 | | |||
191 | QString command() const; | 192 | QString command() const; | ||
192 | 193 | | |||
193 | void setStateReloading(bool f); | 194 | void setStateReloading(bool f); | ||
194 | 195 | | |||
195 | bool stateReloading() const; | 196 | bool stateReloading() const; | ||
196 | 197 | | |||
197 | private: | 198 | protected: | ||
198 | CommandType type_; | 199 | CommandType type_; | ||
199 | CommandFlags flags_; | 200 | CommandFlags flags_; | ||
200 | uint32_t token_ = 0; | 201 | uint32_t token_ = 0; | ||
201 | QString command_; | 202 | QString command_; | ||
202 | MICommandHandler *commandHandler_; | 203 | MICommandHandler *commandHandler_; | ||
203 | QStringList lines; | 204 | QStringList lines; | ||
204 | bool stateReloading_; | 205 | bool stateReloading_; | ||
205 | 206 | | |||
206 | private: | | |||
207 | int m_thread; | 207 | int m_thread; | ||
208 | int m_frame; | 208 | int m_frame; | ||
209 | }; | 209 | }; | ||
210 | 210 | | |||
211 | class UserCommand : public MICommand | 211 | class UserCommand : public MICommand | ||
212 | { | 212 | { | ||
213 | public: | 213 | public: | ||
214 | UserCommand(CommandType type, const QString& s); | 214 | UserCommand(CommandType type, const QString& s); | ||
▲ Show 20 Lines • Show All 136 Lines • Show Last 20 Lines |