diff options
author | Aaron Seigo <aseigo@kde.org> | 2015-12-23 23:10:03 +0100 |
---|---|---|
committer | Aaron Seigo <aseigo@kde.org> | 2015-12-23 23:10:03 +0100 |
commit | a638c410ad83f8d8fe236c1500beaf63d69cbac6 (patch) | |
tree | 5289d11290a7022b73bb0170a85cb32f384f6ce0 /akonadi2_cli/syntaxtree.cpp | |
parent | a89e9766adac31f700ef47f982583baaf5ce9309 (diff) | |
download | sink-a638c410ad83f8d8fe236c1500beaf63d69cbac6.tar.gz sink-a638c410ad83f8d8fe236c1500beaf63d69cbac6.zip |
add count command
Diffstat (limited to 'akonadi2_cli/syntaxtree.cpp')
-rw-r--r-- | akonadi2_cli/syntaxtree.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/akonadi2_cli/syntaxtree.cpp b/akonadi2_cli/syntaxtree.cpp index cebfc4b..0cd3e3f 100644 --- a/akonadi2_cli/syntaxtree.cpp +++ b/akonadi2_cli/syntaxtree.cpp | |||
@@ -26,6 +26,7 @@ | |||
26 | // almost certainly overkill, but this is not the way either | 26 | // almost certainly overkill, but this is not the way either |
27 | #include "syntax_modules/core_syntax.h" | 27 | #include "syntax_modules/core_syntax.h" |
28 | #include "syntax_modules/akonadi_list.h" | 28 | #include "syntax_modules/akonadi_list.h" |
29 | #include "syntax_modules/akonadi_count.h" | ||
29 | 30 | ||
30 | SyntaxTree *SyntaxTree::s_module = 0; | 31 | SyntaxTree *SyntaxTree::s_module = 0; |
31 | 32 | ||
@@ -46,6 +47,7 @@ SyntaxTree::SyntaxTree() | |||
46 | QVector<std::function<Syntax::List()> > syntaxSyntaxTrees; | 47 | QVector<std::function<Syntax::List()> > syntaxSyntaxTrees; |
47 | syntaxSyntaxTrees << &CoreSyntax::syntax | 48 | syntaxSyntaxTrees << &CoreSyntax::syntax |
48 | << &AkonadiList::syntax | 49 | << &AkonadiList::syntax |
50 | << &AkonadiCount::syntax | ||
49 | ; | 51 | ; |
50 | for (auto syntaxSyntaxTree: syntaxSyntaxTrees) { | 52 | for (auto syntaxSyntaxTree: syntaxSyntaxTrees) { |
51 | m_syntax += syntaxSyntaxTree(); | 53 | m_syntax += syntaxSyntaxTree(); |