kpilot
VCalConduitBase Class Reference
#include <vcal-conduitbase.h>
Public Member Functions | |
virtual void | addPalmRecord (KCal::Incidence *e) |
virtual KCal::Incidence * | addRecord (PilotRecord *) |
KCal::Calendar * | calendar () const |
QString | calendarFile () const |
virtual void | changePalmRecord (KCal::Incidence *e, PilotRecord *s) |
virtual KCal::Incidence * | changeRecord (PilotRecord *, PilotRecord *) |
virtual VCalConduitSettings * | config ()=0 |
virtual PilotDatabase * | database () const |
virtual void | deletePalmRecord (KCal::Incidence *e, PilotRecord *s) |
virtual KCal::Incidence * | deleteRecord (PilotRecord *, PilotRecord *) |
KCal::Incidence * | incidenceFromRecord (PilotRecord *r) |
virtual PilotDatabase * | localDatabase () const |
virtual void | postSync () |
virtual void | preIncidence (KCal::Incidence *) |
virtual void | preRecord (PilotRecord *) |
virtual void | preSync () |
VCalConduitPrivateBase * | privateBase () const |
PilotRecord * | readRecordByIndex (int index) |
void | setHasNextRecord (bool b) |
void | setState (ConduitState *s) |
VCalConduitBase (KPilotLink *, const char *name=0L, const QStringList &args=QStringList()) | |
virtual | ~VCalConduitBase () |
Protected Slots | |
void | slotProcess () |
Protected Member Functions | |
virtual VCalConduitPrivateBase * | createPrivateCalendarData (KCal::Calendar *fCalendar)=0 |
virtual const QString | dbname ()=0 |
virtual bool | exec () |
virtual const QString | getTitle (PilotRecordBase *de)=0 |
virtual KCal::Incidence * | incidenceFromRecord (KCal::Incidence *e, const PilotRecordBase *de)=0 |
virtual KCal::Incidence * | newIncidence ()=0 |
virtual PilotRecordBase * | newPilotEntry (PilotRecord *r)=0 |
virtual bool | openCalendar () |
virtual void | readConfig () |
virtual PilotRecord * | recordFromIncidence (PilotRecordBase *de, const KCal::Incidence *e)=0 |
virtual int | resolveConflict (KCal::Incidence *e, PilotRecordBase *de) |
virtual void | updateIncidenceOnPalm (KCal::Incidence *e, PilotRecordBase *de) |
Protected Attributes | |
KCal::Calendar * | fCalendar |
QString | fCalendarFile |
VCalConduitPrivateBase * | fP |
ConduitState * | fState |
bool | hasNextRecord |
Detailed Description
Definition at line 75 of file vcal-conduitbase.h.
Constructor & Destructor Documentation
VCalConduitBase::VCalConduitBase | ( | KPilotLink * | d, | |
const char * | name = 0L , |
|||
const QStringList & | args = QStringList() | |||
) |
Definition at line 67 of file vcal-conduitbase.cc.
VCalConduitBase::~VCalConduitBase | ( | ) | [virtual] |
Definition at line 79 of file vcal-conduitbase.cc.
Member Function Documentation
void VCalConduitBase::addPalmRecord | ( | KCal::Incidence * | e | ) | [virtual] |
Definition at line 503 of file vcal-conduitbase.cc.
KCal::Incidence * VCalConduitBase::addRecord | ( | PilotRecord * | r | ) | [virtual] |
Definition at line 388 of file vcal-conduitbase.cc.
KCal::Calendar* VCalConduitBase::calendar | ( | ) | const [inline] |
Definition at line 149 of file vcal-conduitbase.h.
QString VCalConduitBase::calendarFile | ( | ) | const [inline] |
Definition at line 150 of file vcal-conduitbase.h.
void VCalConduitBase::changePalmRecord | ( | KCal::Incidence * | e, | |
PilotRecord * | s | |||
) | [virtual] |
Definition at line 514 of file vcal-conduitbase.cc.
KCal::Incidence * VCalConduitBase::changeRecord | ( | PilotRecord * | r, | |
PilotRecord * | ||||
) | [virtual] |
Definition at line 443 of file vcal-conduitbase.cc.
virtual VCalConduitSettings* VCalConduitBase::config | ( | ) | [pure virtual] |
Implemented in TodoConduit, and VCalConduit.
virtual VCalConduitPrivateBase* VCalConduitBase::createPrivateCalendarData | ( | KCal::Calendar * | fCalendar | ) | [protected, pure virtual] |
Implemented in TodoConduit, and VCalConduit.
virtual PilotDatabase* VCalConduitBase::database | ( | ) | const [inline, virtual] |
Definition at line 153 of file vcal-conduitbase.h.
const QString VCalConduitBase::dbname | ( | ) | [protected, pure virtual] |
void VCalConduitBase::deletePalmRecord | ( | KCal::Incidence * | e, | |
PilotRecord * | s | |||
) | [virtual] |
Definition at line 523 of file vcal-conduitbase.cc.
KCal::Incidence * VCalConduitBase::deleteRecord | ( | PilotRecord * | r, | |
PilotRecord * | ||||
) | [virtual] |
Definition at line 487 of file vcal-conduitbase.cc.
bool VCalConduitBase::exec | ( | ) | [protected, virtual] |
This function starts the actual processing done by the conduit.
It should return false if the processing cannot be initiated, f.ex. because some parameters were not set or a needed library is missing. This will be reported to the user. It should return true if processing is started normally. If processing starts normally, it is the _conduit's_ responsibility to eventually emit syncDone(); if processing does not start normally (ie. exec() returns false) then the environment will deal with syncDone().
Implements SyncAction.
Definition at line 159 of file vcal-conduitbase.cc.
virtual const QString VCalConduitBase::getTitle | ( | PilotRecordBase * | de | ) | [protected, pure virtual] |
Implemented in TodoConduit, and VCalConduit.
virtual KCal::Incidence* VCalConduitBase::incidenceFromRecord | ( | KCal::Incidence * | e, | |
const PilotRecordBase * | de | |||
) | [protected, pure virtual] |
Implemented in TodoConduit, and VCalConduit.
KCal::Incidence * VCalConduitBase::incidenceFromRecord | ( | PilotRecord * | r | ) |
Returns a KCal::Incidence constructed from PilotRecord r.
If r is 0L the it will return a KCal::Incidence that is empty.
Definition at line 593 of file vcal-conduitbase.cc.
virtual PilotDatabase* VCalConduitBase::localDatabase | ( | ) | const [inline, virtual] |
Definition at line 154 of file vcal-conduitbase.h.
virtual KCal::Incidence* VCalConduitBase::newIncidence | ( | ) | [protected, pure virtual] |
Implemented in TodoConduit, and VCalConduit.
virtual PilotRecordBase* VCalConduitBase::newPilotEntry | ( | PilotRecord * | r | ) | [protected, pure virtual] |
Implemented in TodoConduit, and VCalConduit.
bool VCalConduitBase::openCalendar | ( | ) | [protected, virtual] |
Definition at line 240 of file vcal-conduitbase.cc.
void VCalConduitBase::postSync | ( | ) | [virtual] |
virtual void VCalConduitBase::preIncidence | ( | KCal::Incidence * | ) | [inline, virtual] |
Definition at line 146 of file vcal-conduitbase.h.
virtual void VCalConduitBase::preRecord | ( | PilotRecord * | ) | [inline, virtual] |
void VCalConduitBase::preSync | ( | ) | [virtual] |
VCalConduitPrivateBase* VCalConduitBase::privateBase | ( | ) | const [inline] |
Returns the privatebase, that is used to for accessing the local calendar.
Definition at line 129 of file vcal-conduitbase.h.
void VCalConduitBase::readConfig | ( | ) | [protected, virtual] |
PilotRecord * VCalConduitBase::readRecordByIndex | ( | int | index | ) |
Returns the record at index from the palm or 0L if there is no record at index.
Definition at line 587 of file vcal-conduitbase.cc.
virtual PilotRecord* VCalConduitBase::recordFromIncidence | ( | PilotRecordBase * | de, | |
const KCal::Incidence * | e | |||
) | [protected, pure virtual] |
Implemented in TodoConduit, and VCalConduit.
int VCalConduitBase::resolveConflict | ( | KCal::Incidence * | e, | |
PilotRecordBase * | de | |||
) | [protected, virtual] |
Return how to resolve conflicts.
For now PalmOverrides=0=false, PCOverrides=1=true, Ask=2-> ask the user using a messagebox
Definition at line 421 of file vcal-conduitbase.cc.
void VCalConduitBase::setHasNextRecord | ( | bool | b | ) | [inline] |
Method used by state classes to indicatie if there are more records to deal with.
Definition at line 114 of file vcal-conduitbase.h.
void VCalConduitBase::setState | ( | ConduitState * | s | ) |
Change the current state of the conduit.
The state that the conduit has at the moment of the call will be deleted. The last state *must* set the state to 0L when finished.
Definition at line 604 of file vcal-conduitbase.cc.
void VCalConduitBase::slotProcess | ( | ) | [protected, slot] |
This slot is used to execute the actions applicable to this conduit.
What happens in this method is defined by the state the conduit has at the moment that this method is called. For more information about the actions that are executed, look at the classes that are implementing ConduitState.
Definition at line 191 of file vcal-conduitbase.cc.
void VCalConduitBase::updateIncidenceOnPalm | ( | KCal::Incidence * | e, | |
PilotRecordBase * | de | |||
) | [protected, virtual] |
Definition at line 546 of file vcal-conduitbase.cc.
Member Data Documentation
KCal::Calendar* VCalConduitBase::fCalendar [protected] |
Definition at line 88 of file vcal-conduitbase.h.
QString VCalConduitBase::fCalendarFile [protected] |
Definition at line 89 of file vcal-conduitbase.h.
VCalConduitPrivateBase* VCalConduitBase::fP [protected] |
Definition at line 90 of file vcal-conduitbase.h.
ConduitState* VCalConduitBase::fState [protected] |
Definition at line 91 of file vcal-conduitbase.h.
bool VCalConduitBase::hasNextRecord [protected] |
Definition at line 92 of file vcal-conduitbase.h.
The documentation for this class was generated from the following files: