This class provides compatibility to older or broken calendar files. More...
#include <compatibility.h>
Public Types | |
enum | DirectionType { Import, Export } |
Select the type of Compatibility. More... | |
enum | FixType { FixAlarm, FixRecurrence } |
Select the type of Element to Fix. More... | |
typedef QSharedPointer < Compatibility > | Ptr |
A shared pointer to a Compatibility object. | |
Public Member Functions | |
Compatibility () | |
Constructor. | |
virtual | ~Compatibility () |
Destructor. | |
virtual void | fixAll (const KCalCore::Incidence::Ptr &incidence, Compatibility::DirectionType type) |
Fixes all the possible errors on an incidence. | |
virtual void | fixElement (Compatibility::FixType element, const KCalCore::Incidence::Ptr &incidence, Compatibility::DirectionType type) |
Fixes one of the possible errors of an an incidence. | |
virtual void | virtual_hook (int id, void *data) |
Standard trick to add virtuals later. |
This class provides compatibility to older or broken calendar files.
typedef QSharedPointer<Compatibility> mKCal::Compatibility::Ptr |
A shared pointer to a Compatibility object.
Select the type of Compatibility.
Importing or Exporting
Compatibility::Compatibility | ( | ) |
Constructor.
Compatibility::~Compatibility | ( | ) | [virtual] |
Destructor.
void Compatibility::fixAll | ( | const KCalCore::Incidence::Ptr & | incidence, | |
Compatibility::DirectionType | type | |||
) | [virtual] |
Fixes all the possible errors on an incidence.
incidence | is a pointer to an Incidence object that may | |
type | if it is to import or to export need its recurrence rule fixed. |
Reimplemented in mKCal::CompatNokiaPhones.
void Compatibility::fixElement | ( | Compatibility::FixType | element, | |
const KCalCore::Incidence::Ptr & | incidence, | |||
Compatibility::DirectionType | type | |||
) | [virtual] |
Fixes one of the possible errors of an an incidence.
element | The element to fix | |
incidence | is a pointer to an Incidence object that may need | |
type | if it is to import or to export its summary fixed. |
Reimplemented in mKCal::CompatNokiaPhones.
void Compatibility::virtual_hook | ( | int | id, | |
void * | data | |||
) | [virtual] |
Standard trick to add virtuals later.
id | is any integer unique to this class which we will use to identify the method to be called. | |
data | is a pointer to some glob of data, typically a struct. |