File indexing completed on 2024-04-28 15:52:02

0001 /*
0002     SPDX-FileCopyrightText: 2009 Pino Toscano <pino@kde.org>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef OKULAR_SHELLUTILS_H
0008 #define OKULAR_SHELLUTILS_H
0009 
0010 #include <QString>
0011 
0012 class QUrl;
0013 
0014 class QCommandLineParser;
0015 
0016 namespace ShellUtils
0017 {
0018 typedef bool (*FileExistFunc)(const QString &fileName);
0019 
0020 FileExistFunc qfileExistFunc();
0021 QUrl urlFromArg(const QString &_arg, FileExistFunc exist_func, const QString &pageArg = QString());
0022 QString serializeOptions(const QCommandLineParser &args);
0023 QString serializeOptions(bool startInPresentation, bool showPrintDialog, bool showPrintDialogAndExit, bool unique, bool noRaise, const QString &page, const QString &find, const QString &editorCmd);
0024 bool unique(const QString &serializedOptions);
0025 bool noRaise(const QString &serializedOptions);
0026 bool startInPresentation(const QString &serializedOptions);
0027 bool showPrintDialog(const QString &serializedOptions);
0028 bool showPrintDialogAndExit(const QString &serializedOptions);
0029 QString page(const QString &serializedOptions);
0030 QString find(const QString &serializedOptions);
0031 QString editorCmd(const QString &serializedOptions);
0032 
0033 }
0034 
0035 #endif