• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kpilot

ConduitAction Class Reference

#include <plugin.h>

Inheritance diagram for ConduitAction:

Inheritance graph
[legend]

List of all members.


Detailed Description

The SyncActions created by the factory should obey at least the argument test, indicating a dry run.

The device link is the link where the sync should run -- don't get the pilotPort() until the sync runs!

setConfig() will be called before the sync starts so that the conduit can read/write metadata and local settings.

Definition at line 191 of file plugin.h.


Public Member Functions

 ConduitAction (KPilotLink *, const char *name, const QVariantList &args=QVariantList())
QString conduitName () const
bool isFirstSync () const
bool isFullSync () const
const SyncMode & syncMode () const
virtual ~ConduitAction ()

Protected Member Functions

bool changeSync (SyncMode::Mode m)
ConflictResolution getConflictResolution () const
bool openDatabases (const QString &dbName, bool *retrieved=0L)
void setConflictResolution (ConflictResolution res)
void setFirstSync (bool first)

Protected Attributes

QString fConduitName
PilotDatabase * fDatabase
PilotLocalDatabase * fLocalDatabase

Constructor & Destructor Documentation

ConduitAction::ConduitAction ( KPilotLink *  p,
const char *  name,
const QVariantList &  args = QVariantList() 
)

Definition at line 267 of file plugin.cc.

ConduitAction::~ConduitAction (  )  [virtual]

Definition at line 307 of file plugin.cc.


Member Function Documentation

bool ConduitAction::changeSync ( SyncMode::Mode  m  )  [protected]

Try to change the sync mode from what it is now to the mode m.

This may fail (ie. changing a backup to a restore is not kosher) and changeSync() will return false then.

Definition at line 426 of file plugin.cc.

QString ConduitAction::conduitName (  )  const [inline]

Definition at line 201 of file plugin.h.

ConflictResolution ConduitAction::getConflictResolution (  )  const [inline, protected]

Retrieve the conflict resolution setting for this action.

Definition at line 230 of file plugin.h.

bool ConduitAction::isFirstSync (  )  const [inline]

A first sync (i.e.

database newly fetched from the handheld ) does not check for deleted records, but understands them as added on the other side. The flag is set by the conduits when opening the local database, or the calendar/addressbook (if it is empty). This also implies a full sync.

Definition at line 223 of file plugin.h.

bool ConduitAction::isFullSync (  )  const [inline]

A full sync happens for eFullSync, eCopyPCToHH and eCopyHHToPC.

It completely ignores all modified flags and walks through all records in the database.

Definition at line 211 of file plugin.h.

bool ConduitAction::openDatabases ( const QString &  dbName,
bool *  retrieved = 0L 
) [protected]

Open both the local copy of database dbName and the version on the Pilot.

Return true only if both opens succeed. If the local copy of the database does not exist, it is retrieved from the handheld. In this case, retrieved is set to true, otherwise it is left alone (i.e. retains its value and is not explicitly set to false).

Parameters:
dbName database name to open.
retrieved indicator whether the database had to be loaded from the handheld.

Definition at line 315 of file plugin.cc.

void ConduitAction::setConflictResolution ( ConflictResolution  res  )  [inline, protected]

Definition at line 244 of file plugin.h.

void ConduitAction::setFirstSync ( bool  first  )  [inline, protected]

Definition at line 250 of file plugin.h.

const SyncMode& ConduitAction::syncMode (  )  const [inline]

Retrieve the sync mode set for this action.

Definition at line 204 of file plugin.h.


Member Data Documentation

QString ConduitAction::fConduitName [protected]

Name of the conduit; might be changed by subclasses.

Should normally be set in the constructor.

Definition at line 273 of file plugin.h.

PilotDatabase* ConduitAction::fDatabase [protected]

Reimplemented in NullConduit.

Definition at line 250 of file plugin.h.

PilotLocalDatabase* ConduitAction::fLocalDatabase [protected]

Definition at line 253 of file plugin.h.


The documentation for this class was generated from the following files:
  • plugin.h
  • plugin.cc

kpilot

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

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal