qtmobility/src/contacts/qcontactactiondescriptor.h
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
equal deleted inserted replaced
1:2b40d63a9c3d 4:90517678cc4f
    51 
    51 
    52 class QContactActionDescriptorPrivate;
    52 class QContactActionDescriptorPrivate;
    53 class Q_CONTACTS_EXPORT QContactActionDescriptor
    53 class Q_CONTACTS_EXPORT QContactActionDescriptor
    54 {
    54 {
    55 public:
    55 public:
    56     QContactActionDescriptor(const QString& actionName = QString(), const QString& vendorName = QString(), int vendorVersion = -1);
    56     explicit QContactActionDescriptor(const QString& actionName = QString(), const QString& vendorName = QString(), int vendorVersion = -1);
    57     QContactActionDescriptor(const QContactActionDescriptor& other);
    57     QContactActionDescriptor(const QContactActionDescriptor& other);
    58     QContactActionDescriptor& operator=(const QContactActionDescriptor& other);
    58     QContactActionDescriptor& operator=(const QContactActionDescriptor& other);
    59     ~QContactActionDescriptor();
    59     ~QContactActionDescriptor();
    60 
    60 
    61     bool isEmpty() const;
    61     bool isEmpty() const;
    62     bool operator==(const QContactActionDescriptor& other) const;
    62     bool operator==(const QContactActionDescriptor& other) const;
    63     bool operator!=(const QContactActionDescriptor& other) const;
    63     bool operator!=(const QContactActionDescriptor& other) const;
       
    64     bool operator<(const QContactActionDescriptor& other) const;
    64 
    65 
    65     void setActionName(const QString& actionName);
    66     void setActionName(const QString& actionName);
    66     void setVendorName(const QString& vendorName);
    67     void setVendorName(const QString& vendorName);
    67     void setImplementationVersion(int implementationVersion);
    68     void setImplementationVersion(int implementationVersion);
    68 
    69 
    72 
    73 
    73 private:
    74 private:
    74     QSharedDataPointer<QContactActionDescriptorPrivate> d;
    75     QSharedDataPointer<QContactActionDescriptorPrivate> d;
    75 };
    76 };
    76 
    77 
       
    78 Q_CONTACTS_EXPORT uint qHash(const QContactActionDescriptor& key);
       
    79 
    77 QTM_END_NAMESPACE
    80 QTM_END_NAMESPACE
    78 
    81 
    79 Q_DECLARE_TYPEINFO(QTM_PREPEND_NAMESPACE(QContactActionDescriptor), Q_MOVABLE_TYPE);
    82 Q_DECLARE_TYPEINFO(QTM_PREPEND_NAMESPACE(QContactActionDescriptor), Q_MOVABLE_TYPE);
    80 
    83 
    81 #endif
    84 #endif