[INTERNAL] Base class for components More...
Signals | |
void | showComponent (Component component, var params) |
Gets emitted to show this component in the GUI. More... | |
void | showItem (Item item) |
Gets emitted to show this component in the GUI. More... | |
Properties | |
Updater | updater |
The updater to be used by the component. More... | |
bool | useAsComponent |
Specifies if the consumer of the component expects an item or a component. More... | |
bool | loading |
Specifies if the component is currently beeing loaded. More... | |
var | goBackCallback |
Sets a callback to be called to close a created component. More... | |
Component | viewComponent |
[PRIVATE PROPERTY] | |
[INTERNAL] Base class for components
Definition at line 11 of file UpdaterComponent.qml.
|
signal |
Gets emitted to show this component in the GUI.
component | The component to be loaded and shown |
params | The parameters to be passed to the item to be created for it's initialization |
Catch this signal to actually show the GUI to be created by this component. You have to instancaite the component yourself, by using the given parameters. The following is an example for the StackView:
|
signal |
Gets emitted to show this component in the GUI.
item | The item to be shown |
Catch this signal to actually show the GUI to be created by this component. The component was already instanciated and initialized when passed via this signal, so you only have to add it to the GUI. The following is an example for the StackView:
var de::skycoder42::QtAutoUpdater::Quick::UpdaterComponent::goBackCallback |
Sets a callback to be called to close a created component.
Default: null
This must be a function with no parameters, i.e. function() {...}
. It is called from any item created by this component if the item has to be closed. Thus, this method should remove the calling view from the GUI. Typically, this pops the view from a StackView or something similar. The following is an example for a stackview:
Accessors | |
---|---|
MEMBER | goBackCallback |
Definition at line 84 of file UpdaterComponent.qml.
bool de::skycoder42::QtAutoUpdater::Quick::UpdaterComponent::loading |
Specifies if the component is currently beeing loaded.
Default: false
This property can be used to show a busy indicator or something similar while the component is beeing loaded. Since the components are typically available locally, this can be ignored as loading is instant. However, when loading components from the network, this can be useful so the user does not think the app has stalled.
Accessors | |
---|---|
MEMBER | loading |
READONLY |
Definition at line 54 of file UpdaterComponent.qml.
Updater de::skycoder42::QtAutoUpdater::Quick::UpdaterComponent::updater |
The updater to be used by the component.
Default: null
Accessors | |
---|---|
MEMBER | updater |
Definition at line 23 of file UpdaterComponent.qml.
bool de::skycoder42::QtAutoUpdater::Quick::UpdaterComponent::useAsComponent |
Specifies if the consumer of the component expects an item or a component.
Default: false
If set to true, the showItem() signal gets emitted with the already loaded item, as soon as the component was activated. If set to false, showComponent() is emitted instead. Use the property to specify which variant you need to consume the creation of a component.
Accessors | |
---|---|
MEMBER | useAsComponent |
Definition at line 38 of file UpdaterComponent.qml.