Albert
Loading...
Searching...
No Matches
albert.h File Reference
#include <QString>
#include <albert/export.h>
#include <filesystem>
Include dependency graph for albert.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  albert
 

Functions

void albert::restart ()
 Restart the application.
 
void albert::quit ()
 Quit the application.
 
QNetworkAccessManager & albert::network ()
 The threadlocal, global QNetworkAccessManager.
 
void albert::showSettings (QString plugin_id={})
 Open/Show the settings window (of plugin).
 
std::filesystem::path albert::configLocation ()
 The app config location.
 
std::filesystem::path albert::cacheLocation ()
 The app cache location.
 
std::filesystem::path albert::dataLocation ()
 The app data location.
 
std::unique_ptr< QSettings > albert::settings ()
 Persistent app settings storage.
 
std::unique_ptr< QSettings > albert::state ()
 The persistent app state storage.
 
void albert::openWebsite ()
 Open the albert website in default browser.
 
void albert::openUrl (const QString &url)
 Open the specified url in default browser.
 
void albert::open (const QUrl &url)
 Open URL with default handler.
 
void albert::open (const QString &path)
 Open file with default handler.
 
void albert::open (const std::string &path)
 Open file with default handler.
 
void albert::setClipboardText (const QString &text)
 Set the system clipboard.
 
bool albert::havePasteSupport ()
 Check paste support of the platform.
 
void albert::setClipboardTextAndPaste (const QString &text)
 Set the system clipboard and paste the content to the front-most window.
 
long long albert::runDetachedProcess (const QStringList &commandline, const QString &working_dir={})
 Run a detached process.
 
const ExtensionRegistryalbert::extensionRegistry ()
 The extension registry.
 
void albert::tryCreateDirectory (const std::filesystem::path &path)
 Create a directory if it does not exist yet.