• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdecore
 

tdecore

  • tdecore
kurldrag.h
1 /* This file is part of the KDE project
2  Copyright (C) 2000 David Faure <faure@kde.org>
3 
4  This program is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this program; see the file COPYING. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef __KURLDRAG_H
21 #define __KURLDRAG_H
22 
23 #include <tqstringlist.h>
24 #include <tqdragobject.h>
25 #include <kurl.h>
26 #include "tdelibs_export.h"
27 class TQMimeSource;
28 
29 class KURLDragPrivate;
44 class TDECORE_EXPORT KURLDrag : public TQUriDrag
45 {
46 public:
57  KURLDrag( const KURL::List &urls, TQWidget* dragSource = 0, const char * name = 0 );
68  KURLDrag( const KURL::List &urls, const TQMap<TQString, TQString>& metaData,
69  TQWidget* dragSource = 0, const char * name = 0 );
70 
71  virtual ~KURLDrag();
72 
80  void setExportAsText( bool exp );
81 
85  static KURLDrag * newDrag( const KURL::List &urls, TQWidget* dragSource = 0, const char * name = 0 ) KDE_DEPRECATED;
86 
90  static KURLDrag * newDrag( const KURL::List &urls, const TQMap<TQString, TQString>& metaData,
91  TQWidget* dragSource = 0, const char * name = 0 ) KDE_DEPRECATED;
92 
100  TQMap<TQString, TQString> &metaData() { return m_metaData; }
101 
110  static bool decode( const TQMimeSource *e, KURL::List &urls );
111 
122  static bool decode( const TQMimeSource *e, KURL::List &urls, TQMap<TQString,TQString>& metaData );
123 
128  static TQString urlToString(const KURL &url);
129 
134  static KURL stringToUrl(const TQCString &s);
135 
136 #ifdef Q_WS_QWS
137 
142  static bool decode( TQStringList const &e, KURL::List &uris );
143 #endif
144 
146  virtual const char * format( int i ) const;
148  virtual TQByteArray encodedData( const char* mime ) const;
149 
150 protected:
154  KURLDrag( const TQStrList & urls, const TQMap<TQString,TQString>& metaData,
155  TQWidget * dragSource, const char* name ) KDE_DEPRECATED;
156 
157 private:
158  void init(const KURL::List &urls);
159 
160  TQStrList m_urls;
161  TQMap<TQString,TQString> m_metaData;
162  KURLDragPrivate* d;
163 };
164 
165 #endif
KURL
Represents and parses a URL.
Definition: kurl.h:127
KURLDrag::metaData
TQMap< TQString, TQString > & metaData()
Meta-data to associate with those URLs.
Definition: kurldrag.h:100
KURL::List
KURL::List is a TQValueList that contains KURLs with a few convenience methods.
Definition: kurl.h:187
KURLDrag
This class is to be used instead of TQUriDrag when using KURL.
Definition: kurldrag.h:44

tdecore

Skip menu "tdecore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdecore

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