48#include <albert/export.h>
51class QNetworkAccessManager;
65class ALBERT_EXPORT
App
71 virtual void show(
const QString &input_text = {}) = 0;
137 static std::unique_ptr<QSettings>
state();
The public app instance interface.
Definition app.h:66
static std::unique_ptr< QSettings > settings()
Returns a QSettings object initialized with the application configuration file path.
static const std::filesystem::path & configLocation()
Returns the path to the application config directory.
static const std::filesystem::path & dataLocation()
Returns the path to the application data directory.
static App & instance()
Returns the core app instance.
static void quit()
Quits the application.
virtual const ExtensionRegistry & extensionRegistry() const =0
Returns a const reference to the central extension registry.
virtual void show(const QString &input_text={})=0
Shows the frontend and optionally sets the text to input_text.
virtual void showSettings(QString plugin_id={})=0
Shows the settings window and optionally selects the plugin with plugin_id.
static std::unique_ptr< QSettings > state()
Returns a QSettings object initialized with the application state file path.
static const std::filesystem::path & cacheLocation()
Returns the path to the application cache directory.
static void restart()
Restarts the application.
The common extension pool.
Definition extensionregistry.h:23
Modifies match scores according to user usage history and preferences.
Definition usagescoring.h:29