kget
#include <filedeleter.h>
Classes | |
class | Private |
Public Member Functions | |
FileDeleter () | |
~FileDeleter () | |
Static Public Member Functions | |
static KJob * | deleteFile (const KUrl &dest, QObject *receiver=0, const char *method=0) |
static bool | isFileBeingDeleted (const KUrl &dest) |
Detailed Description
The FileDeleter is a wrapper around KIO ensuring that always just one job is started for deleting a file.
Thus deleteFile can be called mutliple times safely and all callees are informed once the file is actually deleted.
Definition at line 35 of file filedeleter.h.
Constructor & Destructor Documentation
FileDeleter::FileDeleter | ( | ) |
Definition at line 63 of file filedeleter.cpp.
FileDeleter::~FileDeleter | ( | ) |
Definition at line 68 of file filedeleter.cpp.
Member Function Documentation
|
static |
Starts the deletion of dest and emits KJob::finished once done.
You can safely call this method multiple times for the same destination.
- Parameters
-
dest destination to delete receiver receiver of the finished signal method method the finished signal should be connected to, thus informing you of the result
- Returns
- the KJob that has been created
- Note
- only use the returned job to create connections yourself, not to modify it!
Definition at line 73 of file filedeleter.cpp.
|
static |
- Returns
- true if dest is being deleted
Definition at line 78 of file filedeleter.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.