KIO
paste.cpp File Reference
#include "paste.h"
#include "pastedialog.h"
#include "kio/job.h"
#include "kio/copyjob.h"
#include "kio/deletejob.h"
#include "kio/global.h"
#include "kio/netaccess.h"
#include "kio/renamedialog.h"
#include "kio/kprotocolmanager.h"
#include "jobuidelegate.h"
#include <kurl.h>
#include <kdebug.h>
#include <klocale.h>
#include <kinputdialog.h>
#include <kmessagebox.h>
#include <kmimetype.h>
#include <ktemporaryfile.h>
#include <QtGui/QApplication>
#include <QtGui/QClipboard>
#include <QMimeData>
Include dependency graph for paste.cpp:
Go to the source code of this file.
Functions | |
static QByteArray | chooseFormatAndUrl (const KUrl &u, const QMimeData *mimeData, const QStringList &formats, const QString &text, const QString &suggestedFileName, QWidget *widget, bool clipboard, KUrl *newUrl) |
static bool | decodeIsCutSelection (const QMimeData *mimeData) |
static QStringList | extractFormats (const QMimeData *mimeData) |
static KUrl | getNewFileName (const KUrl &u, const QString &text, const QString &suggestedFileName, QWidget *widget, bool delIfOverwrite) |
static KIO::Job * | pasteClipboardUrls (const QMimeData *mimeData, const KUrl &destDir, KIO::JobFlags flags=KIO::DefaultFlags) |
static KIO::CopyJob * | pasteDataAsyncTo (const KUrl &newUrl, const QByteArray &_data) |
KIO::Job * | pasteMimeDataImpl (const QMimeData *mimeData, const KUrl &destUrl, const QString &dialogText, QWidget *widget, bool clipboard) |
static KIO::Job * | putDataAsyncTo (const KUrl &url, const QByteArray &data, QWidget *widget, KIO::JobFlags flags) |
Function Documentation
|
static |
|
static |
|
static |
Pastes URLs from the clipboard.
This results in a copy or move job, depending on whether the user has copied or cut the items.
- Parameters
-
mimeData the mimeData to paste, usually QApplication::clipboard()->mimeData() destDir Destination directory where the items will be copied/moved. flags the flags are passed to KIO::copy or KIO::move.
- Returns
- the copy or move job handling the operation, or 0 if there is nothing to do
- Since
- ...
|
static |
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.