libkcal Library API Documentation

KCal::QtopiaFormat Class Reference

This class implements the calendar format used by Qtopia. More...

#include <qtopiaformat.h>

Inheritance diagram for KCal::QtopiaFormat:

KCal::CalFormat List of all members.

Public Methods

 QtopiaFormat ()
virtual ~QtopiaFormat ()
bool load (Calendar *, const QString &fileName)
bool save (Calendar *, const QString &fileName)
bool fromString (Calendar *, const QString &)
QString toString (Calendar *)

Detailed Description

This class implements the calendar format used by Qtopia.

Definition at line 35 of file qtopiaformat.h.


Member Function Documentation

bool QtopiaFormat::load Calendar  ,
const QString   fileName
[virtual]
 

loads a calendar on disk into the calendar associated with this format.

Returns TRUE if successful,else returns FALSE.

Parameters:
fileName  the name of the calendar on disk.

Implements KCal::CalFormat.

Definition at line 272 of file qtopiaformat.cpp.

References KCal::CalFormat::clearException(), and QXmlSimpleReader::parse().

bool QtopiaFormat::save Calendar  ,
const QString   fileName
[virtual]
 

writes out the calendar to disk.

Returns true if successful and false on error.

Parameters:
fileName  the name of the file

Implements KCal::CalFormat.

Definition at line 286 of file qtopiaformat.cpp.

References KCal::CalFormat::clearException(), QFile::close(), QString::isNull(), QFile::open(), KCal::CalFormat::setException(), and toString().

bool QtopiaFormat::fromString Calendar  ,
const QString  
[virtual]
 

Parse string and populate calendar with that information.

Implements KCal::CalFormat.

Definition at line 311 of file qtopiaformat.cpp.

QString QtopiaFormat::toString Calendar   [virtual]
 

Return calendar information as string.

Implements KCal::CalFormat.

Definition at line 317 of file qtopiaformat.cpp.

Referenced by save().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for libkcal Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:36:24 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003