KCalendarCore
calformat.cpp
Go to the documentation of this file.
30 QString CalFormatPrivate::mProductId = QStringLiteral("-//K Desktop Environment//NONSGML libkcal 4.3//EN");
49 bool CalFormat::fromString(const Calendar::Ptr &calendar, const QString &string, const QString ¬ebook)
Exception base class.
virtual void virtual_hook(int id, void *data)
Definition: calformat.cpp:101
Exception base class, currently used as a fancy kind of error code and not as an C++ exception.
Definition: exceptions.h:41
void setException(Exception *error)
Sets an exception that is to be used by the functions of this class to report errors.
Definition: calformat.cpp:59
void setLoadedProductId(const QString &id)
Sets the PRODID string loaded from calendar file.
Definition: calformat.cpp:90
static const QString & application()
Returns the application name used in unique IDs and error messages.
Definition: calformat.cpp:75
QUuid createUuid()
Exception * exception() const
Returns an exception, if there is any, containing information about the last error that occurred.
Definition: calformat.cpp:64
QString loadedProductId()
Returns the PRODID string loaded from calendar file.
Definition: calformat.cpp:85
static void setApplication(const QString &application, const QString &productID)
Sets the application name for use in unique IDs and error messages, and product ID for incidence PROD...
Definition: calformat.cpp:69
QString toString() const const
virtual bool fromString(const Calendar::Ptr &calendar, const QString &string, bool deleted, const QString ¬ebook={})=0
Loads a calendar from a string.
QString mid(int position, int n) const const
static const QString & productId()
Returns the our library's PRODID string to write into calendar files.
Definition: calformat.cpp:80
virtual bool fromRawString(const Calendar::Ptr &calendar, const QByteArray &string, bool deleted=false, const QString ¬ebook=QString())=0
Parses a utf8 encoded string, returning the first iCal component encountered in that string.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 04:00:45 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 04:00:45 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.