Changeset View
Changeset View
Standalone View
Standalone View
outputview/outputexecutejob.h
Show First 20 Lines • Show All 149 Lines • ▼ Show 20 Line(s) | 40 | public: | |||
---|---|---|---|---|---|
150 | * @note If you need the command-line to be appended to the job name, | 150 | * @note If you need the command-line to be appended to the job name, | ||
151 | * make sure that it is already configured upon calling this function. | 151 | * make sure that it is already configured upon calling this function. | ||
152 | * | 152 | * | ||
153 | * @param name The name to set; empty string to use default (process string). | 153 | * @param name The name to set; empty string to use default (process string). | ||
154 | */ | 154 | */ | ||
155 | void setJobName( const QString& name ); | 155 | void setJobName( const QString& name ); | ||
156 | 156 | | |||
157 | /** | 157 | /** | ||
158 | * Set the filtering strategy for the output model. | 158 | * Set one of the standard filtering strategies for the output model. | ||
159 | */ | 159 | */ | ||
160 | void setFilteringStrategy( OutputModel::OutputFilterStrategy strategy ); | 160 | void setFilteringStrategy( OutputModel::OutputFilterStrategy strategy ); | ||
161 | 161 | | |||
162 | /** | 162 | /** | ||
163 | * Set the filtering strategy for the output model. | ||||
164 | */ | ||||
165 | void setFilteringStrategy(IFilterStrategy* filterStrategy); | ||||
166 | | ||||
167 | /** | ||||
163 | * Get the current properties of the job. | 168 | * Get the current properties of the job. | ||
164 | * | 169 | * | ||
165 | * @note Default-set properties are: \ref DisplayStdout. | 170 | * @note Default-set properties are: \ref DisplayStdout. | ||
166 | */ | 171 | */ | ||
167 | virtual JobProperties properties() const; | 172 | virtual JobProperties properties() const; | ||
168 | 173 | | |||
169 | /** | 174 | /** | ||
170 | * Set properties of the job. | 175 | * Set properties of the job. | ||
▲ Show 20 Lines • Show All 61 Lines • ▼ Show 20 Line(s) | 231 | protected slots: | |||
232 | virtual void postProcessStderr( const QStringList& lines ); | 237 | virtual void postProcessStderr( const QStringList& lines ); | ||
233 | 238 | | |||
234 | // Redefine these functions if you want to handle process' exit codes in a special manner. | 239 | // Redefine these functions if you want to handle process' exit codes in a special manner. | ||
235 | // One possible usage is in "cvs diff" job which returns 1 on success. | 240 | // One possible usage is in "cvs diff" job which returns 1 on success. | ||
236 | virtual void childProcessExited( int exitCode, QProcess::ExitStatus exitStatus ); | 241 | virtual void childProcessExited( int exitCode, QProcess::ExitStatus exitStatus ); | ||
237 | virtual void childProcessError( QProcess::ProcessError processError ); | 242 | virtual void childProcessError( QProcess::ProcessError processError ); | ||
238 | 243 | | |||
239 | private: | 244 | private: | ||
245 | friend class OutputExecuteJobPrivate; | ||||
240 | OutputExecuteJobPrivate* d; | 246 | OutputExecuteJobPrivate* d; | ||
241 | 247 | | |||
242 | Q_PRIVATE_SLOT(d, void childProcessStdout()); | 248 | Q_PRIVATE_SLOT(d, void childProcessStdout()); | ||
243 | Q_PRIVATE_SLOT(d, void childProcessStderr()); | 249 | Q_PRIVATE_SLOT(d, void childProcessStderr()); | ||
244 | }; | 250 | }; | ||
245 | 251 | | |||
246 | } // namespace KDevelop | 252 | } // namespace KDevelop | ||
247 | 253 | | |||
248 | Q_DECLARE_OPERATORS_FOR_FLAGS(KDevelop::OutputExecuteJob::JobProperties); | 254 | Q_DECLARE_OPERATORS_FOR_FLAGS(KDevelop::OutputExecuteJob::JobProperties); | ||
249 | 255 | | |||
250 | #endif // KDEVPLATFORM_OUTPUTEXECUTEJOB_H | 256 | #endif // KDEVPLATFORM_OUTPUTEXECUTEJOB_H |