xbmc
pvr_epg.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 #ifndef C_API_ADDONINSTANCE_PVR_EPG_H
10 #define C_API_ADDONINSTANCE_PVR_EPG_H
11 
12 #include "pvr_defines.h"
13 
14 #include <time.h>
15 
16 //¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
17 // "C" Definitions group 4 - PVR EPG
18 #ifdef __cplusplus
19 extern "C"
20 {
21 #endif /* __cplusplus */
22 
23  //============================================================================
55 
56  //============================================================================
61  typedef enum EPG_EVENT_CONTENTMASK
62  {
65 
70 
75 
80 
85 
90 
95 
100 
105 
110 
115 
120 
123 
141  //----------------------------------------------------------------------------
142 
143  //============================================================================
150  {
153 
156 
159 
162 
165 
168 
171 
174 
177 
182  //----------------------------------------------------------------------------
183 
184  //============================================================================
190  {
193 
196 
199 
202 
205 
209  //----------------------------------------------------------------------------
210 
211  //============================================================================
217  {
220 
223 
226 
229 
233  //----------------------------------------------------------------------------
234 
235  //============================================================================
241  {
244 
247 
250 
253 
256 
259 
262 
265 
268 
271 
274 
277 
281  //----------------------------------------------------------------------------
282 
283  //============================================================================
289  {
292 
295 
298 
301 
304 
307 
311  //----------------------------------------------------------------------------
312 
313  //============================================================================
319  {
322 
325 
328 
331 
334 
337 
340 
344  //----------------------------------------------------------------------------
345 
346  //============================================================================
352  {
355 
358 
361 
364 
367 
370 
373 
376 
379 
382 
385 
388 
392  //----------------------------------------------------------------------------
393 
394  //============================================================================
400  {
403 
406 
409 
412 
416  //----------------------------------------------------------------------------
417 
418  //============================================================================
424  {
427 
430 
433 
436 
439 
442 
445 
448 
452  //----------------------------------------------------------------------------
453 
454  //============================================================================
460  {
463 
466 
469 
472 
475 
478 
481 
484 
488  //----------------------------------------------------------------------------
489 
490  //============================================================================
496  {
499 
502 
505 
508 
511 
514 
518  //----------------------------------------------------------------------------
519 
521 
522  //============================================================================
527 #define EPG_STRING_TOKEN_SEPARATOR ","
528  //----------------------------------------------------------------------------
529 
530  //============================================================================
543  typedef enum EPG_TAG_FLAG
544  {
547 
550 
553 
556 
559 
562  } EPG_TAG_FLAG;
564  //----------------------------------------------------------------------------
565 
566  //============================================================================
573 #define EPG_TAG_INVALID_UID 0
574  //----------------------------------------------------------------------------
575 
576  //============================================================================
582 #define EPG_TAG_INVALID_SERIES_EPISODE -1
583  //----------------------------------------------------------------------------
584 
585  //============================================================================
590 #define EPG_TIMEFRAME_UNLIMITED -1
591  //----------------------------------------------------------------------------
592 
593  //============================================================================
601  typedef enum EPG_EVENT_STATE
602  {
605 
608 
611  } EPG_EVENT_STATE;
613  //----------------------------------------------------------------------------
614 
622  typedef struct EPG_TAG
623  {
624  unsigned int iUniqueBroadcastId;
625  unsigned int iUniqueChannelId;
626  const char* strTitle;
627  time_t startTime;
628  time_t endTime;
629  const char* strPlotOutline;
630  const char* strPlot;
631  const char* strOriginalTitle;
632  const char* strCast;
633  const char* strDirector;
634  const char* strWriter;
635  int iYear;
636  const char* strIMDBNumber;
637  const char* strIconPath;
638  int iGenreType;
639  int iGenreSubType;
640  const char* strGenreDescription;
641  const char* strFirstAired;
642  int iParentalRating;
643  const char* strParentalRatingCode;
644  int iStarRating;
645  int iSeriesNumber;
646  int iEpisodeNumber;
647  int iEpisodePartNumber;
648  const char* strEpisodeName;
649  unsigned int iFlags;
650  const char* strSeriesLink;
651  } EPG_TAG;
652 
653 #ifdef __cplusplus
654 }
655 #endif /* __cplusplus */
656 
657 #endif /* !C_API_ADDONINSTANCE_PVR_EPG_H */
0x6 : Athletics.
Definition: pvr_epg.h:261
0x3 : Remarkable people.
Definition: pvr_epg.h:411
0xB : Fashion.
Definition: pvr_epg.h:387
0x0 : Special characteristics / Original language (general).
Definition: pvr_epg.h:498
0x5 : Team sports (excluding football).
Definition: pvr_epg.h:258
0x4 : Informational/educational/school programmes.
Definition: pvr_epg.h:303
0x1 : Performing arts.
Definition: pvr_epg.h:357
0xB0 : Special characteristics.
Definition: pvr_epg.h:119
0x3 : Football/soccer.
Definition: pvr_epg.h:252
0000 0000 : Nothing special to say about this entry.
Definition: pvr_epg.h:546
0x3 : Live broadcast.
Definition: pvr_epg.h:507
2 : Event deleted.
Definition: pvr_epg.h:610
0x0 : Show/game show (general).
Definition: pvr_epg.h:219
0x1 : Tourism/travel.
Definition: pvr_epg.h:465
0xA : Equestrian.
Definition: pvr_epg.h:273
0x5 : Literature.
Definition: pvr_epg.h:369
0x0 : Children&#39;s/youth programmes (general).
Definition: pvr_epg.h:291
EPG_EVENT_CONTENTSUBMASK_SPORTS
EPG entry sub content to EPG_EVENT_CONTENTMASK_SPORTS event types for sub type of "Sports"...
Definition: pvr_epg.h:240
0x90 : Education/Science/Factual topics.
Definition: pvr_epg.h:109
0x1 : News/weather report.
Definition: pvr_epg.h:195
0x5 : Soap/melodrama/folkloric.
Definition: pvr_epg.h:167
0xA0 : Leisure hobbies.
Definition: pvr_epg.h:114
0x4 : Jazz.
Definition: pvr_epg.h:333
0x0 : Education/science/factual topics (general).
Definition: pvr_epg.h:426
0x2 : Entertainment programmes for 6 to 14.
Definition: pvr_epg.h:297
0x0 : Music/ballet/dance (general).
Definition: pvr_epg.h:321
0x7 : Serious/classical/religious/historical movie/drama.
Definition: pvr_epg.h:173
0x5 : Cartoons/puppets.
Definition: pvr_epg.h:306
0x70 : Arts/Culture (without music).
Definition: pvr_epg.h:99
"C" PVR add-on channel group member.
Definition: pvr_epg.h:622
0x60 : Music/Ballet/Dance.
Definition: pvr_epg.h:94
0x4 : Popular culture/traditional arts.
Definition: pvr_epg.h:366
0xB : Martial sports.
Definition: pvr_epg.h:276
1 : Event updated.
Definition: pvr_epg.h:607
0x2 : Economics/social advisory.
Definition: pvr_epg.h:408
0xF : User defined.
Definition: pvr_epg.h:342
0x3 : Religion.
Definition: pvr_epg.h:363
0000 0001 : This EPG entry is part of a series.
Definition: pvr_epg.h:549
EPG_EVENT_CONTENTSUBMASK_SHOW
EPG entry sub content to EPG_EVENT_CONTENTMASK_SHOW event types for sub type of "Show/Game show"...
Definition: pvr_epg.h:216
EPG_EVENT_CONTENTMASK
EPG entry main content to use.
Definition: pvr_epg.h:61
0x3 : Documentary.
Definition: pvr_epg.h:201
0x5 : Cooking.
Definition: pvr_epg.h:477
0xF : User defined.
Definition: pvr_epg.h:231
0x3 : Folk/traditional music.
Definition: pvr_epg.h:330
0x10 : Movie/Drama.
Definition: pvr_epg.h:69
0xF : User defined.
Definition: pvr_epg.h:450
0x4 : Comedy.
Definition: pvr_epg.h:164
0x1 : Magazines/reports/documentary.
Definition: pvr_epg.h:405
Used to override standard genre types with a own name about.
Definition: pvr_epg.h:138
0000 1000 : This EPG entry will be flagged as a finale.
Definition: pvr_epg.h:558
0x7 : Experimental film/video.
Definition: pvr_epg.h:375
EPG_EVENT_CONTENTSUBMASK_CHILDRENYOUTH
EPG entry sub content to EPG_EVENT_CONTENTMASK_CHILDRENYOUTH event types for sub type of "Children&#39;s/...
Definition: pvr_epg.h:288
EPG_EVENT_CONTENTSUBMASK_SPECIAL
EPG entry sub content to EPG_EVENT_CONTENTMASK_SPECIAL event types for sub type of "Special character...
Definition: pvr_epg.h:495
0000 0100 : This EPG entry will be flagged as a premiere.
Definition: pvr_epg.h:555
0x8 : Adult movie/drama.
Definition: pvr_epg.h:176
0x2 : Variety show.
Definition: pvr_epg.h:225
0x4 : Foreign countries/expeditions.
Definition: pvr_epg.h:438
0x3 : Talk show.
Definition: pvr_epg.h:228
0x1 : Pre-school children&#39;s programmes.
Definition: pvr_epg.h:294
0x9 : Winter sports.
Definition: pvr_epg.h:270
0xF : User defined.
Definition: pvr_epg.h:516
0x50 : Children&#39;s/Youth programmes.
Definition: pvr_epg.h:89
EPG_EVENT_CONTENTSUBMASK_LEISUREHOBBIES
EPG entry sub content to EPG_EVENT_CONTENTMASK_LEISUREHOBBIES event types for sub type of "Leisure ho...
Definition: pvr_epg.h:459
0x40 : Sports.
Definition: pvr_epg.h:84
0x8 : Water sport.
Definition: pvr_epg.h:267
0x6 : Ballet.
Definition: pvr_epg.h:339
0x6 : Advertisement/shopping.
Definition: pvr_epg.h:480
0x0 : News/current affairs (general).
Definition: pvr_epg.h:192
0x6 : Romance.
Definition: pvr_epg.h:170
0x1 : Rock/pop.
Definition: pvr_epg.h:324
0x30 : Show/Game show.
Definition: pvr_epg.h:79
0xF : User defined.
Definition: pvr_epg.h:279
0x1 : Game show/quiz/contest.
Definition: pvr_epg.h:222
0x9 : New media.
Definition: pvr_epg.h:381
EPG_EVENT_CONTENTSUBMASK_SOCIALPOLITICALECONOMICS
EPG entry sub content to EPG_EVENT_CONTENTMASK_SOCIALPOLITICALECONOMICS event types for sub type of "...
Definition: pvr_epg.h:399
0x3 : Entertainment programmes for 10 to 16.
Definition: pvr_epg.h:300
0x4 : Tennis/squash.
Definition: pvr_epg.h:255
0x7 : Gardening.
Definition: pvr_epg.h:483
0x3 : Medicine/physiology/psychology.
Definition: pvr_epg.h:435
0 : Event created.
Definition: pvr_epg.h:604
0xF0 User defined.
Definition: pvr_epg.h:122
0x4 : Discussion/interview/debate
Definition: pvr_epg.h:204
0xF : User defined.
Definition: pvr_epg.h:414
0x4 : Fitness and health.
Definition: pvr_epg.h:474
0x5 : Local or regional.
Definition: pvr_epg.h:513
0x1 : Nature/animals/environment.
Definition: pvr_epg.h:429
EPG_TAG_FLAG
Definition: pvr_epg.h:543
0x0 : Social/political issues/economics (general).
Definition: pvr_epg.h:402
EPG_EVENT_CONTENTSUBMASK_MOVIEDRAMA
EPG entry sub content to EPG_EVENT_CONTENTMASK_MOVIEDRAMA event types for sub type of "Movie/Drama"...
Definition: pvr_epg.h:149
0x5 : Social/spiritual sciences.
Definition: pvr_epg.h:441
0x2 : Sports magazines.
Definition: pvr_epg.h:249
0x8 : Broadcasting/press.
Definition: pvr_epg.h:378
0x00 : Undefined content mask entry.
Definition: pvr_epg.h:64
0000 0010 : This EPG entry will be flagged as new.
Definition: pvr_epg.h:552
0xA : Arts/culture magazines.
Definition: pvr_epg.h:384
0x3 : Science fiction/fantasy/horror.
Definition: pvr_epg.h:161
0x6 : Film/cinema.
Definition: pvr_epg.h:372
0x2 : Technology/natural sciences.
Definition: pvr_epg.h:432
0x1 : Black and white.
Definition: pvr_epg.h:501
0x2 : Adventure/western/war.
Definition: pvr_epg.h:158
0xF : User defined.
Definition: pvr_epg.h:179
0xF : User defined.
Definition: pvr_epg.h:207
0001 0000 : This EPG entry will be flagged as live.
Definition: pvr_epg.h:561
EPG_EVENT_CONTENTSUBMASK_EDUCATIONALSCIENCE
EPG entry sub content to EPG_EVENT_CONTENTMASK_EDUCATIONALSCIENCE event types for sub type of "Educat...
Definition: pvr_epg.h:423
0x0 : Movie/drama (general).
Definition: pvr_epg.h:152
0x4 : Plano-stereoscopic.
Definition: pvr_epg.h:510
0x0 : Arts/culture (without music, general).
Definition: pvr_epg.h:354
0x2 : Handicraft.
Definition: pvr_epg.h:468
0x0 : Leisure hobbies (general) .
Definition: pvr_epg.h:462
0x2 : Unpublished.
Definition: pvr_epg.h:504
0x2 : News magazine.
Definition: pvr_epg.h:198
0x20 : News/Current affairs.
Definition: pvr_epg.h:74
0x1 : Special events (Olympic Games, World Cup, etc.).
Definition: pvr_epg.h:246
0x7 : Motor sport.
Definition: pvr_epg.h:264
0x3 : Motoring.
Definition: pvr_epg.h:471
0xF : User defined.
Definition: pvr_epg.h:486
0x2 : Serious music/classical music.
Definition: pvr_epg.h:327
0x6 : Further education.
Definition: pvr_epg.h:444
EPG_EVENT_STATE
Definition: pvr_epg.h:601
EPG_EVENT_CONTENTSUBMASK_ARTSCULTURE
EPG entry sub content to EPG_EVENT_CONTENTMASK_ARTSCULTURE event types for sub type of "Arts/Culture ...
Definition: pvr_epg.h:351
0x1 : Detective/thriller.
Definition: pvr_epg.h:155
0x80 : Social/Political issues/Economics.
Definition: pvr_epg.h:104
0xF : User defined.
Definition: pvr_epg.h:309
0x0 : Sports (general).
Definition: pvr_epg.h:243
0x2 : Fine arts.
Definition: pvr_epg.h:360
EPG_EVENT_CONTENTSUBMASK_NEWSCURRENTAFFAIRS
EPG entry sub content to EPG_EVENT_CONTENTMASK_NEWSCURRENTAFFAIRS event types for sub type of "News/C...
Definition: pvr_epg.h:189
EPG_EVENT_CONTENTSUBMASK_MUSICBALLETDANCE
EPG entry sub content to EPG_EVENT_CONTENTMASK_MUSICBALLETDANCE event types for sub type of "Music/Ba...
Definition: pvr_epg.h:318
0x7 : Languages.
Definition: pvr_epg.h:447
0x5 : Musical/opera.
Definition: pvr_epg.h:336
0xF : User defined.
Definition: pvr_epg.h:390