Changeset View
Changeset View
Standalone View
Standalone View
shell/shellutils.h
Show All 18 Lines | |||||
19 | namespace ShellUtils | 19 | namespace ShellUtils | ||
20 | { | 20 | { | ||
21 | 21 | | |||
22 | typedef bool (*FileExistFunc)( const QString& fileName ); | 22 | typedef bool (*FileExistFunc)( const QString& fileName ); | ||
23 | 23 | | |||
24 | FileExistFunc qfileExistFunc(); | 24 | FileExistFunc qfileExistFunc(); | ||
25 | QUrl urlFromArg(const QString& _arg, FileExistFunc exist_func, const QString& pageArg = QString() ); | 25 | QUrl urlFromArg(const QString& _arg, FileExistFunc exist_func, const QString& pageArg = QString() ); | ||
26 | QString serializeOptions(const QCommandLineParser &args); | 26 | QString serializeOptions(const QCommandLineParser &args); | ||
27 | QString serializeOptions(bool startInPresentation, bool showPrintDialog, bool unique, bool noRaise, const QString &page); | 27 | QString serializeOptions(bool startInPresentation, bool showPrintDialog, bool showPrintDialogAndExit, bool unique, bool noRaise, const QString &page); | ||
28 | bool unserializeOptions(const QString &serializedOptions, bool *presentation, bool *print, bool *unique, bool *noraise, QString *page); | 28 | bool unserializeOptions(const QString &serializedOptions, bool *presentation, bool *print, bool *print_and_exit, bool *unique, bool *noraise, QString *page); | ||
29 | bool unique(const QString &serializedOptions); | 29 | bool unique(const QString &serializedOptions); | ||
30 | bool noRaise(const QString &serializedOptions); | 30 | bool noRaise(const QString &serializedOptions); | ||
31 | bool startInPresentation(const QString &serializedOptions); | 31 | bool startInPresentation(const QString &serializedOptions); | ||
32 | bool showPrintDialog(const QString &serializedOptions); | 32 | bool showPrintDialog(const QString &serializedOptions); | ||
33 | bool showPrintDialogAndExit(const QString &serializedOptions); | ||||
33 | QString page(const QString &serializedOptions); | 34 | QString page(const QString &serializedOptions); | ||
34 | 35 | | |||
35 | } | 36 | } | ||
36 | 37 | | |||
37 | #endif | 38 | #endif |