23 #include <tqstringlist.h>
24 #include <tqdragobject.h>
26 #include "tdelibs_export.h"
29 class KURLDragPrivate;
44 class TDECORE_EXPORT
KURLDrag :
public TQUriDrag
69 TQWidget* dragSource = 0,
const char * name = 0 );
80 void setExportAsText(
bool exp );
85 static KURLDrag * newDrag(
const KURL::List &urls, TQWidget* dragSource = 0,
const char * name = 0 ) TDE_DEPRECATED;
90 static KURLDrag * newDrag(
const KURL::List &urls,
const TQMap<TQString, TQString>& metaData,
91 TQWidget* dragSource = 0,
const char * name = 0 ) TDE_DEPRECATED;
100 TQMap<TQString, TQString> &
metaData() {
return m_metaData; }
110 static bool decode(
const TQMimeSource *e,
KURL::List &urls );
122 static bool decode(
const TQMimeSource *e,
KURL::List &urls, TQMap<TQString,TQString>& metaData );
128 static TQString urlToString(
const KURL &url);
134 static KURL stringToUrl(
const TQCString &s);
142 static bool decode( TQStringList
const &e,
KURL::List &uris );
146 virtual const char * format(
int i )
const;
148 virtual TQByteArray encodedData(
const char* mime )
const;
154 KURLDrag(
const TQStrList & urls,
const TQMap<TQString,TQString>& metaData,
155 TQWidget * dragSource,
const char* name ) TDE_DEPRECATED;
161 TQMap<TQString,TQString> m_metaData;
This class is to be used instead of TQUriDrag when using KURL.
TQMap< TQString, TQString > & metaData()
Meta-data to associate with those URLs.
KURL::List is a TQValueList that contains KURLs with a few convenience methods.
Represents and parses a URL.