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

tdeio/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 TDEIO_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

tdeio/bookmarks

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

tdeio/bookmarks

Skip menu "tdeio/bookmarks"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeio/bookmarks by doxygen 1.7.1
This website is maintained by Timothy Pearson.