Qt 4.8
Classes | Functions
qdbusextratypes.h File Reference
#include <QtCore/qvariant.h>
#include <QtCore/qstring.h>
#include <QtDBus/qdbusmacros.h>

Go to the source code of this file.

Classes

class  QDBusObjectPath
 The QDBusObjectPath class enables the programmer to identify the OBJECT_PATH type provided by the D-Bus typesystem. More...
 
class  QDBusSignature
 The QDBusSignature class enables the programmer to identify the SIGNATURE type provided by the D-Bus typesystem. More...
 
class  QDBusVariant
 The QDBusVariant class enables the programmer to identify the variant type provided by the D-Bus typesystem. More...
 

Functions

bool operator!= (const QDBusObjectPath &lhs, const QDBusObjectPath &rhs)
 
bool operator!= (const QDBusSignature &lhs, const QDBusSignature &rhs)
 
bool operator< (const QDBusObjectPath &lhs, const QDBusObjectPath &rhs)
 
bool operator< (const QDBusSignature &lhs, const QDBusSignature &rhs)
 
bool operator== (const QDBusObjectPath &lhs, const QDBusObjectPath &rhs)
 
bool operator== (const QDBusSignature &lhs, const QDBusSignature &rhs)
 
bool operator== (const QDBusVariant &v1, const QDBusVariant &v2)
 
Q_CORE_EXPORT uint qHash (const QString &key)
 
uint qHash (const QDBusObjectPath &objectPath)
 
uint qHash (const QDBusSignature &signature)
 

Function Documentation

◆ operator!=() [1/2]

bool operator!= ( const QDBusObjectPath lhs,
const QDBusObjectPath rhs 
)
inline

Definition at line 102 of file qdbusextratypes.h.

103 { return lhs.path() != rhs.path(); }
QString path() const
Returns this object path.

◆ operator!=() [2/2]

bool operator!= ( const QDBusSignature lhs,
const QDBusSignature rhs 
)
inline

Definition at line 152 of file qdbusextratypes.h.

153 { return lhs.signature() != rhs.signature(); }
QString signature() const
Returns this signature.

◆ operator<() [1/2]

bool operator< ( const QDBusObjectPath lhs,
const QDBusObjectPath rhs 
)
inline

Definition at line 105 of file qdbusextratypes.h.

106 { return lhs.path() < rhs.path(); }
QString path() const
Returns this object path.

◆ operator<() [2/2]

bool operator< ( const QDBusSignature lhs,
const QDBusSignature rhs 
)
inline

Definition at line 155 of file qdbusextratypes.h.

156 { return lhs.signature() < rhs.signature(); }
QString signature() const
Returns this signature.

◆ operator==() [1/3]

bool operator== ( const QDBusObjectPath lhs,
const QDBusObjectPath rhs 
)
inline

Definition at line 99 of file qdbusextratypes.h.

100 { return lhs.path() == rhs.path(); }
QString path() const
Returns this object path.

◆ operator==() [2/3]

bool operator== ( const QDBusSignature lhs,
const QDBusSignature rhs 
)
inline

Definition at line 149 of file qdbusextratypes.h.

150 { return lhs.signature() == rhs.signature(); }
QString signature() const
Returns this signature.

◆ operator==() [3/3]

bool operator== ( const QDBusVariant v1,
const QDBusVariant v2 
)
inline

Definition at line 179 of file qdbusextratypes.h.

180 { return v1.variant() == v2.variant(); }
QVariant variant() const
Returns this D-Bus variant as a QVariant object.

◆ qHash() [1/3]

Q_CORE_EXPORT uint qHash ( const QString key)
related

Definition at line 97 of file qhash.cpp.

Referenced by qHash().

98 {
99  return hash(key.unicode(), key.size());
100 }
static uint hash(const uchar *p, int n)
Definition: qhash.cpp:68
int size() const
Returns the number of characters in this string.
Definition: qstring.h:102
const QChar * unicode() const
Returns a &#39;\0&#39;-terminated Unicode representation of the string.
Definition: qstring.h:706

◆ qHash() [2/3]

uint qHash ( const QDBusObjectPath objectPath)
inline

Definition at line 108 of file qdbusextratypes.h.

109 { return qHash(objectPath.path()); }
QString path() const
Returns this object path.
uint qHash(const QUrl &url)
Definition: qurl.h:285

◆ qHash() [3/3]

uint qHash ( const QDBusSignature signature)
inline

Definition at line 158 of file qdbusextratypes.h.

159 { return qHash(signature.signature()); }
uint qHash(const QUrl &url)
Definition: qurl.h:285
QString signature() const
Returns this signature.