author | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
commit | a08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (unidiff) | |
tree | 8ee90d686081c52e7c69b5ce946e9b1a7d690001 /libkcal/vcalformat.h | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.zip kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.gz kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.bz2 |
initial public commit of qt4 portp1
-rw-r--r-- | libkcal/vcalformat.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/libkcal/vcalformat.h b/libkcal/vcalformat.h index 6dae3d2..cac9634 100644 --- a/libkcal/vcalformat.h +++ b/libkcal/vcalformat.h | |||
@@ -10,32 +10,35 @@ | |||
10 | 10 | ||
11 | This library is distributed in the hope that it will be useful, | 11 | This library is distributed in the hope that it will be useful, |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 | Library General Public License for more details. | 14 | Library General Public License for more details. |
15 | 15 | ||
16 | You should have received a copy of the GNU Library General Public License | 16 | You should have received a copy of the GNU Library General Public License |
17 | along with this library; see the file COPYING.LIB. If not, write to | 17 | along with this library; see the file COPYING.LIB. If not, write to |
18 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 18 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
19 | Boston, MA 02111-1307, USA. | 19 | Boston, MA 02111-1307, USA. |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #ifndef _VCALFORMAT_H | 22 | #ifndef _VCALFORMAT_H |
23 | #define _VCALFORMAT_H | 23 | #define _VCALFORMAT_H |
24 | 24 | ||
25 | #include "calformat.h" | 25 | #include "calformat.h" |
26 | //Added by qt3to4: | ||
27 | #include <Q3CString> | ||
28 | #include <Q3PtrList> | ||
26 | 29 | ||
27 | #define _VCAL_VERSION "1.0" | 30 | #define _VCAL_VERSION "1.0" |
28 | 31 | ||
29 | class VObject; | 32 | class VObject; |
30 | 33 | ||
31 | namespace KCal { | 34 | namespace KCal { |
32 | 35 | ||
33 | /** | 36 | /** |
34 | This class implements the vCalendar format. It provides methods for | 37 | This class implements the vCalendar format. It provides methods for |
35 | loading/saving/converting vCalendar format data into the internal KOrganizer | 38 | loading/saving/converting vCalendar format data into the internal KOrganizer |
36 | representation as Calendar and Events. | 39 | representation as Calendar and Events. |
37 | 40 | ||
38 | @short vCalendar format implementation | 41 | @short vCalendar format implementation |
39 | */ | 42 | */ |
40 | class VCalFormat : public CalFormat { | 43 | class VCalFormat : public CalFormat { |
41 | public: | 44 | public: |
@@ -82,32 +85,32 @@ class VCalFormat : public CalFormat { | |||
82 | QString qDateTimeToISO(const QDateTime &, bool zulu=TRUE); | 85 | QString qDateTimeToISO(const QDateTime &, bool zulu=TRUE); |
83 | /** takes a string in the format YYYYMMDDTHHMMSS and returns a | 86 | /** takes a string in the format YYYYMMDDTHHMMSS and returns a |
84 | * valid QDateTime. */ | 87 | * valid QDateTime. */ |
85 | QDateTime ISOToQDateTime(const QString & dtStr); | 88 | QDateTime ISOToQDateTime(const QString & dtStr); |
86 | /** takes a string in the format YYYYMMDD and returns a | 89 | /** takes a string in the format YYYYMMDD and returns a |
87 | * valid QDate. */ | 90 | * valid QDate. */ |
88 | QDate ISOToQDate(const QString & dtStr); | 91 | QDate ISOToQDate(const QString & dtStr); |
89 | /** takes a vCalendar tree of VObjects, and puts all of them that have | 92 | /** takes a vCalendar tree of VObjects, and puts all of them that have |
90 | * the "event" property into the dictionary, todos in the todo-list, etc. */ | 93 | * the "event" property into the dictionary, todos in the todo-list, etc. */ |
91 | void populate(VObject *vcal); | 94 | void populate(VObject *vcal); |
92 | 95 | ||
93 | /** takes a number 0 - 6 and returns the two letter string of that day, | 96 | /** takes a number 0 - 6 and returns the two letter string of that day, |
94 | * i.e. MO, TU, WE, etc. */ | 97 | * i.e. MO, TU, WE, etc. */ |
95 | const char *dayFromNum(int day); | 98 | const char *dayFromNum(int day); |
96 | /** the reverse of the above function. */ | 99 | /** the reverse of the above function. */ |
97 | int numFromDay(const QString &day); | 100 | int numFromDay(const QString &day); |
98 | Attendee::Role VCalFormat::readRole(const char *s) const; | 101 | Attendee::Role readRole(const char *s) const; |
99 | QCString writeRole(Attendee::Role role) const; | 102 | Q3CString writeRole(Attendee::Role role) const; |
100 | Attendee::PartStat readStatus(const char *s) const; | 103 | Attendee::PartStat readStatus(const char *s) const; |
101 | QCString writeStatus(Attendee::PartStat status) const; | 104 | Q3CString writeStatus(Attendee::PartStat status) const; |
102 | 105 | ||
103 | private: | 106 | private: |
104 | Calendar *mCalendar; | 107 | Calendar *mCalendar; |
105 | bool useLocalTime; | 108 | bool useLocalTime; |
106 | 109 | ||
107 | QPtrList<Event> mEventsRelate; // events with relations | 110 | Q3PtrList<Event> mEventsRelate; // events with relations |
108 | QPtrList<Todo> mTodosRelate; // todos with relations | 111 | Q3PtrList<Todo> mTodosRelate; // todos with relations |
109 | }; | 112 | }; |
110 | 113 | ||
111 | } | 114 | } |
112 | 115 | ||
113 | #endif | 116 | #endif |