kpilot

ConduitProxy Class Reference

The ConduitProxy action delays loading the plugin for a conduit until the conduit actually executes; the proxy then loads the file, creates a SyncAction for the conduit and runs that. More...

#include <plugin.h>

Inheritance diagram for ConduitProxy:

List of all members.


Public Member Functions

 ConduitProxy (KPilotLink *, const QString &desktopName, const SyncAction::SyncMode &m)

Protected Slots

void execDone (SyncAction *)

Protected Member Functions

virtual bool exec ()

Protected Attributes

ConduitActionfConduit
QString fDesktopName
QString fLibraryName

Detailed Description

The ConduitProxy action delays loading the plugin for a conduit until the conduit actually executes; the proxy then loads the file, creates a SyncAction for the conduit and runs that.

Once the conduit has finished, the proxy unloads everything and emits syncDone().

Definition at line 367 of file plugin.h.


Constructor & Destructor Documentation

ConduitProxy::ConduitProxy ( KPilotLink p,
const QString desktopName,
const SyncAction::SyncMode m 
)

Definition at line 516 of file plugin.cc.


Member Function Documentation

bool ConduitProxy::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 525 of file plugin.cc.

void ConduitProxy::execDone ( SyncAction p  )  [protected, slot]

Definition at line 624 of file plugin.cc.


Member Data Documentation

Definition at line 384 of file plugin.h.

Definition at line 382 of file plugin.h.

Definition at line 383 of file plugin.h.


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