Qt 4.8
Classes | Functions
qurl.h File Reference
#include <QtCore/qbytearray.h>
#include <QtCore/qobjectdefs.h>
#include <QtCore/qpair.h>
#include <QtCore/qstring.h>
#include <QtCore/qhash.h>

Go to the source code of this file.

Classes

class  QUrl
 The QUrl class provides a convenient interface for working with URLs. More...
 

Functions

Q_CORE_EXPORT QDataStreamoperator<< (QDataStream &, const QUrl &)
 
Q_CORE_EXPORT QDebug operator<< (QDebug, const QUrl &)
 
Q_CORE_EXPORT QDataStreamoperator>> (QDataStream &, QUrl &)
 
 Q_DECLARE_TYPEINFO (QUrl, Q_MOVABLE_TYPE)
 
uint qHash (const QUrl &url)
 

Function Documentation

◆ operator<<() [1/2]

Q_CORE_EXPORT QDataStream& operator<< ( QDataStream ,
const QUrl  
)
related

Referenced by qHash().

◆ operator<<() [2/2]

Q_CORE_EXPORT QDebug operator<< ( QDebug  ,
const QUrl  
)

Definition at line 6784 of file qurl.cpp.

6785 {
6786  d.maybeSpace() << "QUrl(" << url.toString() << ')';
6787  return d.space();
6788 }
double d
Definition: qnumeric_p.h:62

◆ operator>>()

Q_CORE_EXPORT QDataStream& operator>> ( QDataStream ,
QUrl  
)
related

Referenced by qHash().

◆ Q_DECLARE_TYPEINFO()

Q_DECLARE_TYPEINFO ( QUrl  ,
Q_MOVABLE_TYPE   
)

Referenced by qHash().

◆ qHash()

uint qHash ( const QUrl url)
related

Definition at line 285 of file qurl.h.

286 {
287  return qHash(url.toEncoded(QUrl::FormattingOption(0x100)));
288 }
FormattingOption
The formatting options define how the URL is formatted when written out as text.
Definition: qurl.h:70
QByteArray toEncoded(FormattingOptions options=None) const
Returns the encoded representation of the URL if it&#39;s valid; otherwise an empty QByteArray is returne...
Definition: qurl.cpp:5949
uint qHash(const QUrl &url)
Definition: qurl.h:285