Allow installing/uninstalling LibrePCB to the desktop environment.
More...
#include <desktopintegration.h>
|
| static bool | isSupported () noexcept |
| | Check if this feature is available.
|
| |
| static Status | getStatus () noexcept |
| | Check which application is currently installed.
|
| |
| static FilePath | getExecutable () noexcept |
| | Get the path to the executable to be installed.
|
| |
| static void | install () |
| | Install this application to the desktop.
|
| |
| static void | uninstall () |
| | Uninstall this application from the desktop.
|
| |
| static bool | execDialog (Mode mode, QWidget *parent) noexcept |
| | Execute dialog to install or uninstall the desktop integration.
|
| |
Allow installing/uninstalling LibrePCB to the desktop environment.
◆ Status
| Enumerator |
|---|
| NothingInstalled | |
| InstalledThis | |
| InstalledOther | |
| InstalledUnknown | |
◆ Mode
| Enumerator |
|---|
| Install | |
| Uninstall | |
◆ DesktopIntegration()
◆ isSupported()
Check if this feature is available.
- Returns
- True if integration is available, false if not.
◆ getStatus()
Check which application is currently installed.
- Returns
- The current desktop integration status.
◆ getExecutable()
Get the path to the executable to be installed.
- Returns
- FIle path to executable
◆ install()
Install this application to the desktop.
- Exceptions
-
◆ uninstall()
Uninstall this application from the desktop.
- Exceptions
-
◆ execDialog()
| bool execDialog |
( |
Mode |
mode, |
|
|
QWidget * |
parent |
|
) |
| |
|
staticnoexcept |
Execute dialog to install or uninstall the desktop integration.
- Parameters
-
| mode | Whether the dialog should install or uninstall. |
| parent | Parent widget. |
- Returns
- True on success, false otherwise.
◆ getFileContentToInstall()
| QHash< FilePath, QByteArray > getFileContentToInstall |
( |
| ) |
|
|
staticprivate |
◆ loadInstalledFiles()
◆ storeInstalledFiles()
| void storeInstalledFiles |
( |
const QSet< FilePath > & |
files | ) |
|
|
staticprivate |
◆ updateDatabase()
◆ getDesktopFile()
◆ getConfigFile()
◆ getShareDirectory()
The documentation for this class was generated from the following files: