-rw-r--r-- | libkcal/qtopiaformat.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libkcal/qtopiaformat.cpp b/libkcal/qtopiaformat.cpp index 0a4a031..2dfe1a4 100644 --- a/libkcal/qtopiaformat.cpp +++ b/libkcal/qtopiaformat.cpp | |||
@@ -12,29 +12,29 @@ | |||
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 | #include <qdatetime.h> | 22 | #include <qdatetime.h> |
23 | #include <qstring.h> | 23 | #include <qstring.h> |
24 | #include <qptrlist.h> | 24 | #include <q3ptrlist.h> |
25 | #include <qregexp.h> | 25 | #include <qregexp.h> |
26 | #include <qclipboard.h> | 26 | #include <qclipboard.h> |
27 | #include <qfile.h> | 27 | #include <qfile.h> |
28 | #include <qtextstream.h> | 28 | #include <q3textstream.h> |
29 | #include <qxml.h> | 29 | #include <qxml.h> |
30 | 30 | ||
31 | #include <kdebug.h> | 31 | #include <kdebug.h> |
32 | #include <klocale.h> | 32 | #include <klocale.h> |
33 | 33 | ||
34 | #include "calendar.h" | 34 | #include "calendar.h" |
35 | #include "calendarlocal.h" | 35 | #include "calendarlocal.h" |
36 | 36 | ||
37 | #include "qtopiaformat.h" | 37 | #include "qtopiaformat.h" |
38 | 38 | ||
39 | using namespace KCal; | 39 | using namespace KCal; |
40 | 40 | ||
@@ -300,30 +300,30 @@ bool QtopiaFormat::load( Calendar *calendar, const QString &fileName ) | |||
300 | bool QtopiaFormat::save( Calendar *calendar, const QString &fileName ) | 300 | bool QtopiaFormat::save( Calendar *calendar, const QString &fileName ) |
301 | { | 301 | { |
302 | 302 | ||
303 | clearException(); | 303 | clearException(); |
304 | 304 | ||
305 | QString text = toString( calendar ); | 305 | QString text = toString( calendar ); |
306 | 306 | ||
307 | if ( text.isNull() ) return false; | 307 | if ( text.isNull() ) return false; |
308 | 308 | ||
309 | // TODO: write backup file | 309 | // TODO: write backup file |
310 | 310 | ||
311 | QFile file( fileName ); | 311 | QFile file( fileName ); |
312 | if (!file.open( IO_WriteOnly ) ) { | 312 | if (!file.open( QIODevice::WriteOnly ) ) { |
313 | setException(new ErrorFormat(ErrorFormat::SaveError, | 313 | setException(new ErrorFormat(ErrorFormat::SaveError, |
314 | i18n("Could not open file '%1'").arg(fileName))); | 314 | i18n("Could not open file '%1'").arg(fileName))); |
315 | return false; | 315 | return false; |
316 | } | 316 | } |
317 | QTextStream ts( &file ); | 317 | Q3TextStream ts( &file ); |
318 | ts << text; | 318 | ts << text; |
319 | file.close(); | 319 | file.close(); |
320 | 320 | ||
321 | return true; | 321 | return true; |
322 | } | 322 | } |
323 | 323 | ||
324 | bool QtopiaFormat::fromString( Calendar *, const QString & ) | 324 | bool QtopiaFormat::fromString( Calendar *, const QString & ) |
325 | { | 325 | { |
326 | 326 | ||
327 | return false; | 327 | return false; |
328 | } | 328 | } |
329 | 329 | ||