KonqOperations Class Reference
Implements file operations (move,del,trash,shred,paste,copy,move,link. More...
#include <konq_operations.h>
Collaboration diagram for KonqOperations:

Public Types | |
enum | { TRASH, DEL, SHRED, COPY, MOVE, LINK, EMPTYTRASH, STAT, MKDIR, RESTORE, UNKNOWN } |
Signals | |
void | statFinished (const KFileItem *item) |
void | aboutToCreate (const QPoint &pos, const QValueList< KIO::CopyInfo > &files) |
Static Public Member Functions | |
static void | editMimeType (const QString &mimeType) |
static void | del (QWidget *parent, int method, const KURL::List &selectedURLs) |
static void | copy (QWidget *parent, int method, const KURL::List &selectedURLs, const KURL &destUrl) |
static void | doDrop (const KFileItem *destItem, const KURL &destURL, QDropEvent *ev, QWidget *parent) |
static void | doPaste (QWidget *parent, const KURL &destURL, const QPoint &pos) |
static void | doPaste (QWidget *parent, const KURL &destURL) |
static void | emptyTrash () |
static void | restoreTrashedItems (const KURL::List &urls) |
static void | mkdir (QWidget *parent, const KURL &url) |
static void | statURL (const KURL &url, const QObject *receiver, const char *member) |
static void | rename (QWidget *parent, const KURL &oldurl, const QString &name) |
static void | rename (QWidget *parent, const KURL &oldurl, const KURL &newurl) |
static void | newDir (QWidget *parent, const KURL &baseURL) |
Protected Types | |
enum | { DEFAULT_CONFIRMATION, SKIP_CONFIRMATION, FORCE_CONFIRMATION } |
Protected Slots | |
void | slotAboutToCreate (KIO::Job *job, const QValueList< KIO::CopyInfo > &files) |
void | slotResult (KIO::Job *job) |
void | slotStatResult (KIO::Job *job) |
void | asyncDrop (const KFileItem *item) |
void | slotKIOPaste () |
void | doFileCopy () |
Protected Member Functions | |
KonqOperations (QWidget *parent) | |
virtual | ~KonqOperations () |
bool | askDeleteConfirmation (const KURL::List &selectedURLs, int confirmation) |
void | _del (int method, const KURL::List &selectedURLs, int confirmation) |
void | _restoreTrashedItems (const KURL::List &urls) |
void | _statURL (const KURL &url, const QObject *receiver, const char *member) |
void | setOperation (KIO::Job *job, int method, const KURL::List &src, const KURL &dest) |
void | setDropInfo (DropInfo *info) |
void | setPasteInfo (KIOPasteInfo *info) |
Classes | |
struct | DropInfo |
struct | KIOPasteInfo |
Detailed Description
Implements file operations (move,del,trash,shred,paste,copy,move,link...) for konqueror and kdesktop whatever the view mode is (icon, tree, ...)
Definition at line 37 of file konq_operations.h.
Member Function Documentation
|
Pop up properties dialog for mimetype
Definition at line 77 of file konq_operations.cc. Referenced by KonqPopupMenu::slotPopupMimeType(). |
|
Definition at line 84 of file konq_operations.cc. References _del(), and KonqOperations(). |
|
Definition at line 147 of file konq_operations.cc. References KonqOperations(), and setOperation(). |
|
Drop.
Definition at line 312 of file konq_operations.cc. References _statURL(), asyncDrop(), KonqOperations::KIOPasteInfo::data, KonqOperations::KIOPasteInfo::destURL, KonqOperations::KIOPasteInfo::dialogText, KonqOperations(), KonqOperations::KIOPasteInfo::mousePos, setDropInfo(), setPasteInfo(), and slotKIOPaste(). Referenced by KFileIVI::dropped(), and KonqIconViewWidget::slotDropped(). |
|
Paste the clipboard contents.
Definition at line 123 of file konq_operations.cc. References KonqDrag::decodeIsCutSelection(), KonqOperations::KIOPasteInfo::destURL, KonqOperations(), KonqOperations::KIOPasteInfo::mousePos, setOperation(), and setPasteInfo(). Referenced by doPaste(), and KonqIconViewWidget::paste(). |
|
Create a directory.
Definition at line 110 of file konq_operations.cc. References KonqOperations(), and setOperation(). Referenced by newDir(). |
|
Get info about a given URL, and when that's done (it's asynchronous!), call a given slot with the KFileItem * as argument. The KFileItem will be deleted by statURL after calling the slot. Make a copy if you need one ! Definition at line 707 of file konq_operations.cc. References _statURL(), KonqOperations(), and m_method. |
|
Do a renaming.
Definition at line 750 of file konq_operations.cc. Referenced by KonqIconViewWidget::slotItemRenamed(). |
|
Do a renaming.
Definition at line 654 of file konq_operations.cc. References KonqOperations(), and setOperation(). |
|
Ask for the name of a new directory and create it.
Definition at line 758 of file konq_operations.cc. References mkdir(). Referenced by KNewMenu::slotNewDir(), and KonqPopupMenu::slotPopupNewDir(). |
The documentation for this class was generated from the following files: