summaryrefslogtreecommitdiffstats
path: root/xbmc/addons/kodi-addon-dev-kit/include/kodi/c-api/addon-instance/pvr/pvr_menu_hook.h
blob: df2216f582c979256b8798833511255471b7e125 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*
 *  Copyright (C) 2005-2018 Team Kodi
 *  This file is part of Kodi - https://kodi.tv
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 *  See LICENSES/README.md for more information.
 */

#pragma once

#include "pvr_defines.h"

//¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
// "C" Definitions group 7 - Menu hook
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */

  //============================================================================
  /// @defgroup cpp_kodi_addon_pvr_Defs_Menuhook_PVR_MENUHOOK_CAT enum PVR_MENUHOOK_CAT
  /// @ingroup cpp_kodi_addon_pvr_Defs_Menuhook
  /// @brief **PVR context menu hook categories**\n
  /// Possible menu types given to Kodi with @ref kodi::addon::CInstancePVRClient::AddMenuHook().
  ///
  ///@{
  typedef enum PVR_MENUHOOK_CAT
  {
    /// @brief __-1__ : Unknown menu hook.
    PVR_MENUHOOK_UNKNOWN = -1,

    /// @brief __0__ : All categories.
    PVR_MENUHOOK_ALL = 0,

    /// @brief __1__ : For channels.
    PVR_MENUHOOK_CHANNEL = 1,

    /// @brief __2__ : For timers.
    PVR_MENUHOOK_TIMER = 2,

    /// @brief __3__ : For EPG.
    PVR_MENUHOOK_EPG = 3,

    /// @brief __4__ : For recordings.
    PVR_MENUHOOK_RECORDING = 4,

    /// @brief __5__ : For deleted recordings.
    PVR_MENUHOOK_DELETED_RECORDING = 5,

    /// @brief __6__ : For settings.
    PVR_MENUHOOK_SETTING = 6,
  } PVR_MENUHOOK_CAT;
  ///@}
  //----------------------------------------------------------------------------

  /*!
   * @brief "C" PVR add-on menu hook.
   *
   * Structure used to interface in "C" between Kodi and Addon.
   *
   * See @ref kodi::addon::PVRMenuhook for description of values.
   */
  typedef struct PVR_MENUHOOK
  {
    unsigned int iHookId;
    unsigned int iLocalizedStringId;
    enum PVR_MENUHOOK_CAT category;
  } PVR_MENUHOOK;

#ifdef __cplusplus
}
#endif /* __cplusplus */