22 #include <tqdragobject.h>
23 #include <kbookmark.h>
26 class TDEIO_EXPORT KBookmarkDrag :
public TQUriDrag
29 static KBookmarkDrag * newDrag(
const TQValueList<KBookmark> & bookmarks,
30 TQWidget * dragSource = 0,
31 const char * name = 0 );
32 static KBookmarkDrag * newDrag(
const KBookmark & bookmark,
33 TQWidget * dragSource = 0,
34 const char * name = 0 );
36 KBookmarkDrag(
const TQValueList<KBookmark> & bookmarks,
37 const TQStrList & urls,
38 TQWidget * dragSource,
41 virtual ~KBookmarkDrag() {}
43 virtual const char* format(
int i )
const;
44 virtual TQByteArray encodedData(
const char* mime )
const;
46 static bool canDecode(
const TQMimeSource * e );
47 static TQValueList<KBookmark> decode(
const TQMimeSource * e );
50 TQValueList<KBookmark> m_bookmarks;
52 class KBookmarkDragPrivate;
53 KBookmarkDragPrivate * d;