Albert
|
#include <albert/plugindependency.h>
Convenience holder class for plugin hard dependencies.
Fetches and holds the weak pointer to the dependecy. If the dependency is not available, an exception is thrown. This class is intended to be initialized in plugin constructors.
Public Member Functions | |
StrongDependency (ExtensionRegistry ®istry, const QString &id) | |
Public Member Functions inherited from albert::Dependency< T > | |
operator T () const | |
operator bool () const | |
const T * | operator-> () const |
T * | operator-> () |
const T * | get () const |
T * | get () |
Additional Inherited Members | |
Protected Member Functions inherited from albert::Dependency< T > | |
Dependency (ExtensionRegistry ®istry, const QString &id) | |
Protected Attributes inherited from albert::Dependency< T > | |
T * | dependency = nullptr |
|
inlineexplicit |