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:
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 | |
ConduitAction * | fConduit |
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 | |||
) |
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.
void ConduitProxy::execDone | ( | SyncAction * | p | ) | [protected, slot] |
Member Data Documentation
ConduitAction* ConduitProxy::fConduit [protected] |
QString ConduitProxy::fDesktopName [protected] |
QString ConduitProxy::fLibraryName [protected] |
The documentation for this class was generated from the following files: