| 1 | /* |
| 2 | Copyright 2013 Christian Surlykke |
| 3 | |
| 4 | This program is free software; you can redistribute it and/or modify |
| 5 | it under the terms of the GNU General Public License as published by |
| 6 | the Free Software Foundation; either version 2 of the License, or |
| 7 | (at your option) any later version. |
| 8 | |
| 9 | This program is distributed in the hope that it will be useful, |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | GNU General Public License for more details. |
| 13 | |
| 14 | You should have received a copy of the GNU General Public License |
| 15 | along with this program; if not, write to the Free Software |
| 16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
| 17 | 02110-1301 USA. |
| 18 | */ |
| 19 | #ifndef TASK_H |
| 20 | #define TASK_Hcxx . . $ `lib/HistorySearch.h:20:9`! |
| 21 | |
| 22 | #include <QObject> |
| 23 | #include <QPointer> |
| 24 | #include <QMap> |
| 25 | |
| 26 | #include <Session.h>cxx . . $ `<file>/lib/Session.h`/ |
| 27 | #include <ScreenWindow.h>cxx . . $ `<file>/lib/ScreenWindow.h`/ |
| 28 | |
| 29 | #include "Emulation.h"cxx . . $ `<file>/lib/Emulation.h`/ |
| 30 | #include "TerminalCharacterDecoder.h"cxx . . $ `<file>/lib/TerminalCharacterDecoder.h`/ |
| 31 | |
| 32 | using namespace Konsole; |
| 33 | |
| 34 | typedef QPointercxx . . $ QPointer#<Emulationcxx . . $ Konsole/Emulation#> EmulationPtrcxx . . $ EmulationPtr#; |
| 35 | |
| 36 | class HistorySearchcxx . . $ HistorySearch# : public QObjectcxx . . $ QObject# |
| 37 | { |
| 38 | Q_OBJECTcxx . . $ HistorySearch#staticMetaObject. |
| 39 | |
| 40 | public: |
| 41 | explicit HistorySearchcxx . . $ HistorySearch#HistorySearch(faa5ea263d11b3c2).(EmulationPtrcxx . . $ EmulationPtr# emulation, const QRegExpcxx . . $ QRegExp#& regExp, bool forwards, |
| 42 | int startColumn, int startLine, QObjectcxx . . $ QObject#* parent); |
| 43 | |
| 44 | ~cxx . . $ HistorySearch#`~HistorySearch`(ced63f7c635d850d).HistorySearchcxx . . $ HistorySearch#() override; |
| 45 | |
| 46 | void searchcxx . . $ HistorySearch#search(49f6e7a06ebc5aa8).(); |
| 47 | |
| 48 | signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!: |
| 49 | void matchFoundcxx . . $ HistorySearch#matchFound(748afa4755bc9595).(int startColumn, int startLine, int endColumn, int endLine); |
| 50 | void noMatchFoundcxx . . $ HistorySearch#noMatchFound(49f6e7a06ebc5aa8).(); |
| 51 | |
| 52 | private: |
| 53 | bool searchcxx . . $ HistorySearch#search(a1642a0ee405ca20).(int startColumn, int startLine, int endColumn, int endLine); |
| 54 | int findLineNumberInStringcxx . . $ HistorySearch#findLineNumberInString(bae4cce454b0b3c).(QListcxx . . $ QList#<int> linePositions, int position); |
| 55 | |
| 56 | |
| 57 | EmulationPtrcxx . . $ EmulationPtr# m_emulationcxx . . $ HistorySearch#m_emulation.; |
| 58 | QRegExpcxx . . $ QRegExp# m_regExpcxx . . $ HistorySearch#m_regExp.; |
| 59 | bool m_forwardscxx . . $ HistorySearch#m_forwards.; |
| 60 | int m_startColumncxx . . $ HistorySearch#m_startColumn.; |
| 61 | int m_startLinecxx . . $ HistorySearch#m_startLine.; |
| 62 | |
| 63 | int m_foundStartColumncxx . . $ HistorySearch#m_foundStartColumn.; |
| 64 | int m_foundStartLinecxx . . $ HistorySearch#m_foundStartLine.; |
| 65 | int m_foundEndColumncxx . . $ HistorySearch#m_foundEndColumn.; |
| 66 | int m_foundEndLinecxx . . $ HistorySearch#m_foundEndLine.; |
| 67 | }; |
| 68 | |
| 69 | #endif /* TASK_H */ |
| 70 |