38 class QDeclarativeImageProvider;
115 : Url_ (QUrl::fromLocalFile (Util::
GetSysPath (Util::
SysPath::QML, subdir, filename)))
126 for (
auto pair : ContextProps_)
std::shared_ptr< QuarkComponent > QuarkComponent_ptr
A shared pointer to a quark.
Interface for plugins providing quark components.
QList< QPair< QString, QObject * > > DynamicProps_
Dynamic properties to be exposed to the engine.
SysPath
Describes various root paths recognized by GetSysPath().
QString GetSysPath(SysPath path, const QString &suffix, const QString &filename)
Returns path to the file in the given root path and subfolder.
QList< QPair< QString, QObject * > > ContextProps_
Context-depended properties to be exposed to the engine.
QUrl Url_
URL of the main QML of this file.
Q_DECLARE_INTERFACE(IQuarkComponentProvider,"org.Deviant.LeechCraft.IQuarkComponentProvider/1.0")
QuarkComponent()
Initializes a null quark component.
QList< QuarkComponent_ptr > QuarkComponents_t
A list of quarks pointers.
virtual ~IQuarkComponentProvider()
Virtual destructor.
QList< QPair< QString, QDeclarativeImageProvider * > > ImageProviders_
QList< QPair< QString, QVariant > > StaticProps_
QuarkComponent(const QString &subdir, const QString &filename)
Initializes a quark component for the given file path.
Describes a single quark.
~QuarkComponent()
Destroys the quark.