SVN_SILENT made messages (after extraction)
[kdepim.git] / kalarm / alarmtime.h
blobfd64aa442bd93e62ebee101a0c1f82776c0b61fa
1 /*
2 * alarmtime.h - conversion functions for alarm times
3 * Program: kalarm
4 * Copyright © 2012 by David Jarvie <djarvie@kde.org>
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.
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.
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.
21 #include <kdatetime.h>
23 namespace KAlarmCal { class DateTime; }
25 class AlarmTime
27 public:
28 static QString alarmTimeText(const KAlarmCal::DateTime& dateTime);
29 static QString timeToAlarmText(const KAlarmCal::DateTime& dateTime);
30 static bool convertTimeString(const QByteArray& timeString, KDateTime& dateTime,
31 const KDateTime& defaultDt = KDateTime(), bool allowTZ = true);
32 static KDateTime applyTimeZone(const QString& tzstring, const QDate& date, const QTime& time,
33 bool haveTime, const KDateTime& defaultDt = KDateTime());
35 private:
36 static int mTimeHourPos;
39 // vim: et sw=4: