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
13namespace albert
14{
15class ExtensionRegistry;
16
18ALBERT_EXPORT void show(const QString &input_text = {});
19
21ALBERT_EXPORT void restart();
22
24ALBERT_EXPORT void quit();
25
27ALBERT_EXPORT void showSettings(QString plugin_id = {});
28
30ALBERT_EXPORT std::filesystem::path configLocation();
31
33ALBERT_EXPORT std::filesystem::path cacheLocation();
34
36ALBERT_EXPORT std::filesystem::path dataLocation();
37
39ALBERT_EXPORT std::unique_ptr<QSettings> settings();
40
42ALBERT_EXPORT std::unique_ptr<QSettings> state();
43
47ALBERT_EXPORT const ExtensionRegistry &extensionRegistry();
48
49} // namespace albert
50
The common extension pool.
Definition extensionregistry.h:23
Definition action.h:10
std::unique_ptr< QSettings > settings()
Returns a QSettings object for configuration storage.
std::unique_ptr< QSettings > state()
Returns a QSettings object for state storage.
void show(const QString &input_text={})
Shows the frontend. If input_text is not null the input is set.
void restart()
Restarts the application.
std::filesystem::path dataLocation()
Returns the application data location.
std::filesystem::path cacheLocation()
Returns the application cache location.
std::filesystem::path configLocation()
Returns the application config location.
void showSettings(QString plugin_id={})
Opens/Shows the settings window (of plugin_id).
void quit()
Quits the application.
const ExtensionRegistry & extensionRegistry()
Returns a const reference to the extension registry.