Albert
Loading...
Searching...
No Matches
util.h File Reference
#include <QString>
#include <albert/export.h>
Include dependency graph for util.h:

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 global QNetworkAccessManager.
 
void albert::showSettings (QString plugin_id={})
 Open/Show the settings window (of plugin).
 
QString albert::configLocation ()
 The app config location.
 
QString albert::cacheLocation ()
 The app cache location.
 
QString 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 QUrl &url)
 Open the specified url 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.