• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kget

Classes | Public Member Functions | Static Public Member Functions | List of all members
FileDeleter Class Reference

#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

KJob * FileDeleter::deleteFile ( const KUrl &  dest,
QObject *  receiver = 0,
const char *  method = 0 
)
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
destdestination to delete
receiverreceiver of the finished signal
methodmethod 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.

bool FileDeleter::isFileBeingDeleted ( const KUrl &  dest)
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:
  • filedeleter.h
  • filedeleter.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:28:44 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kget

Skip menu "kget"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal