qtmobility/src/contacts/qcontactid.h
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 11 06b8e2af4411
equal deleted inserted replaced
1:2b40d63a9c3d 4:90517678cc4f
    47 
    47 
    48 #include "qtcontactsglobal.h"
    48 #include "qtcontactsglobal.h"
    49 
    49 
    50 QTM_BEGIN_NAMESPACE
    50 QTM_BEGIN_NAMESPACE
    51 
    51 
       
    52 typedef quint32 QContactLocalId;
       
    53 
    52 class QContactIdPrivate;
    54 class QContactIdPrivate;
    53 class Q_CONTACTS_EXPORT QContactId
    55 class Q_CONTACTS_EXPORT QContactId
    54 {
    56 {
    55 public:
    57 public:
    56     QContactId();
    58     QContactId();
    59     QContactId(const QContactId& other);
    61     QContactId(const QContactId& other);
    60     QContactId& operator=(const QContactId& other);
    62     QContactId& operator=(const QContactId& other);
    61 
    63 
    62     bool operator==(const QContactId& other) const;
    64     bool operator==(const QContactId& other) const;
    63     bool operator!=(const QContactId& other) const;
    65     bool operator!=(const QContactId& other) const;
       
    66     bool operator<(const QContactId& other) const;
    64 
    67 
    65     QString managerUri() const;
    68     QString managerUri() const;
    66     QContactLocalId localId() const;
    69     QContactLocalId localId() const;
    67 
    70 
    68     void setManagerUri(const QString& uri);
    71     void setManagerUri(const QString& uri);
    70 
    73 
    71 private:
    74 private:
    72     QSharedDataPointer<QContactIdPrivate> d;
    75     QSharedDataPointer<QContactIdPrivate> d;
    73 };
    76 };
    74 
    77 
       
    78 Q_CONTACTS_EXPORT uint qHash(const QContactId& key);
       
    79 #ifndef QT_NO_DEBUG_STREAM
       
    80 Q_CONTACTS_EXPORT QDebug operator<<(QDebug dbg, const QContactId& id);
       
    81 #endif
       
    82 
    75 QTM_END_NAMESPACE
    83 QTM_END_NAMESPACE
    76 
    84 
    77 Q_DECLARE_TYPEINFO(QTM_PREPEND_NAMESPACE(QContactId), Q_MOVABLE_TYPE);
    85 Q_DECLARE_TYPEINFO(QTM_PREPEND_NAMESPACE(QContactId), Q_MOVABLE_TYPE);
    78 
    86 
    79 
    87