• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kio/bookmarks
 

kio/bookmarks

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., 51 Franklin Street, Fifth Floor,
00018    Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef __kebdrag_h
00022 #define __kebdrag_h
00023 
00024 #include <tqdragobject.h>
00025 #include <kbookmark.h>
00026 
00027 // Clipboard/dnd data : URLs + XML for bookmarks
00028 class KIO_EXPORT KBookmarkDrag : public TQUriDrag
00029 {
00030 public:
00031     static KBookmarkDrag * newDrag( const TQValueList<KBookmark> & bookmarks,
00032                                     TQWidget * dragSource = 0,
00033                                     const char * name = 0 );
00034     static KBookmarkDrag * newDrag( const KBookmark & bookmark,
00035                                     TQWidget * dragSource = 0,
00036                                     const char * name = 0 );
00037 protected:
00038     KBookmarkDrag( const TQValueList<KBookmark> & bookmarks,
00039                    const TQStrList & urls,
00040                    TQWidget * dragSource,
00041                    const char * name );
00042 public:
00043     virtual ~KBookmarkDrag() {}
00044 
00045     virtual const char* format( int i ) const;
00046     virtual TQByteArray encodedData( const char* mime ) const;
00047 
00048     static bool canDecode( const TQMimeSource * e );
00049     static TQValueList<KBookmark> decode( const TQMimeSource * e );
00050 
00051 protected:
00052     TQValueList<KBookmark> m_bookmarks;
00053     TQDomDocument m_doc;
00054     class KBookmarkDragPrivate;
00055     KBookmarkDragPrivate * d;
00056 };
00057 #endif

kio/bookmarks

Skip menu "kio/bookmarks"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kio/bookmarks

Skip menu "kio/bookmarks"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kio/bookmarks by doxygen 1.7.6.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |