KIO

desktopexecparser.h
1 /*
2  SPDX-FileCopyrightText: 2013 David Faure <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6 
7 #ifndef KIO_DESKTOPEXECPARSER_H
8 #define KIO_DESKTOPEXECPARSER_H
9 
10 #include "kiocore_export.h"
11 
12 #include <QList>
13 #include <QScopedPointer>
14 class QUrl;
15 class QStringList;
16 class KService;
17 
18 namespace KIO
19 {
20 
21 class DesktopExecParserPrivate;
22 
34 class KIOCORE_EXPORT DesktopExecParser
35 {
36 public:
44  DesktopExecParser(const KService &service, const QList<QUrl> &urls);
45 
50 
55  void setUrlsAreTempFiles(bool tempFiles);
56 
64  void setSuggestedFileName(const QString &suggestedFileName);
65 
70  QStringList resultingArguments() const;
71 
76  QString errorMessage() const;
77 
82  static QStringList supportedProtocols(const KService &service);
83 
88  static bool isProtocolInSupportedList(const QUrl &url, const QStringList &supportedProtocols);
89 
94  static bool hasSchemeHandler(const QUrl &url);
95 
102  static QString executableName(const QString &execLine);
103 
110  static QString executablePath(const QString &execLine);
111 
112 private:
114 };
115 
116 } // namespace KIO
117 
118 #endif
A namespace for KIO globals.
Definition: authinfo.h:21
KCALUTILS_EXPORT QString errorMessage(const KCalendarCore::Exception &exception)
Parses the Exec= line from a .desktop file, and process all the &#39;%&#39; placeholders, e...
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Nov 30 2020 23:01:44 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.