The interface for albert frontends.
|
| virtual bool | isVisible () const =0 |
| | Visibility of the frontend.
|
| |
| virtual void | setVisible (bool visible)=0 |
| | Set the visibility state of the frontend.
|
| |
| virtual QString | input () const =0 |
| | Input line text.
|
| |
| virtual void | setInput (const QString &)=0 |
| | Input line text setter.
|
| |
| virtual unsigned long long | winId () const =0 |
| | The native window id. Used to apply platform quirks.
|
| |
| virtual QWidget * | createFrontendConfigWidget ()=0 |
| | The config widget show in the window settings tab.
|
| |
| virtual void | setQuery (Query *query)=0 |
| | The query setter.
|
| |
| virtual QWidget * | buildConfigWidget () |
| | The widget used to configure the plugin in the settings.
|
| |
| virtual std::vector< albert::Extension * > | extensions () |
| | The extensions provided by this plugin.
|
| |
| const PluginLoader & | loader () const |
| | The PluginLoader of this instance.
|
| |
| std::filesystem::path | cacheLocation () const |
| | The recommended cache location.
|
| |
| std::filesystem::path | configLocation () const |
| | The recommended config location.
|
| |
| std::filesystem::path | dataLocation () const |
| | The recommended data location.
|
| |
| std::vector< std::filesystem::path > | dataLocations () const |
| | The existing data locations of this plugin.
|
| |
| std::unique_ptr< QSettings > | settings () const |
| | Persistent plugin settings.
|
| |
| std::unique_ptr< QSettings > | state () const |
| | Persistent plugin state.
|
| |
| void | readKeychain (const QString &key, std::function< void(const QString &)> onSuccess, std::function< void(const QString &)> onError) const |
| | Reads the keychain value for key asynchronously.
|
| |
| void | writeKeychain (const QString &key, const QString &value, std::function< void()> onSuccess, std::function< void(const QString &)> onError) const |
| | Sets the keychain value of key to value asynchronously.
|
| |