20 #ifndef KHOLIDAYS_HOLIDAYS_H
21 #define KHOLIDAYS_HOLIDAYS_H
24 #include <tqstringlist.h>
25 #include <tqdatetime.h>
26 #include <tqvaluelist.h>
28 #include <tdemacros.h>
36 class TDE_EXPORT KHolidays {
43 static TQStringList locations();
47 static TQString fileForLocation( const TQString &location );
52 static TQString userPath( bool create = false );
56 static TQString generateFileName( const TQString &location );
58 KHolidays( const TQString& location );
62 TQString location() const;
64 TQValueList<KHoliday> getHolidays( const TQDate& );
66 TDE_DEPRECATED TQString shortText( const TQDate& );
67 TDE_DEPRECATED TQString getHoliday( const TQDate& );
69 enum { WORKDAY, HOLIDAY };
70 TDE_DEPRECATED int category( const TQDate& );
73 bool parseFile( const TQDate& );
76 TQString mHolidayFile;
|