less Q3 (remove a lot of unused Q3 headers, port small things)
[kdenetwork.git] / librss / global.h
blob4e2b57573d74ff574a9bda0e72799201f7a09c29
1 /*
2 * global.h
4 * Copyright (c) 2001, 2002, 2003, 2004 Frerich Raabe <raabe@kde.org>
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'.
11 #ifndef LIBRSS_GLOBAL_H
12 #define LIBRSS_GLOBAL_H
14 #include <kdemacros.h>
15 //Added by qt3to4:
16 #include <QList>
18 #define LIBRSS_EXPORT KDE_EXPORT
20 template <class>
21 class QList;
23 namespace RSS
25 /**
26 * Versions currently supported by this library. This enumeration is
27 * subject to be extended in the future and used by Document::version() to
28 * provide an interface to the client using which he can find out what
29 * version the loaded RSS file actually is.
31 enum Version {
32 v0_90, /// RSS v0.90
33 v0_91, /// RSS v0.91
34 v0_92, /// RSS v0.92
35 v0_93, /// RSS v0.93
36 v0_94, /// RSS v0.94
37 v1_0, /// RSS v1.0
38 v2_0 /// RSS v2.0
41 /**
42 * Possible status values returned by the signal
43 * Loader::loadingComplete().
45 enum Status {
46 Success, /**
47 * Nothing went wrong so far, but you still have to check
48 * what values are returned by the classes since it's not
49 * guaranteed that the retrieved RSS markup actually
50 * complies to one of the RSS DTDs.*/
51 RetrieveError, /**
52 * Something went wrong while retrieving the RSS data,
53 * this could be a problem while resolving the host name
54 * (assuming the source file loader was used) or a
55 * problem with the program to be executed (in case the
56 * program loader was used.).*/
57 ParseError /**
58 * The overall format of the RSS markup wasn't XML
59 * conform. This only indicates that the data wasn't
60 * valid (for example, if the data returned by a
61 * DataRetriever isn't well-formed XML).
62 * @see DataRetriever */
65 /**
66 * Possible languages which are returned by Document::language().
68 enum Language {
69 UndefinedLanguage, /** Unknown / undefined language */
71 af, /** Afrikaans */ sq, /** Albanian */
72 eu, /** Basque */ be, /** Belarusian */
73 bg, /** Bulgarian */ ca, /** Catalan */
74 zh_cn, /** Chinese (Simplified) */ zh_tw, /** Chinese (Traditional */
75 hr, /** Croatian */ cs, /** Czech */
76 da, /** Danish */ nl, /** Dutch */
77 nl_be, /** Dutch (Belgium) */ nl_nl, /** Dutch (Netherlands) */
78 en, /** English */ en_au, /** English (Australia) */
79 en_bz, /** English (Belize) */ en_ca, /** English (Canada) */
80 en_ie, /** English (Ireland) */ en_jm, /** English (Jamaica) */
81 en_nz, /** English (New Zealand) */ en_ph, /** English (Phillipines) */
82 en_za, /** English (South Africa) */ en_tt, /** English (Trinidad) */
83 en_gb, /** English (Great Britain) */en_us, /** English (United States) */
84 en_zw, /** English (Zimbabwe) */ fo, /** Faeroese */
85 fi, /** Finnish */ fr, /** French */
86 fr_be, /** French (Belgium) */ fr_ca, /** French (Canada) */
87 fr_fr, /** French (France) */ fr_lu, /** French (Luxembourg) */
88 fr_mc, /** French (Monaco) */ fr_ch, /** French (Switzerland) */
89 gl, /** Galician */ gd, /** Gaelic */
90 de, /** German */ de_at, /** German (Austria) */
91 de_de, /** German (Germany) */ de_li, /** German (Liechtenstein) */
92 de_lu, /** German (Luxembourg) */ de_ch, /** German (Switzerland) */
93 el, /** Greek */ hu, /** Hungarian */
94 is, /** Icelandic */ id, /** Indonesian */
95 ga, /** Irish */ it, /** Italian */
96 it_it, /** Italian (Italy) */ it_ch, /** Italian (Switzerland) */
97 ja, /** Japanese */ ko, /** Korean */
98 mk, /** Macedonian */ no, /** Norwegian */
99 pl, /** Polish */ pt, /** Portuguese */
100 pt_br, /** Portuguese (Brazil) */ pt_pt, /** Portuguese (Portugal) */
101 ro, /** Romanian */ ro_mo, /** Romanian (Moldova) */
102 ro_ro, /** Romanian (Romania) */ ru, /** Russian */
103 ru_mo, /** Russian (Moldova) */ ru_ru, /** Russian (Russia) */
104 sr, /** Serbian */ sk, /** Slovak */
105 sl, /** Slovenian */ es, /** Spanish */
106 es_ar, /** Spanish (Argentina) */ es_bo, /** Spanish (Bolivia) */
107 es_cl, /** Spanish (Chile) */ es_co, /** Spanish (Colombia) */
108 es_cr, /** Spanish (Costa Rica) */ es_do, /** Spanish (Dominican Rep.) */
109 es_ec, /** Spanish (Ecuador) */ es_sv, /** Spanish (El Salvador) */
110 es_gt, /** Spanish (Guatemala) */ es_hn, /** Spanish (Honduras) */
111 es_mx, /** Spanish (Mexico) */ es_ni, /** Spanish (Nicaragua) */
112 es_pa, /** Spanish (Panama) */ es_py, /** Spanish (Paraguay) */
113 es_pe, /** Spanish (Peru) */ es_pr, /** Spanish (Puerto Rico) */
114 es_es, /** Spanish (Spain) */ es_uy, /** Spanish (Uruguay) */
115 es_ve, /** Spanish (Venezuela) */ sv, /** Swedish */
116 sv_fi, /** Swedish (Finland) */ sv_se, /** Swedish (Sweden) */
117 tr, /** Turkish */ uk /** Ukranian */
121 * Possible values contained in a DayList.
123 enum Day {
124 UndefinedDay,
125 Monday = 1, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday
129 * This type is used by Document::skipDays().
131 typedef QList<Day> DayList;
134 * This type is used by Document::skipHours().
136 typedef QList<unsigned short> HourList;
139 #endif // LIBRSS_GLOBAL_H
140 // vim: noet:ts=4