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::Style> createStyle(const QString &styleName) 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::Style> InputPlugin::createStyle(const QString &styleName) const

Create an instance of a style by name.

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