#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.
|
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) |
◆ chooseFormatAndUrl()
QByteArray chooseFormatAndUrl |
( |
const KUrl & | u, |
|
|
const QMimeData * | mimeData, |
|
|
const QStringList & | formats, |
|
|
const QString & | text, |
|
|
const QString & | suggestedFileName, |
|
|
QWidget * | widget, |
|
|
bool | clipboard, |
|
|
KUrl * | newUrl ) |
|
static |
◆ decodeIsCutSelection()
bool decodeIsCutSelection |
( |
const QMimeData * | mimeData | ) |
|
|
static |
◆ extractFormats()
QStringList extractFormats |
( |
const QMimeData * | mimeData | ) |
|
|
static |
◆ getNewFileName()
KUrl getNewFileName |
( |
const KUrl & | u, |
|
|
const QString & | text, |
|
|
const QString & | suggestedFileName, |
|
|
QWidget * | widget, |
|
|
bool | delIfOverwrite ) |
|
static |
◆ pasteClipboardUrls()
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.
◆ pasteDataAsyncTo()
KIO::CopyJob * pasteDataAsyncTo |
( |
const KUrl & | newUrl, |
|
|
const QByteArray & | _data ) |
|
static |
◆ pasteMimeDataImpl()
KIO::Job * pasteMimeDataImpl |
( |
const QMimeData * | mimeData, |
|
|
const KUrl & | destUrl, |
|
|
const QString & | dialogText, |
|
|
QWidget * | widget, |
|
|
bool | clipboard ) |
◆ putDataAsyncTo()
KIO::Job * putDataAsyncTo |
( |
const KUrl & | url, |
|
|
const QByteArray & | data, |
|
|
QWidget * | widget, |
|
|
KIO::JobFlags | flags ) |
|
static |
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by
doxygen 1.14.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.