kbookmarkdrag.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __kebdrag_h
00020 #define __kebdrag_h
00021
00022 #include <qdragobject.h>
00023 #include <kbookmark.h>
00024
00025
00026 class KBookmarkDrag : public QUriDrag
00027 {
00028 public:
00029 static KBookmarkDrag * newDrag( const QValueList<KBookmark> & bookmarks,
00030 QWidget * dragSource = 0,
00031 const char * name = 0 );
00032 static KBookmarkDrag * newDrag( const KBookmark & bookmark,
00033 QWidget * dragSource = 0,
00034 const char * name = 0 );
00035 protected:
00036 KBookmarkDrag( const QValueList<KBookmark> & bookmarks,
00037 const QStrList & urls,
00038 QWidget * dragSource,
00039 const char * name );
00040 public:
00041 virtual ~KBookmarkDrag() {}
00042
00043 virtual const char* format( int i ) const;
00044 virtual QByteArray encodedData( const char* mime ) const;
00045
00046 static bool canDecode( const QMimeSource * e );
00047 static QValueList<KBookmark> decode( const QMimeSource * e );
00048
00049 protected:
00050 QValueList<KBookmark> m_bookmarks;
00051 QDomDocument m_doc;
00052 class KBookmarkDragPrivate;
00053 KBookmarkDragPrivate * d;
00054 };
00055 #endif
This file is part of the documentation for kdelibs Version 3.1.4.