• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KIO

  • sources
  • kde-4.14
  • kdelibs
  • kio
  • kio
Functions
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 QByteArray chooseFormatAndUrl ( const KUrl &  u,
const QMimeData *  mimeData,
const QStringList &  formats,
const QString &  text,
const QString &  suggestedFileName,
QWidget *  widget,
bool  clipboard,
KUrl *  newUrl 
)
static

Definition at line 156 of file paste.cpp.

static bool decodeIsCutSelection ( const QMimeData *  mimeData)
static

Definition at line 43 of file paste.cpp.

static QStringList extractFormats ( const QMimeData *  mimeData)
static

Definition at line 207 of file paste.cpp.

static KUrl getNewFileName ( const KUrl &  u,
const QString &  text,
const QString &  suggestedFileName,
QWidget *  widget,
bool  delIfOverwrite 
)
static

Definition at line 78 of file paste.cpp.

static KIO::Job* pasteClipboardUrls ( const QMimeData *  mimeData,
const KUrl &  destDir,
KIO::JobFlags  flags = KIO::DefaultFlags 
)
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
mimeDatathe mimeData to paste, usually QApplication::clipboard()->mimeData()
destDirDestination directory where the items will be copied/moved.
flagsthe 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.

static KIO::CopyJob* pasteDataAsyncTo ( const KUrl &  newUrl,
const QByteArray &  _data 
)
static

Definition at line 133 of file paste.cpp.

KIO::Job* pasteMimeDataImpl ( const QMimeData *  mimeData,
const KUrl &  destUrl,
const QString &  dialogText,
QWidget *  widget,
bool  clipboard 
)

Definition at line 278 of file paste.cpp.

static KIO::Job* putDataAsyncTo ( const KUrl &  url,
const QByteArray &  data,
QWidget *  widget,
KIO::JobFlags  flags 
)
static

Definition at line 149 of file paste.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:54 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal