Commit b5e9f348 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Start to implement feedback info

parent 64042f5a
......@@ -25,6 +25,11 @@
#include <QApplication>
#include <Kdelibs4ConfigMigrator>
#include <KCrash>
#ifdef WITH_KUSERFEEDBACK
#include "userfeedback/userfeedbackmanager.h"
#include <KUserFeedback/Provider>
#include <KUserFeedback/FeedbackConfigWidget>
#endif
int main(int argc, char *argv[])
{
......@@ -45,7 +50,12 @@ int main(int argc, char *argv[])
PimDataCommandLineOption parser;
parser.createParser(app);
#ifdef WITH_KUSERFEEDBACK
// if(parser.isSet(QStringLiteral("feedback"))) {
// QTextStream(stdout) << UserFeedBackManager::self()->userFeedbackProvider()->describeDataSources() << '\n';
// return 0;
// }
#endif
KDBusService service(KDBusService::Unique);
PimDataExporterWindow *backupMailWin = new PimDataExporterWindow();
......
......@@ -58,8 +58,9 @@ void PimDataCommandLineOption::createParser(const QApplication &app)
mParser.addOption(QCommandLineOption(QStringList() << QStringLiteral("import"), i18n("Import the given file")));
mParser.addOption(QCommandLineOption(QStringList() << QStringLiteral("export"), i18n("Export the given file")));
mParser.addOption(QCommandLineOption(QStringList() << QStringLiteral("+[url]"), i18n("File or url. The user will be asked whether to import or export.")));
#ifdef WITH_KUSERFEEDBACK
mParser.addOption(QCommandLineOption(QStringLiteral("feedback"), i18n("Lists the available options for user feedback")));
#endif
mParser.process(app);
aboutData.processCommandLine(&mParser);
}
......
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