# kio Library API Documentation

Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Namespaces | Source Files

# kbookmarkdrag.h

    00001 //  -*- c-basic-offset:4; indent-tabs-mode:nil -*-
    00002 // vim: set ts=4 sts=4 sw=4 et:
    00003 /* This file is part of the KDE libraries
    00004    Copyright (C) 2000 David Faure <faure@kde.org>
    00005
    00006    This library is free software; you can redistribute it and/or
    00007    modify it under the terms of the GNU Library General Public
    00008    License version 2 as published by the Free Software Foundation.
    00009
    00010    This library is distributed in the hope that it will be useful,
    00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
    00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00013    Library General Public License for more details.
    00014
    00015    You should have received a copy of the GNU Library General Public License
    00016    along with this library; see the file COPYING.LIB.  If not, write to
    00017    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    00018    Boston, MA 02111-1307, USA.
    00019 */
    00020
    00021 #ifndef __kebdrag_h
    00022 #define __kebdrag_h
    00023
    00024 #include <qdragobject.h>
    00025 #include <kbookmark.h>
    00026
    00027 // Clipboard/dnd data : URLs + XML for bookmarks
    00028 class KIO_EXPORT 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.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Jun 11 20:23:55 2005 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003