File indexing completed on 2023-10-01 07:35:55
0001 /* 0002 SPDX-License-Identifier: GPL-2.0-or-later 0003 SPDX-FileCopyrightText: 2009 Alexander Rieder <alexanderrieder@gmail.com> 0004 SPDX-FileCopyrightText: 2018-2022 Alexander Semke <alexander.semke@web.de> 0005 */ 0006 0007 #ifndef _REXPRESSION_H 0008 #define _REXPRESSION_H 0009 0010 #include "expression.h" 0011 0012 class RExpression : public Cantor::Expression 0013 { 0014 Q_OBJECT 0015 public: 0016 enum ServerReturnCode{SuccessCode=0, ErrorCode, InterruptedCode}; 0017 explicit RExpression( Cantor::Session*, bool internal = false); 0018 ~RExpression() override = default; 0019 0020 void evaluate() override; 0021 void interrupt() override; 0022 void parseOutput(const QString&) override; 0023 void parseError(const QString&) override; 0024 void showFilesAsResult(const QStringList&); 0025 0026 void addInformation(const QString&) override; 0027 0028 private: 0029 bool m_isHelpRequest{false}; 0030 }; 0031 0032 #endif /* _REXPRESSION_H */