akregator/src/librss

global.h
1 /*
2  * global.h
3  *
4  * Copyright (c) 2001, 2002, 2003 Frerich Raabe <raabe@kde.org>
5  *
6  * This program is distributed in the hope that it will be useful, but WITHOUT
7  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
8  * FOR A PARTICULAR PURPOSE. For licensing and distribution details, check the
9  * accompanying file 'COPYING'.
10  */
11 #ifndef LIBRSS_GLOBAL_H
12 #define LIBRSS_GLOBAL_H
13 
14 #include <tdemacros.h>
15 
16 template <class>
17 class TQValueList;
18 
19 namespace RSS
20 {
22  constexpr const char *AtomNamespace = "http://www.w3.org/2005/Atom";
24  constexpr const char *CommentAPINamespace = "http://wellformedweb.org/CommentAPI/";
26  constexpr const char *ContentNamespace = "http://purl.org/rss/1.0/modules/content/";
28  constexpr const char *DublinCoreNamespace = "http://purl.org/dc/elements/1.1/";
30  constexpr const char *RDFNamespace = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
32  constexpr const char *SlashNamespace = "http://purl.org/rss/1.0/modules/slash/";
34  constexpr const char *XMLNamespace = "http://www.w3.org/XML/1998/namespace";
35 
42  enum Version {
43  v0_90,
44  v0_91,
45  v0_92,
46  v0_93,
47  v0_94,
48  v1_0,
49  v2_0,
50  vAtom_0_1,
51  vAtom_0_2,
52  vAtom_0_3,
53  vAtom_1_0
54  };
55 
60  enum Status {
61  Success,
66  Aborted,
68  RetrieveError,
74  ParseError
80  };
81 
85  enum Language {
86  UndefinedLanguage,
88  af, sq,
89  eu, be,
90  bg, ca,
91  zh_cn, zh_tw,
92  hr, cs,
93  da, nl,
94  nl_be, nl_nl,
95  en, en_au,
96  en_bz, en_ca,
97  en_ie, en_jm,
98  en_nz, en_ph,
99  en_za, en_tt,
100  en_gb, en_us,
101  en_zw, fo,
102  fi, fr,
103  fr_be, fr_ca,
104  fr_fr, fr_lu,
105  fr_mc, fr_ch,
106  gl, gd,
107  de, de_at,
108  de_de, de_li,
109  de_lu, de_ch,
110  el, hu,
111  is, id,
112  ga, it,
113  it_it, it_ch,
114  ja, ko,
115  mk, no,
116  pl, pt,
117  pt_br, pt_pt,
118  ro, ro_mo,
119  ro_ro, ru,
120  ru_mo, ru_ru,
121  sr, sk,
122  sl, es,
123  es_ar, es_bo,
124  es_cl, es_co,
125  es_cr, es_do,
126  es_ec, es_sv,
127  es_gt, es_hn,
128  es_mx, es_ni,
129  es_pa, es_py,
130  es_pe, es_pr,
131  es_es, es_uy,
132  es_ve, sv,
133  sv_fi, sv_se,
134  tr, uk
135  };
136 
140  enum Day {
141  UndefinedDay,
142  Monday = 1, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday
143  };
144 
145  enum Format {
146  UnknownFormat,
147  AtomFeed,
148  RSSFeed
149  };
150 
154  typedef TQValueList<Day> DayList;
155 
159  typedef TQValueList<unsigned short> HourList;
160 }
161 
162 #endif // LIBRSS_GLOBAL_H