Kodi Development 22.0
for Binary and Script based Add-Ons
 
Loading...
Searching...
No Matches
EDL.h
1/*
2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
8
9#pragma once
10
11#include "../../AddonBase.h"
12#include "../../c-api/addon-instance/pvr/pvr_edl.h"
13
14//¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
15// "C++" Definitions group 8 - PVR Edit definition list (EDL)
16#ifdef __cplusplus
17
18namespace kodi
19{
20namespace addon
21{
22
23//==============================================================================
37class PVREDLEntry : public CStructHdl<PVREDLEntry, PVR_EDL_ENTRY>
38{
39 friend class CInstancePVRClient;
40
41public:
43 PVREDLEntry() { memset(m_cStructure, 0, sizeof(PVR_EDL_ENTRY)); }
44 PVREDLEntry(const PVREDLEntry& type) : CStructHdl(type) {}
57
60
62 void SetStart(int64_t start) { m_cStructure->start = start; }
63
65 int64_t GetStart() const { return m_cStructure->start; }
66
68 void SetEnd(int64_t end) { m_cStructure->end = end; }
69
71 int64_t GetEnd() const { return m_cStructure->end; }
72
74 void SetType(PVR_EDL_TYPE type) { m_cStructure->type = type; }
75
77 PVR_EDL_TYPE GetType() const { return m_cStructure->type; }
79
80private:
81 PVREDLEntry(const PVR_EDL_ENTRY* type) : CStructHdl(type) {}
82 PVREDLEntry(PVR_EDL_ENTRY* type) : CStructHdl(type) {}
83};
85//------------------------------------------------------------------------------
86
87} /* namespace addon */
88} /* namespace kodi */
89
90#endif /* __cplusplus */
Definition AddonBase.h:206
Definition EDL.h:38
PVR_EDL_TYPE
Definition pvr_edl.h:31
int64_t GetEnd() const
To get with SetEnd() changed values.
Definition EDL.h:71
void SetStart(int64_t start)
Start time in milliseconds.
Definition EDL.h:62
void SetEnd(int64_t end)
End time in milliseconds.
Definition EDL.h:68
int64_t GetStart() const
To get with SetStart() changed values.
Definition EDL.h:65
void SetType(PVR_EDL_TYPE type)
The with PVR_EDL_TYPE used definition list type.
Definition EDL.h:74
PVR_EDL_TYPE GetType() const
To get with SetType() changed values.
Definition EDL.h:77
"C" Edit definition list entry.
Definition pvr_edl.h:55