paste.h
/* This file is part of the KDE libraries
Copyright (C) 2000-2005 David Faure <faure@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef __kio_paste_h__
#define __kio_paste_h__
#include <qstring.h>
#include <qmemarray.h>
#include <kurl.h>
class QWidget;
class QMimeSource;
// KDE4 TODO pass a parent widget to all methods that will display a message box
namespace KIO {
class Job;
class CopyJob;
KIO_EXPORT Job *pasteClipboard( const KURL& destURL, bool move = false );
KIO_EXPORT void pasteData( const KURL& destURL, const QByteArray& data );
KIO_EXPORT CopyJob *pasteDataAsync( const KURL& destURL, const QByteArray& data );
KIO_EXPORT CopyJob *pasteDataAsync( const KURL& destURL, const QByteArray& data, const QString& dialogText ); // KDE4: merge with above
KIO_EXPORT CopyJob* pasteMimeSource( QMimeSource* data, const KURL& destURL,
const QString& dialogText, QWidget* widget,
bool clipboard = false );
KIO_EXPORT_DEPRECATED bool isClipboardEmpty();
KIO_EXPORT QString pasteActionText();
}
#endif
KIO::move
KIO_EXPORT CopyJob * move(const KURL &src, const KURL &dest, bool showProgressInfo=true)
Moves a file or directory src to the given destination dest.
Definition: job.cpp:3908
KIO::pasteDataAsync
KIO_EXPORT CopyJob * pasteDataAsync(const KURL &destURL, const QByteArray &data)
Pastes the given data to the given destination URL.
Definition: paste.cpp:276
KIO::isClipboardEmpty
KIO_EXPORT_DEPRECATED bool isClipboardEmpty()
Checks whether the clipboard contains any URLs.
Definition: paste.cpp:146
KIO::pasteActionText
KIO_EXPORT QString pasteActionText()
Returns the text to use for the Paste action, when the application supports pasting files...
Definition: paste.cpp:291
KIO::pasteMimeSource
KIO_EXPORT CopyJob * pasteMimeSource(QMimeSource *data, const KURL &destURL, const QString &dialogText, QWidget *widget, bool clipboard=false)
Save the given mimesource data to the given destination URL after offering the user to choose a data ...
Definition: paste.cpp:164
KIO::pasteClipboard
KIO_EXPORT Job * pasteClipboard(const KURL &destURL, bool move=false)
Pastes the content of the clipboard to the given destination URL.
Definition: paste.cpp:210
KIO::pasteData
KIO_EXPORT void pasteData(const KURL &destURL, const QByteArray &data)
Pastes the given data to the given destination URL.
Definition: paste.cpp:259

KDE Home | KDE Accessibility Home | Description of Access Keys