Albert
Loading...
Searching...
No Matches
albert::StrongDependency< T > Class Template Referencefinal

#include <albert/plugindependency.h>

Inheritance diagram for albert::StrongDependency< T >:
[legend]
Collaboration diagram for albert::StrongDependency< T >:
[legend]

Detailed Description

template<class T>
class albert::StrongDependency< T >

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.

Note
Hard dependencies have to be listed in the plugin metadata, such that the plugin loader is able to manage the loading order.

Public Member Functions

 StrongDependency (ExtensionRegistry &registry, 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 &registry, const QString &id)
 
- Protected Attributes inherited from albert::Dependency< T >
T * dependency = nullptr
 

Constructor & Destructor Documentation

◆ StrongDependency()

template<class T >
albert::StrongDependency< T >::StrongDependency ( ExtensionRegistry registry,
const QString &  id 
)
inlineexplicit

The documentation for this class was generated from the following file: