akregator/src/librss

global.h

00001 /*
00002  * global.h
00003  *
00004  * Copyright (c) 2001, 2002, 2003 Frerich Raabe <raabe@kde.org>
00005  *
00006  * This program is distributed in the hope that it will be useful, but WITHOUT
00007  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00008  * FOR A PARTICULAR PURPOSE. For licensing and distribution details, check the
00009  * accompanying file 'COPYING'.
00010  */
00011 #ifndef LIBRSS_GLOBAL_H
00012 #define LIBRSS_GLOBAL_H
00013 
00014 #include <kdepimmacros.h>
00015 
00016 template <class>
00017 class QValueList;
00018 
00019 namespace RSS
00020 {
00027     enum Version {
00028         v0_90,  
00029         v0_91,  
00030         v0_92,  
00031         v0_93,  
00032         v0_94,  
00033         v1_0,    
00034         v2_0,     
00035         vAtom_0_1,  
00036         vAtom_0_2,  
00037         vAtom_0_3,  
00038         vAtom_1_0  
00039     };
00040     
00045     enum Status {
00046         Success,       
00051         Aborted,        
00053         RetrieveError, 
00059         ParseError   
00065     };
00066 
00070     enum Language {
00071         UndefinedLanguage, 
00073         af,               sq,   
00074         eu,                  be,    
00075         bg,               ca,   
00076         zh_cn,    zh_tw, 
00077         hr,                cs,  
00078         da,                  nl,    
00079         nl_be,      nl_nl, 
00080         en,                 en_au, 
00081         en_bz,     en_ca, 
00082         en_ie,    en_jm, 
00083         en_nz,   en_ph, 
00084         en_za,  en_tt, 
00085         en_gb, en_us, 
00086         en_zw,   fo,    
00087         fi,                 fr, 
00088         fr_be,     fr_ca, 
00089         fr_fr,      fr_lu, 
00090         fr_mc,      fr_ch, 
00091         gl,                gd,  
00092         de,                  de_at, 
00093         de_de,     de_li, 
00094         de_lu,  de_ch, 
00095         el,                   hu,   
00096         is,               id,   
00097         ga,                   it,   
00098         it_it,      it_ch, 
00099         ja,                ko,  
00100         mk,              no,    
00101         pl,                  pt,    
00102         pt_br,  pt_pt, 
00103         ro,                ro_mo, 
00104         ro_ro,   ru,    
00105         ru_mo,    ru_ru, 
00106         sr,                 sk, 
00107         sl,               es,   
00108         es_ar,  es_bo, 
00109         es_cl,      es_co, 
00110         es_cr,    es_do, 
00111         es_ec,    es_sv, 
00112         es_gt,  es_hn, 
00113         es_mx,     es_ni, 
00114         es_pa,     es_py, 
00115         es_pe,       es_pr, 
00116         es_es,      es_uy, 
00117         es_ve,  sv, 
00118         sv_fi,    sv_se, 
00119         tr,                 uk   
00120     };
00121     
00125     enum Day {
00126         UndefinedDay,
00127         Monday = 1, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday
00128     };
00129 
00130     enum Format {
00131         UnknownFormat,
00132         AtomFeed,
00133         RSSFeed
00134     };
00135 
00139     typedef QValueList<Day> DayList;
00140 
00144     typedef QValueList<unsigned short> HourList;
00145 }
00146 
00147 #endif // LIBRSS_GLOBAL_H
00148 // vim: noet:ts=4
KDE Home | KDE Accessibility Home | Description of Access Keys