6#include <albert/export.h>
8class NotificationPrivate;
9class QNetworkAccessManager;
15class ExtensionRegistry;
37ALBERT_EXPORT QNetworkAccessManager &
network();
60ALBERT_EXPORT std::unique_ptr<QSettings>
settings();
64ALBERT_EXPORT std::unique_ptr<QSettings>
state();
71ALBERT_EXPORT
void openUrl(
const QString &url);
79ALBERT_EXPORT
void open(
const QUrl &url);
87ALBERT_EXPORT
void open(
const QString &path);
97ALBERT_EXPORT
void open(
const std::string &path);
117ALBERT_EXPORT
long long runDetachedProcess(
const QStringList &commandline,
const QString &working_dir = {});
The common extension pool.
Definition extensionregistry.h:23
std::unique_ptr< QSettings > settings()
Persistent app settings storage.
bool havePasteSupport()
Check paste support of the platform.
std::unique_ptr< QSettings > state()
The persistent app state storage.
void setClipboardText(const QString &text)
Set the system clipboard.
void open(const QUrl &url)
Open URL with default handler.
QNetworkAccessManager & network()
The threadlocal, global QNetworkAccessManager.
void restart()
Restart the application.
std::filesystem::path dataLocation()
The app data location.
void setClipboardTextAndPaste(const QString &text)
Set the system clipboard and paste the content to the front-most window.
std::filesystem::path cacheLocation()
The app cache location.
std::filesystem::path configLocation()
The app config location.
void showSettings(QString plugin_id={})
Open/Show the settings window (of plugin).
void quit()
Quit the application.
long long runDetachedProcess(const QStringList &commandline, const QString &working_dir={})
Run a detached process.
void openUrl(const QString &url)
Open the specified url in default browser.
const ExtensionRegistry & extensionRegistry()
The extension registry.
void openWebsite()
Open the albert website in default browser.
void tryCreateDirectory(const std::filesystem::path &path)
Create a directory if it does not exist yet.