00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __kebdrag_h
00022 #define __kebdrag_h
00023
00024 #include <tqdragobject.h>
00025 #include <kbookmark.h>
00026
00027
00028 class TDEIO_EXPORT KBookmarkDrag : public TQUriDrag
00029 {
00030 public:
00031 static KBookmarkDrag * newDrag( const TQValueList<KBookmark> & bookmarks,
00032 TQWidget * dragSource = 0,
00033 const char * name = 0 );
00034 static KBookmarkDrag * newDrag( const KBookmark & bookmark,
00035 TQWidget * dragSource = 0,
00036 const char * name = 0 );
00037 protected:
00038 KBookmarkDrag( const TQValueList<KBookmark> & bookmarks,
00039 const TQStrList & urls,
00040 TQWidget * dragSource,
00041 const char * name );
00042 public:
00043 virtual ~KBookmarkDrag() {}
00044
00045 virtual const char* format( int i ) const;
00046 virtual TQByteArray encodedData( const char* mime ) const;
00047
00048 static bool canDecode( const TQMimeSource * e );
00049 static TQValueList<KBookmark> decode( const TQMimeSource * e );
00050
00051 protected:
00052 TQValueList<KBookmark> m_bookmarks;
00053 TQDomDocument m_doc;
00054 class KBookmarkDragPrivate;
00055 KBookmarkDragPrivate * d;
00056 };
00057 #endif