• 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
paste.h
Go to the documentation of this file.
1 /* This file is part of the KDE libraries
2  Copyright (C) 2000-2005 David Faure <faure@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2 as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 */
18 
19 #ifndef KIO_PASTE_H
20 #define KIO_PASTE_H
21 
22 #include <kio/kio_export.h>
23 #include <QtCore/QString>
24 #include <kurl.h>
25 class QWidget;
26 class QMimeSource;
27 
28 namespace KIO {
29  class Job;
30  class CopyJob;
31 
44  KIO_EXPORT Job *pasteClipboard( const KUrl& destURL, QWidget* widget, bool move = false );
45 
60  KIO_EXPORT void pasteData( const KUrl& destURL, const QByteArray& data, QWidget* widget );
61 
62 
77  KIO_EXPORT CopyJob *pasteDataAsync( const KUrl& destURL, const QByteArray& data, QWidget *widget, const QString& dialogText = QString() );
78 
79 
96  KIO_EXPORT Job* pasteMimeData(const QMimeData* data, const KUrl& destUrl,
97  const QString& dialogText, QWidget* widget);
98 
105  KIO_EXPORT_DEPRECATED CopyJob* pasteMimeSource( const QMimeData* data, const KUrl& destURL,
106  const QString& dialogText, QWidget* widget,
107  bool clipboard = false );
108 
109 
115  KIO_EXPORT bool canPasteMimeSource(const QMimeData* data);
116 
123  KIO_EXPORT QString pasteActionText();
124 }
125 
126 #endif
KIO::canPasteMimeSource
bool canPasteMimeSource(const QMimeData *data)
Returns true if pasteMimeSource finds any interesting format in data.
Definition: paste.cpp:273
kio_export.h
QWidget
kurl.h
QByteArray
KIO::pasteClipboard
Job * pasteClipboard(const KUrl &destURL, QWidget *widget, bool move=false)
Pastes the content of the clipboard to the given destination URL.
Definition: paste.cpp:315
KIO::pasteMimeData
Job * pasteMimeData(const QMimeData *data, const KUrl &destUrl, const QString &dialogText, QWidget *widget)
Save the given mime data to the given destination URL after offering the user to choose a data format...
Definition: paste.cpp:383
KIO::pasteData
void pasteData(const KUrl &destURL, const QByteArray &data, QWidget *widget)
Pastes the given data to the given destination URL.
Definition: paste.cpp:341
QMimeData
KUrl
KIO::pasteActionText
QString pasteActionText()
Returns the text to use for the Paste action, when the application supports pasting files...
Definition: paste.cpp:366
QString
KIO::move
CopyJob * move(const KUrl &src, const KUrl &dest, JobFlags flags=DefaultFlags)
Moves a file or directory src to the given destination dest.
Definition: copyjob.cpp:2186
KIO::pasteMimeSource
CopyJob * pasteMimeSource(const QMimeData *data, const KUrl &destURL, const QString &dialogText, QWidget *widget, bool clipboard=false)
Definition: paste.cpp:230
KIO::pasteDataAsync
CopyJob * pasteDataAsync(const KUrl &destURL, const QByteArray &data, QWidget *widget, const QString &dialogText=QString())
Pastes the given data to the given destination URL.
Definition: paste.cpp:352
QMimeSource
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:53 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