20#ifndef LIBREPCB_EDITOR_DESKTOPSERVICES_H
21#define LIBREPCB_EDITOR_DESKTOPSERVICES_H
34class WorkspaceSettings;
62 bool openUrl(const QUrl& url) const noexcept;
63 bool openWebUrl(const QUrl& url) const noexcept;
69 const QString& mediaType,
71 QPointer<QWidget> parent) noexcept;
79 const QStringList& commands) const noexcept;
This class represents absolute, well-formatted paths to files or directories.
Definition filepath.h:127
Container for all workspace related settings.
Definition workspacesettings.h:60
Provides methods to access common desktop services.
Definition desktopservices.h:51
bool openUrlFallback(const QUrl &url) const noexcept
Definition desktopservices.cpp:226
static void showWaitCursor() noexcept
Definition desktopservices.cpp:255
~DesktopServices() noexcept
Definition desktopservices.cpp:49
bool openLocalPath(const FilePath &filePath) const noexcept
Definition desktopservices.cpp:80
static void downloadAndOpenResourceAsync(const WorkspaceSettings &settings, const QString &name, const QString &mediaType, const QUrl &url, QPointer< QWidget > parent) noexcept
Definition desktopservices.cpp:93
bool openUrl(const QUrl &url) const noexcept
Definition desktopservices.cpp:56
const WorkspaceSettings & mSettings
Definition desktopservices.h:84
bool openLocalPathWithCommand(const FilePath &filePath, const QStringList &commands) const noexcept
Definition desktopservices.cpp:208
bool openWebUrl(const QUrl &url) const noexcept
Definition desktopservices.cpp:64
bool openDirectory(const FilePath &filePath) const noexcept
Definition desktopservices.cpp:203
DesktopServices(const DesktopServices &other)=delete
Definition occmodel.cpp:77