KDE3Support
k3bookmarkdrag.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef K3BOOKMARKDRAG_H
00022 #define K3BOOKMARKDRAG_H
00023
00024 #include <kde3support_export.h>
00025
00026 #include <kbookmark.h>
00027 #include <Qt3Support/Q3ColorDrag>
00028 #include <Qt3Support/Q3ValueList>
00029
00030
00031 class KDE3SUPPORT_EXPORT K3BookmarkDrag : public Q3UriDrag
00032 {
00033 public:
00034 static K3BookmarkDrag * newDrag( const Q3ValueList<KBookmark> & bookmarks,
00035 QWidget * dragSource = 0,
00036 const char * name = 0 );
00037 static K3BookmarkDrag * newDrag( const KBookmark & bookmark,
00038 QWidget * dragSource = 0,
00039 const char * name = 0 );
00040 protected:
00041 K3BookmarkDrag( const Q3ValueList<KBookmark> & bookmarks,
00042 const Q3StrList & urls,
00043 QWidget * dragSource,
00044 const char * name );
00045 public:
00046 virtual ~K3BookmarkDrag() {}
00047
00048 virtual const char* format( int i ) const;
00049 virtual QByteArray encodedData( const char* mime ) const;
00050
00051 static bool canDecode( const QMimeSource * e );
00052 static Q3ValueList<KBookmark> decode( const QMimeSource * e );
00053
00054 protected:
00055 Q3ValueList<KBookmark> m_bookmarks;
00056 QDomDocument m_doc;
00057 };
00058 #endif