diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-04-10 04:29:29 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-04-30 23:59:23 +0200 |
commit | 47e37635f50c09b4f9a9ee7699e3120bab3e4088 (patch) | |
tree | 061c2f675fb7e244ebe4b54ef206bfbd615c91f8 /logic/DesktopServices.h | |
parent | fcd4a482f759cd58ee319a51082d0146b7e426e2 (diff) | |
download | PrismLauncher-47e37635f50c09b4f9a9ee7699e3120bab3e4088.tar.gz PrismLauncher-47e37635f50c09b4f9a9ee7699e3120bab3e4088.tar.bz2 PrismLauncher-47e37635f50c09b4f9a9ee7699e3120bab3e4088.zip |
NOISSUE split GUI stuff from logic library
Diffstat (limited to 'logic/DesktopServices.h')
-rw-r--r-- | logic/DesktopServices.h | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/logic/DesktopServices.h b/logic/DesktopServices.h deleted file mode 100644 index 1e67e4cb..00000000 --- a/logic/DesktopServices.h +++ /dev/null @@ -1,37 +0,0 @@ -#pragma once - -#include <QUrl> -#include <QString> -#include "multimc_logic_export.h" - -/** - * This wraps around QDesktopServices and adds workarounds where needed - * Use this instead of QDesktopServices! - */ -namespace DesktopServices -{ - /** - * Open a file in whatever application is applicable - */ - MULTIMC_LOGIC_EXPORT bool openFile(const QString &path); - - /** - * Open a file in the specified application - */ - MULTIMC_LOGIC_EXPORT bool openFile(const QString &application, const QString &path, const QString & workingDirectory = QString(), qint64 *pid = 0); - - /** - * Run an application - */ - MULTIMC_LOGIC_EXPORT bool run(const QString &application,const QStringList &args, const QString & workingDirectory = QString(), qint64 *pid = 0); - - /** - * Open a directory - */ - MULTIMC_LOGIC_EXPORT bool openDirectory(const QString &path, bool ensureExists = false); - - /** - * Open the URL, most likely in a browser. Maybe. - */ - MULTIMC_LOGIC_EXPORT bool openUrl(const QUrl &url); -}; |