kbookmarkdrag.h
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 <qdragobject.h>
00025
#include <kbookmark.h>
00026
00027
00028
class KBookmarkDrag :
public QUriDrag
00029 {
00030
public:
00031
static KBookmarkDrag * newDrag(
const QValueList<KBookmark> & bookmarks,
00032
QWidget * dragSource = 0,
00033
const char * name = 0 );
00034
static KBookmarkDrag * newDrag(
const KBookmark & bookmark,
00035
QWidget * dragSource = 0,
00036
const char * name = 0 );
00037
protected:
00038 KBookmarkDrag(
const QValueList<KBookmark> & bookmarks,
00039
const QStrList & urls,
00040
QWidget * dragSource,
00041
const char * name );
00042
public:
00043
virtual ~KBookmarkDrag() {}
00044
00045
virtual const char* format(
int i )
const;
00046
virtual QByteArray encodedData(
const char* mime )
const;
00047
00048
static bool canDecode(
const QMimeSource * e );
00049
static QValueList<KBookmark> decode(
const QMimeSource * e );
00050
00051
protected:
00052
QValueList<KBookmark> m_bookmarks;
00053
QDomDocument m_doc;
00054
class KBookmarkDragPrivate;
00055 KBookmarkDragPrivate * d;
00056 };
00057
#endif
This file is part of the documentation for kio Library Version 3.2.3.