Commit 2eb96b56 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Start to implement "feedback"

parent 471c39b4
......@@ -49,6 +49,9 @@ static void akregator_options(QCommandLineParser *parser)
QStringLiteral("url"),
i18n("Add a feed with the given URL"),
QStringLiteral("[url...]"));
#ifdef WITH_KUSERFEEDBACK
parser->addOption(QCommandLineOption(QStringLiteral("feedback"), i18n("Lists the available options for user feedback")));
#endif
}
}
......
......@@ -100,6 +100,12 @@ int main(int argc, char **argv)
cmdArgs->process(args);
about.processCommandLine(cmdArgs);
#ifdef WITH_KUSERFEEDBACK
if(cmdArgs->isSet(QStringLiteral("feedback"))) {
//QTextStream(stdout) << UserFeedBackManager::self()->userFeedbackProvider()->describeDataSources() << '\n';
return 0;
}
#endif
if (!Akregator::Application::start(args)) {
qCWarning(AKREGATOR_LOG) << "akregator is already running, exiting.";
exit(0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment