#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>
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
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:
- ...
Definition at line 62 of file paste.cpp.