The plugin interface to implement to create an updater plugin. More...
#include <updaterplugin.h>
Public Member Functions | |
virtual UpdaterBackend * | create (QString key, QObject *parent)=0 |
Create a new instance of that plugins updater backend. More... | |
The plugin interface to implement to create an updater plugin.
Each custom plugin must implement one or more UpdaterBackend classes, each identified by a key. This key must be declared in the JSON-file of the plugin using the following format:
Your plugin implementation must include the following in the class declaration:
Definition at line 10 of file updaterplugin.h.
Create a new instance of that plugins updater backend.
key | The backend to be created |
parent | The parent object of the backend to be created |
nullptr
on an errorYour implementation must return a valid backend instance for each backend declared in the json file. If a key is passed to the function that was not declared (which should never happen), simply return a nullptr to indicate the failure.
Please note that the backend should not be set up on it's creation. This is done by the UpdaterBackend::initialize method by whomever calls this method.