KDE3Support
k3urldrag.cpp
Go to the documentation of this file.
136 bool K3URLDrag::decode( const QMimeSource *e, KUrl::List &uris, QMap<QString,QString>& metaData )
void clear()
virtual QByteArray encodedData(const char *format) const =0
static QString urlToString(const KUrl &url)
Converts a URL to a string representation suitable for dragging.
Definition: k3urldrag.cpp:251
K3URLDrag(const KUrl::List &urls, QWidget *dragSource=0)
Constructs an object to drag the list of URLs in urls.
Definition: k3urldrag.cpp:37
QByteArray toLower() const
virtual QByteArray encodedData(const char *format) const
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
MimetypeJob * mimetype(const KUrl &url, JobFlags flags=DefaultFlags)
virtual void setUris(const QList< QByteArray > &list)
QString join(const QString &separator) const
int length() const
static bool decode(const QMimeSource *e, KUrl::List &urls)
Convenience method that decodes the contents of e into a list of KUrls.
Definition: k3urldrag.cpp:93
static KUrl stringToUrl(const QByteArray &s)
Converts a string used for dragging to a URL.
Definition: k3urldrag.cpp:243
void append(const type *item)
void resize(int size)
void setExportAsText(bool exp)
By default, K3URLDrag also exports the URLs as plain text, for e.g.
Definition: k3urldrag.cpp:69
int count(const T &value) const
void append(const T &value)
QString protocol() const
bool isEmpty() const
const char * constData() const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
static K3URLDrag * newDrag(const KUrl::List &urls, QWidget *dragSource=0)
Definition: k3urldrag.cpp:77
virtual QByteArray encodedData(const char *mime) const
Definition: k3urldrag.cpp:181
iterator end()
QString path(AdjustPathOption trailing=LeaveTrailingSlash) const
iterator replace(const Key &key, const T &value)
iterator begin()
QMap< QString, QString > & metaData()
Meta-data to associate with those URLs.
Definition: k3urldrag.cpp:88
QByteArray & append(char ch)
iterator end()
QByteArray toLocal8Bit() const
KLocale * locale()
const Key key(const T &value) const
bool decode(const QMimeSource *source, Q3StrList &list)
bool isValid() const
QByteArray toLatin1() const
QString mid(int position, int n) const
typedef ConstIterator
int length() const
char * data()
QString url(AdjustPathOption trailing=LeaveTrailingSlash) const
bool isEmpty() const
bool isLocalFile() const
int size() const
virtual bool provides(const char *mimeType) const
iterator begin()
QString prettyUrl(AdjustPathOption trailing=LeaveTrailingSlash) const
QByteArray toUtf8() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.