kbookmarkdrag.h Source File (kio Library)

| # kio Library API Documentation
Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Source Files

# kbookmarkdrag.h

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