Union::InputPlugin Class

class Union::InputPlugin

Abstract base class for plugins providing input data. More...

Header: #include <InputPlugin>
CMake: find_package(Union REQUIRED)
target_link_libraries(mytarget PRIVATE Union::Union)
Inherits: QObject

Public Functions

virtual std::shared_ptr<Union::Theme> createTheme(const QString &themeName) const = 0

Detailed Description

This class defines the interface input plugins should implement. Input plugins are plugins providing Theme instances and other themeing specific data to the system.

Member Function Documentation

[pure virtual] std::shared_ptr<Union::Theme> InputPlugin::createTheme(const QString &themeName) const

Create an instance of a theme by name.

This should be reimplemented by subclasses and create a new instance of Theme using an appropriate ThemeLoader and other input specific data.