certmanager/lib Library API Documentation

Kleo::Job Class Reference

An abstract base class for asynchronous crypto operations. More...

#include <job.h>

Inheritance diagram for Kleo::Job:

Inheritance graph
[legend]
Collaboration diagram for Kleo::Job:

Collaboration graph
[legend]
List of all members.

Public Slots

virtual void slotCancel ()=0

Signals

void progress (const QString &what, int current, int total)
void done ()

Public Member Functions

virtual void showErrorDialog (QWidget *parent=0, const QString &caption=QString::null) const

Protected Member Functions

 Job (QObject *parent, const char *name)

Detailed Description

An abstract base class for asynchronous crypto operations.

During the operation, you might receive progress updates through the progress() signal as they arrive, but an implementation is free to not send progress information. You should show a busy progressbar until the first progress() signal is received.

The done() signal is emitted _before_ the result() signals of subclasses and should be used to hide and/or reset progress bars, not to learn of the end of the operation. Use the result() signals for that.

To cancel the operation, simply call slotCancel(). The result() signal of subclasses will still be emitted, though, and will carry the information that the operation was canceled.

Definition at line 60 of file job.h.


The documentation for this class was generated from the following file:
KDE Logo
This file is part of the documentation for certmanager/lib Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Aug 23 18:19:38 2007 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003