diff options
Diffstat (limited to 'akonadi2_cli/repl/replStates.cpp')
-rw-r--r-- | akonadi2_cli/repl/replStates.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/akonadi2_cli/repl/replStates.cpp b/akonadi2_cli/repl/replStates.cpp index 314cca8..0273aa2 100644 --- a/akonadi2_cli/repl/replStates.cpp +++ b/akonadi2_cli/repl/replStates.cpp | |||
@@ -29,7 +29,7 @@ | |||
29 | #include <QEvent> | 29 | #include <QEvent> |
30 | #include <QStateMachine> | 30 | #include <QStateMachine> |
31 | 31 | ||
32 | #include "module.h" | 32 | #include "syntaxtree.h" |
33 | 33 | ||
34 | static char *akonadi2_cli_next_tab_complete_match(const char *text, int state); | 34 | static char *akonadi2_cli_next_tab_complete_match(const char *text, int state); |
35 | static char ** akonadi2_cli_tab_completion(const char *text, int start, int end); | 35 | static char ** akonadi2_cli_tab_completion(const char *text, int start, int end); |
@@ -111,8 +111,8 @@ void EvalState::complete() | |||
111 | 111 | ||
112 | if (!m_partial.isEmpty()) { | 112 | if (!m_partial.isEmpty()) { |
113 | //emit output("Processing ... " + command); | 113 | //emit output("Processing ... " + command); |
114 | const QStringList commands = Module::tokenize(m_partial); | 114 | const QStringList commands = SyntaxTree::tokenize(m_partial); |
115 | Module::self()->run(commands); | 115 | SyntaxTree::self()->run(commands); |
116 | m_partial.clear(); | 116 | m_partial.clear(); |
117 | } | 117 | } |
118 | 118 | ||
@@ -149,7 +149,7 @@ static char **akonadi2_cli_tab_completion(const char *text, int start, int end) | |||
149 | 149 | ||
150 | static char *akonadi2_cli_next_tab_complete_match(const char *text, int state) | 150 | static char *akonadi2_cli_next_tab_complete_match(const char *text, int state) |
151 | { | 151 | { |
152 | QVector<Module::Syntax> nearest = Module::self()->nearestSyntax(tab_completion_full_state, QString(text)); | 152 | QVector<SyntaxTree::Syntax> nearest = SyntaxTree::self()->nearestSyntax(tab_completion_full_state, QString(text)); |
153 | 153 | ||
154 | if (nearest.size() > state) { | 154 | if (nearest.size() > state) { |
155 | return qstrdup(nearest[state].keyword.toUtf8()); | 155 | return qstrdup(nearest[state].keyword.toUtf8()); |