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

libkonq

Static Public Member Functions | List of all members
KonqMimeData Class Reference

#include <konqmimedata.h>

Static Public Member Functions

static void addIsCutSelection (QMimeData *mimeData, bool cut)
 
static bool decodeIsCutSelection (const QMimeData *mimeData)
 
static void populateMimeData (QMimeData *mimeData, const KUrl::List &kdeURLs, const KUrl::List &mostLocalURLs, bool cut=false)
 

Detailed Description

This class provides functions for creating and decoding clipboard/drag-n-drop data of URLs.

In particular it ships: (kde) urls, most-local urls, and an "is cut" boolean.

Definition at line 31 of file konqmimedata.h.

Member Function Documentation

void KonqMimeData::addIsCutSelection ( QMimeData *  mimeData,
bool  cut 
)
static

Add the information whether the files were cut, into the mimedata.

Parameters
mimeDatapointer to the mimeData object to be populated. Must not be 0.
cutif true, the user selected "cut" (saved as application/x-kde-cutselection in the mimedata).
Since
4.2

Definition at line 61 of file konqmimedata.cpp.

bool KonqMimeData::decodeIsCutSelection ( const QMimeData *  mimeData)
static
Returns
true if the urls in mimeData were cut

Definition at line 49 of file konqmimedata.cpp.

void KonqMimeData::populateMimeData ( QMimeData *  mimeData,
const KUrl::List &  kdeURLs,
const KUrl::List &  mostLocalURLs,
bool  cut = false 
)
static

Populate a QMimeData with urls, and whether they were cut or copied.

Parameters
mimeDatapointer to the mimeData object to be populated. Must not be 0.
kdeURLslist of urls (which can include kde-specific protocols). This list can be empty if only local urls are being used anyway.
mostLocalURLs"most local urls" (which try to resolve those to file:/ where possible),
cutif true, the user selected "cut" (saved as application/x-kde-cutselection in the mimedata).

Definition at line 24 of file konqmimedata.cpp.


The documentation for this class was generated from the following files:
  • konqmimedata.h
  • konqmimedata.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkonq

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

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Applications
  •   Libraries
  •     libkonq
  • Konsole

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