Public Types | Public Member Functions

mKCal::Compatibility Class Reference

This class provides compatibility to older or broken calendar files. More...

#include <compatibility.h>

Inheritance diagram for mKCal::Compatibility:
Inheritance graph
[legend]

List of all members.

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.

Detailed Description

This class provides compatibility to older or broken calendar files.


Member Typedef Documentation

typedef QSharedPointer<Compatibility> mKCal::Compatibility::Ptr

A shared pointer to a Compatibility object.


Member Enumeration Documentation

Select the type of Compatibility.

Importing or Exporting

Enumerator:
Import 

Do changes when importing from a broken device.

Export 

Do change to export to a broken device.

Select the type of Element to Fix.

Enumerator:
FixAlarm 

Fix the alarms.

FixRecurrence 

Fix the recurrences.


Constructor & Destructor Documentation

Compatibility::Compatibility (  ) 

Constructor.

Compatibility::~Compatibility (  )  [virtual]

Destructor.


Member Function Documentation

void Compatibility::fixAll ( const KCalCore::Incidence::Ptr &  incidence,
Compatibility::DirectionType  type 
) [virtual]

Fixes all the possible errors on an incidence.

Parameters:
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.

Parameters:
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.

Parameters:
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.

The documentation for this class was generated from the following files:

Generated on Tue Jul 5 2011 16:40:27 for libmkcal by doxygen 1.7.1