summaryrefslogtreecommitdiffstats
path: root/akonadi2_cli/syntax_modules/core_syntax.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'akonadi2_cli/syntax_modules/core_syntax.cpp')
-rw-r--r--akonadi2_cli/syntax_modules/core_syntax.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/akonadi2_cli/syntax_modules/core_syntax.cpp b/akonadi2_cli/syntax_modules/core_syntax.cpp
index f9cd622..1231e29 100644
--- a/akonadi2_cli/syntax_modules/core_syntax.cpp
+++ b/akonadi2_cli/syntax_modules/core_syntax.cpp
@@ -30,15 +30,15 @@ namespace CoreSyntax
30SyntaxTree::SyntaxList syntax() 30SyntaxTree::SyntaxList syntax()
31{ 31{
32 SyntaxTree::SyntaxList syntax; 32 SyntaxTree::SyntaxList syntax;
33 syntax << SyntaxTree::Syntax("exit", QObject::tr("Exits the application. Ctrl-d also works!"), &CoreSyntax::exit); 33 syntax << Syntax("exit", QObject::tr("Exits the application. Ctrl-d also works!"), &CoreSyntax::exit);
34 syntax << SyntaxTree::Syntax(QObject::tr("help"), QObject::tr("Print command information: help [command]"), &CoreSyntax::showHelp); 34 syntax << Syntax(QObject::tr("help"), QObject::tr("Print command information: help [command]"), &CoreSyntax::showHelp);
35 35
36 SyntaxTree::Syntax set(QObject::tr("set"), QObject::tr("Sets settings for the session")); 36 Syntax set(QObject::tr("set"), QObject::tr("Sets settings for the session"));
37 set.children << SyntaxTree::Syntax(QObject::tr("debug"), QObject::tr("Set the debug level from 0 to 6"), &CoreSyntax::setDebugLevel); 37 set.children << Syntax(QObject::tr("debug"), QObject::tr("Set the debug level from 0 to 6"), &CoreSyntax::setDebugLevel);
38 syntax << set; 38 syntax << set;
39 39
40 SyntaxTree::Syntax get(QObject::tr("get"), QObject::tr("Gets settings for the session")); 40 Syntax get(QObject::tr("get"), QObject::tr("Gets settings for the session"));
41 get.children << SyntaxTree::Syntax(QObject::tr("debug"), QObject::tr("Set the debug level from 0 to 6"), &CoreSyntax::printDebugLevel); 41 get.children << Syntax(QObject::tr("debug"), QObject::tr("Set the debug level from 0 to 6"), &CoreSyntax::printDebugLevel);
42 syntax << get; 42 syntax << get;
43 43
44 return syntax; 44 return syntax;
@@ -65,7 +65,7 @@ bool showHelp(const QStringList &commands, State &state)
65 for (auto keyword: sorted) { 65 for (auto keyword: sorted) {
66 state.printLine(keyword, 1); 66 state.printLine(keyword, 1);
67 } 67 }
68 } else if (const SyntaxTree::Syntax *syntax = command.first) { 68 } else if (const Syntax *syntax = command.first) {
69 //TODO: get parent! 69 //TODO: get parent!
70 state.print(QObject::tr("Command `%1`").arg(syntax->keyword)); 70 state.print(QObject::tr("Command `%1`").arg(syntax->keyword));
71 71