kpilot

BackupAction Class Reference

#include <hotSync.h>

Inheritance diagram for BackupAction:

List of all members.


Public Types

enum  Status {
  Init, Error, FastBackup, FullBackup,
  BackupIncomplete, BackupEnded, BackupComplete
}

Public Member Functions

 BackupAction (KPilotLink *, bool full)
virtual bool event (QEvent *e)
void setDirectory (const QString &path)
virtual QString statusString () const

Protected Member Functions

virtual bool exec ()

Detailed Description

Definition at line 52 of file hotSync.h.


Member Enumeration Documentation

Enumerator:
Init 
Error 
FastBackup 
FullBackup 
BackupIncomplete 
BackupEnded 
BackupComplete 

Reimplemented from SyncAction.

Definition at line 67 of file hotSync.h.


Constructor & Destructor Documentation

BackupAction::BackupAction ( KPilotLink p,
bool  full 
)

Constructor.

Back up all the databases on the link to a directory on the local disk. If full is true, then a full backup, including applications, is done. Otherwise, only user data is backed-up.

See also:
setDirectory()

Definition at line 175 of file hotSync.cc.


Member Function Documentation

bool BackupAction::event ( QEvent e  )  [virtual]

Reimplemented from QObject.

Definition at line 534 of file hotSync.cc.

bool BackupAction::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 322 of file hotSync.cc.

void BackupAction::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 backup directory name ( generally $KDEHOME/share/apps/kpilot/DBBackup/_user_name_ ).

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

Definition at line 222 of file hotSync.cc.

QString BackupAction::statusString (  )  const [virtual]

Return a human-readable representation of the status.

Reimplemented from SyncAction.

Definition at line 185 of file hotSync.cc.


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