Albert
Loading...
Searching...
No Matches
albert.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2024 Manuel Schneider
2// SPDX-License-Identifier: MIT
3
4#pragma once
5#include <QString>
6#include <filesystem>
7#include <albert/export.h>
8class NotificationPrivate;
9class QNetworkAccessManager;
10class QSettings;
11class QUrl;
12
14namespace albert::util {}
15
17namespace albert::detail {}
18
20namespace albert
21{
23
26ALBERT_EXPORT void show(const QString &input_text = {});
27
30ALBERT_EXPORT void showSettings(QString plugin_id = {});
31
34ALBERT_EXPORT void restart();
35
38ALBERT_EXPORT void quit();
39
42ALBERT_EXPORT const std::filesystem::path &configLocation();
43
46ALBERT_EXPORT const std::filesystem::path &cacheLocation();
47
50ALBERT_EXPORT const std::filesystem::path &dataLocation();
51
54ALBERT_EXPORT std::unique_ptr<QSettings> settings();
55
58ALBERT_EXPORT std::unique_ptr<QSettings> state();
59
63ALBERT_EXPORT const ExtensionRegistry &extensionRegistry();
64
65} // namespace albert
The common extension pool.
Definition extensionregistry.h:23
Albert private namespace.
Definition albert.h:17
Albert utility namespace.
Definition albert.h:14
Albert core interface namespace.
Definition albert.h:14
std::unique_ptr< QSettings > settings()
Returns a QSettings object for configuration storage.
const std::filesystem::path & cacheLocation()
Returns the application cache location.
std::unique_ptr< QSettings > state()
Returns a QSettings object for state storage.
void show(const QString &input_text={})
Shows the frontend.
const std::filesystem::path & dataLocation()
Returns the application data location.
void restart()
Restarts the application.
const std::filesystem::path & configLocation()
Returns the application config location.
void showSettings(QString plugin_id={})
Creates and/or shows the settings window.
void quit()
Quits the application.
const ExtensionRegistry & extensionRegistry()
Returns a const reference to the central ExtensionRegistry.