libkonq
KonqMimeData Class Reference
This class provides functions for creating and decoding clipboard/drag-n-drop data of URLs. More...
#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:
-
mimeData pointer to the mimeData object to be populated. Must not be 0. cut if 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] |
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:
-
mimeData pointer to the mimeData object to be populated. Must not be 0. kdeURLs list 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), cut if 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: