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
16template <class>
17class TQValueList;
18
19namespace RSS
20{
27 enum Version {
28 v0_90,
29 v0_91,
30 v0_92,
31 v0_93,
32 v0_94,
33 v1_0,
34 v2_0,
35 vAtom_0_1,
36 vAtom_0_2,
37 vAtom_0_3,
38 vAtom_1_0
39 };
40
45 enum Status {
46 Success,
51 Aborted,
53 RetrieveError,
59 ParseError
65 };
66
70 enum Language {
71 UndefinedLanguage,
73 af, sq,
74 eu, be,
75 bg, ca,
76 zh_cn, zh_tw,
77 hr, cs,
78 da, nl,
79 nl_be, nl_nl,
80 en, en_au,
81 en_bz, en_ca,
82 en_ie, en_jm,
83 en_nz, en_ph,
84 en_za, en_tt,
85 en_gb, en_us,
86 en_zw, fo,
87 fi, fr,
88 fr_be, fr_ca,
89 fr_fr, fr_lu,
90 fr_mc, fr_ch,
91 gl, gd,
92 de, de_at,
93 de_de, de_li,
94 de_lu, de_ch,
95 el, hu,
96 is, id,
97 ga, it,
98 it_it, it_ch,
99 ja, ko,
100 mk, no,
101 pl, pt,
102 pt_br, pt_pt,
103 ro, ro_mo,
104 ro_ro, ru,
105 ru_mo, ru_ru,
106 sr, sk,
107 sl, es,
108 es_ar, es_bo,
109 es_cl, es_co,
110 es_cr, es_do,
111 es_ec, es_sv,
112 es_gt, es_hn,
113 es_mx, es_ni,
114 es_pa, es_py,
115 es_pe, es_pr,
116 es_es, es_uy,
117 es_ve, sv,
118 sv_fi, sv_se,
119 tr, uk
120 };
121
125 enum Day {
126 UndefinedDay,
127 Monday = 1, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday
128 };
129
130 enum Format {
131 UnknownFormat,
132 AtomFeed,
133 RSSFeed
134 };
135
139 typedef TQValueList<Day> DayList;
140
144 typedef TQValueList<unsigned short> HourList;
145}
146
147#endif // LIBRSS_GLOBAL_H