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.
Header parts:
Definition: Channels.h:39
PVR_ERROR
Definition: pvr_general.h:35
virtual PVR_ERROR OpenDialogChannelAdd(const kodi::addon::PVRChannel &channel)
Show the dialog to add a channel on the backend, if supported by the backend.
Definition: PVR.h:1350
virtual PVR_ERROR RenameChannel(const kodi::addon::PVRChannel &channel)
Rename a channel on the backend.
Definition: PVR.h:1320
virtual PVR_ERROR OpenDialogChannelScan()
Show the channel scan dialog if this backend supports it.
Definition: PVR.h:1364
virtual PVR_ERROR OpenDialogChannelSettings(const kodi::addon::PVRChannel &channel)
Show the channel settings dialog, if supported by the backend.
Definition: PVR.h:1335
virtual PVR_ERROR DeleteChannel(const kodi::addon::PVRChannel &channel)
Delete a channel from the backend.
Definition: PVR.h:1298
virtual PVR_ERROR CallChannelMenuHook(const kodi::addon::PVRMenuhook &menuhook, const kodi::addon::PVRChannel &item)
Call one of the channel related menu hooks (if supported).
Definition: PVR.h:1381
Source parts:
{
}
{
}
{
}
{
}
PVR_ERROR CMyInstance::OpenDialogChannelScan()
{
}
{
}
@ PVR_ERROR_NOT_IMPLEMENTED
-2 : The method that Kodi called is not implemented by the add-on.
Definition: pvr_general.h:43
◆ 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 :