Cutelee
6.1.0
|
An retrieval interface to a storage location for Template objects. More...
#include <cutelee/templateloader.h>
Public Member Functions | |
virtual | ~AbstractTemplateLoader () |
virtual bool | canLoadTemplate (const QString &name) const =0 |
virtual std::pair< QString, QString > | getMediaUri (const QString &fileName) const =0 |
virtual Template | loadByName (const QString &name, Engine const *engine) const =0 |
This interface can be implemented to define new ways of retrieving the content of Templates.
The interface of this class should not be called directly from applications. TemplateLoaders will typically be created, configured and added to the Cutelee::Engine which will call the appropriate API.
Definition at line 46 of file templateloader.h.
|
virtual |
Destructor
Definition at line 33 of file templateloader.cpp.
|
pure virtual |
Return true if a Template identified by name
exists and can be loaded.
Implemented in Cutelee::InMemoryTemplateLoader, Cutelee::FileSystemTemplateLoader, and Cutelee::CachingLoaderDecorator.
|
pure virtual |
Return a complete URI for media identified by fileName.
Implemented in FakeTemplateLoader, Cutelee::InMemoryTemplateLoader, Cutelee::FileSystemTemplateLoader, and Cutelee::CachingLoaderDecorator.
|
pure virtual |
Load a Template called name
. Return an invalid Template if no content by that name exists.
Implemented in Cutelee::InMemoryTemplateLoader, Cutelee::FileSystemTemplateLoader, and Cutelee::CachingLoaderDecorator.