KIO
#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()
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 |
◆ decodeIsCutSelection()
static bool decodeIsCutSelection |
( |
const QMimeData * |
mimeData | ) |
|
|
static |
◆ extractFormats()
static QStringList extractFormats |
( |
const QMimeData * |
mimeData | ) |
|
|
static |
◆ getNewFileName()
static 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()
static 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()
static 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-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by
doxygen 1.9.6 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.