kpilot

RestoreAction Class Reference

#include <hotSync.h>

Inheritance diagram for RestoreAction:

List of all members.


Public Types

enum  Status { InstallingFiles, GettingFileInfo, Done }

Public Member Functions

 RestoreAction (KPilotLink *, QWidget *w=0L)
void setDirectory (const QString &path)
virtual QString statusString () const

Protected Slots

void installNextFile ()

Protected Member Functions

virtual bool exec ()

Detailed Description

Definition at line 144 of file hotSync.h.


Member Enumeration Documentation

Enumerator:
InstallingFiles 
GettingFileInfo 
Done 

Reimplemented from SyncAction.

Definition at line 150 of file hotSync.h.


Constructor & Destructor Documentation

RestoreAction::RestoreAction ( KPilotLink p,
QWidget w = 0L 
)

Definition at line 958 of file hotSync.cc.


Member Function Documentation

bool RestoreAction::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 971 of file hotSync.cc.

void RestoreAction::installNextFile (  )  [protected, slot]

Definition at line 1059 of file hotSync.cc.

void RestoreAction::setDirectory ( const QString path  ) 

By default, a path based on the user name (either on the handheld or set in KPilot) is used to determine the restory directory name ( generally $KDEHOME/share/apps/kpilot/DBBackup/_user_name_ ).

Use setDirectory() to change that and use a given path as target for the source. Use an empty path to restore the default behavior of using the username.

Definition at line 966 of file hotSync.cc.

QString RestoreAction::statusString (  )  const [virtual]

Return a human-readable representation of the status.

Reimplemented from SyncAction.

Definition at line 1105 of file hotSync.cc.


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