• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.8.3 API Reference
  • KDE Home
  • Contact Us
 

KCal Library

  • KCal
  • QtopiaFormat
Public Member Functions
KCal::QtopiaFormat Class Reference

#include <qtopiaformat.h>

Inheritance diagram for KCal::QtopiaFormat:
Inheritance graph
[legend]

List of all members.

Public Member Functions

bool fromRawString (Calendar *calendar, const QByteArray &string)
bool fromString (Calendar *calendar, const QString &)
bool load (Calendar *calendar, const QString &fileName)
bool save (Calendar *calendar, const QString &fileName)
QString toString (Calendar *calendar)

Detailed Description

This class implements the calendar format used by Qtopia.

Definition at line 36 of file qtopiaformat.h.


Member Function Documentation

bool QtopiaFormat::fromRawString ( Calendar *  calendar,
const QByteArray &  string 
) [virtual]

Parses a utf8 encoded string, returning the first iCal component encountered in that string.

This is an overload used for efficient reading to avoid utf8 conversions, which are expensive when reading from disk.

Parameters:
calendaris the Calendar to be loaded.
stringis the QByteArray containing the Calendar data.
Returns:
true if successful; false otherwise.
See also:
fromString(), toString().

Implements KCal::CalFormat.

Definition at line 343 of file qtopiaformat.cpp.

bool QtopiaFormat::fromString ( Calendar *  calendar,
const QString &  string 
) [virtual]

Loads a calendar from a string.

Parameters:
calendaris the Calendar to be loaded.
stringis the QString containing the Calendar data.
Returns:
true if successful; false otherwise.
See also:
fromRawString(), toString().

Implements KCal::CalFormat.

Definition at line 337 of file qtopiaformat.cpp.

bool QtopiaFormat::load ( Calendar *  calendar,
const QString &  fileName 
) [virtual]

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

Parameters:
calendaris the Calendar to be loaded.
fileNameis the name of the disk file containing the Calendar data.
Returns:
true if successful; false otherwise.

Implements KCal::CalFormat.

Definition at line 296 of file qtopiaformat.cpp.

bool QtopiaFormat::save ( Calendar *  calendar,
const QString &  fileName 
) [virtual]

Writes the calendar to disk.

Parameters:
calendaris the Calendar containing the data to be saved.
fileNameis the name of the file to write the calendar data.
Returns:
true if successful; false otherwise.

Implements KCal::CalFormat.

Definition at line 310 of file qtopiaformat.cpp.

QString QtopiaFormat::toString ( Calendar *  calendar) [virtual]

Returns the calendar as a string.

Parameters:
calendaris the Calendar containing the data to be saved.
Returns:
a QString containing the Calendar data if successful; an empty string otherwise.
See also:
fromString(), fromRawString().

Implements KCal::CalFormat.

Definition at line 349 of file qtopiaformat.cpp.


The documentation for this class was generated from the following files:
  • qtopiaformat.h
  • qtopiaformat.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Tue May 8 2012 00:03:23 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KCal Library

Skip menu "KCal Library"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdepimlibs-4.8.3 API Reference

Skip menu "kdepimlibs-4.8.3 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal