1 /* libquvi
2  * Copyright (C) 2013  Toni Gundogdu <legatvs@gmail.com>
3  *
4  * This file is part of libquvi <http://quvi.sourceforge.net/>.
5  *
6  * This library is free software: you can redistribute it and/or
7  * modify it under the terms of the GNU Affero General Public
8  * License as published by the Free Software Foundation, either
9  * version 3 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU Affero General Public License for more details.
15  *
16  * You should have received a copy of the GNU Affero General
17  * Public License along with this library.  If not, see
18  * <http://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef qsubtprop_h
22 #define qsubtprop_h
23 
24 /** @file qsubtprop.h */
25 
26 /** @enum QuviSubtitleType */
27 typedef enum
28 {
29   QUVI_SUBTITLE_TYPE_NONE,
30   QUVI_SUBTITLE_TYPE_TTS,
31   QUVI_SUBTITLE_TYPE_CC
32 } QuviSubtitleType;
33 
34 /** @enum QuviSubtitleFormat (internal) */
35 typedef enum
36 {
37   QUVI_SUBTITLE_FORMAT_NONE,
38   QUVI_SUBTITLE_FORMAT_TT
39 } QuviSubtitleFormat;
40 
41 /** @cond NODOC */
42 #define QUVI_SUBTITLE_PROPERTY_TYPE_STRING 0x100000
43 #define QUVI_SUBTITLE_PROPERTY_TYPE_LONG   0x200000
44 #define QUVI_SUBTITLE_PROPERTY_TYPE_DOUBLE 0x300000
45 #define QUVI_SUBTITLE_PROPERTY_TYPE_VOID   0x400000
46 #define QUVI_SUBTITLE_PROPERTY_TYPE_MASK   0xf00000
47 /** @endcond */
48 
49 /** @enum QuviSubtitleTypeProperty */
50 typedef enum
51 {
52   /* double */
53   QUVI_SUBTITLE_TYPE_PROPERTY_FORMAT = QUVI_SUBTITLE_PROPERTY_TYPE_DOUBLE+1,
54   QUVI_SUBTITLE_TYPE_PROPERTY_TYPE
55 } QuviSubtitleTypeProperty;
56 
57 /** @enum QuviSubtitleLangProperty */
58 typedef enum
59 {
60   /* string */
61   QUVI_SUBTITLE_LANG_PROPERTY_TRANSLATED = QUVI_SUBTITLE_PROPERTY_TYPE_STRING+1,
62   QUVI_SUBTITLE_LANG_PROPERTY_ORIGINAL,
63   QUVI_SUBTITLE_LANG_PROPERTY_CODE,
64   QUVI_SUBTITLE_LANG_PROPERTY_URL,
65   QUVI_SUBTITLE_LANG_PROPERTY_ID
66 } QuviSubtitleLangProperty;
67 
68 #endif /* qsubtprop_h */
69 
70 /* vim: set ts=2 sw=2 tw=72 expandtab: */
71