6#include <albert/export.h>
10template <
typename T>
class QList;
18ALBERT_EXPORT
void openUrl(
const QString &url);
21ALBERT_EXPORT
void open(
const QUrl &url);
24ALBERT_EXPORT
void open(
const QString &path);
27ALBERT_EXPORT
void open(
const std::filesystem::path &path);
51ALBERT_EXPORT QString
toQString(
const std::filesystem::path &path);
56ALBERT_EXPORT QString runAppleScript(
const QString &script);
Definition systemutil.h:10
Albert utility namespace.
Definition albert.h:14
bool havePasteSupport()
Returns the true if the platform supports pasting, else false.
void open(const QUrl &url)
Opens url with the default handler for the scheme.
void setClipboardTextAndPaste(const QString &text)
Sets the system clipboard to text and pastes text to the front-most window.
QString toQString(const std::filesystem::path &path)
Returns a QString representation of path.
void openUrl(const QString &url)
Opens url with the default handler for the scheme.
void tryCreateDirectory(const std::filesystem::path &path)
Tries to create a directory at path.
void setClipboardText(const QString &text)
Sets the system clipboard to text.
long long runDetachedProcess(const QStringList &commandline)
Run the commandline as detached process. Returns the process id.
QList< QString > QStringList
Definition systemutil.h:11