kalarm

calendarcompat.h
1 /*
2  * calendarcompat.h - compatibility for old calendar file formats
3  * Program: kalarm
4  * Copyright © 2005,2007 by David Jarvie <software@astrojar.org.uk>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License along
17  * with this program; if not, write to the Free Software Foundation, Inc.,
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19  */
20 
21 #ifndef CALENDARCOMPAT_H
22 #define CALENDARCOMPAT_H
23 
24 /* @file calendarcompat.h - compatibility for old calendar file formats */
25 
26 #include <tqstring.h>
27 namespace KCal { class Calendar; }
28 
29 
30 class CalendarCompat
31 {
32  public:
33  static void fix(KCal::Calendar&, const TQString& localFile = TQString());
34 
35  private:
36  static int readKAlarmVersion(KCal::Calendar&, TQString& subVersion);
37  static bool isUTC(const TQString& localFile);
38 };
39 
40 #endif // CALENDARCOMPAT_H