Bring in this functions if you have set supportsChannelSettings to true or for OpenDialogChannelScan() set supportsChannelScan to true
The support of this is a pure option and not mandatory.
Channel edit parts in interface:
Copy this to your project and extend with your parts or leave functions complete away where not used or supported.
◆ DeleteChannel()
Delete a channel from the backend.
- Parameters
-
[in] | channel | The channel to delete. |
- Returns
- PVR_ERROR_NO_ERROR if the channel has been deleted successfully.
◆ RenameChannel()
Rename a channel on the backend.
- Parameters
-
[in] | channel | The channel to rename, containing the new channel name. |
- Returns
- PVR_ERROR_NO_ERROR if the channel has been renamed successfully.
The following table contains values that can be set with class PVRChannel :
◆ OpenDialogChannelSettings()
Show the channel settings dialog, if supported by the backend.
- Parameters
-
[in] | channel | The channel to show the dialog for. |
- Returns
- PVR_ERROR_NO_ERROR if the dialog has been displayed successfully.
- Note
- Use kodi::gui::CWindow to create dialog for them.
◆ OpenDialogChannelAdd()
Show the dialog to add a channel on the backend, if supported by the backend.
- Parameters
-
[in] | channel | The channel to add. |
- Returns
- PVR_ERROR_NO_ERROR if the channel has been added successfully.
- Note
- Use kodi::gui::CWindow to create dialog for them.
◆ OpenDialogChannelScan()
Show the channel scan dialog if this backend supports it.
- Returns
- PVR_ERROR_NO_ERROR if the dialog was displayed successfully.
- Note
- Use kodi::gui::CWindow to create dialog for them.
◆ CallChannelMenuHook()
Call one of the channel related menu hooks (if supported).
Supported class PVRMenuhook instances have to be added in constructor()
, by calling AddMenuHook() on the callback.
- Parameters
-
[in] | menuhook | The hook to call. |
[in] | item | The selected channel item for which the hook was called. |
- Returns
- PVR_ERROR_NO_ERROR if the hook was called successfully.
The following table contains values that can be set with class PVRMenuhook :