MCPcopy Create free account
hub / github.com/KDE/okular / unserializeOptions

Function unserializeOptions

shell/shellutils.cpp:81–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81static bool unserializeOptions(const QString &serializedOptions, bool *presentation, bool *print, bool *print_and_exit, bool *unique, bool *noraise, QString *page, QString *find, QString *editorCmd)
82{
83 const QStringList args = serializedOptions.split(QStringLiteral(":"));
84
85 if (args.count() >= 8) {
86 *presentation = args[0] == QLatin1String("1");
87 *print = args[1] == QLatin1String("1");
88 *print_and_exit = args[2] == QLatin1String("1");
89 *unique = args[3] == QLatin1String("1");
90 *noraise = args[4] == QLatin1String("1");
91 *page = args[5];
92 *find = args[6];
93 *editorCmd = args[7];
94 return true;
95 }
96 return false;
97}
98
99bool startInPresentation(const QString &serializedOptions)
100{

Callers 8

startInPresentationFunction · 0.85
showPrintDialogFunction · 0.85
showPrintDialogAndExitFunction · 0.85
uniqueFunction · 0.85
noRaiseFunction · 0.85
pageFunction · 0.85
findFunction · 0.85
editorCmdFunction · 0.85

Calls 2

splitMethod · 0.80
countMethod · 0.45

Tested by

no test coverage detected