20#ifndef LIBREPCB_EDITOR_DESKTOPSERVICES_H
21#define LIBREPCB_EDITOR_DESKTOPSERVICES_H
34class WorkspaceSettings;
59 QWidget* parent)
noexcept;
63 bool openUrl(const QUrl& url) const noexcept;
64 bool openWebUrl(const QUrl& url) const noexcept;
70 const QString& mediaType,
72 QPointer<QWidget> parent) noexcept;
80 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:227
static void showWaitCursor() noexcept
Definition desktopservices.cpp:256
~DesktopServices() noexcept
Definition desktopservices.cpp:50
bool openLocalPath(const FilePath &filePath) const noexcept
Definition desktopservices.cpp:81
static void downloadAndOpenResourceAsync(const WorkspaceSettings &settings, const QString &name, const QString &mediaType, const QUrl &url, QPointer< QWidget > parent) noexcept
Definition desktopservices.cpp:94
bool openUrl(const QUrl &url) const noexcept
Definition desktopservices.cpp:57
const WorkspaceSettings & mSettings
Definition desktopservices.h:85
bool openLocalPathWithCommand(const FilePath &filePath, const QStringList &commands) const noexcept
Definition desktopservices.cpp:209
bool openWebUrl(const QUrl &url) const noexcept
Definition desktopservices.cpp:65
bool openDirectory(const FilePath &filePath) const noexcept
Definition desktopservices.cpp:204
QPointer< QWidget > mParent
Definition desktopservices.h:86
DesktopServices(const DesktopServices &other)=delete
Definition occmodel.cpp:76