51 a contacts store. |
51 a contacts store. |
52 |
52 |
53 For a QContactDetailDefinitionRemoveRequest, the resultsUpdated() signal will be emitted when |
53 For a QContactDetailDefinitionRemoveRequest, the resultsUpdated() signal will be emitted when |
54 the individual item errors (which may be retrieved by calling errorMap()) are updated, or if the overall |
54 the individual item errors (which may be retrieved by calling errorMap()) are updated, or if the overall |
55 operation error (which may be retrieved by calling error()) is updated. |
55 operation error (which may be retrieved by calling error()) is updated. |
|
56 |
|
57 Please see the class documentation of QContactAbstractRequest for more information about |
|
58 the usage of request classes and ownership semantics. |
56 |
59 |
57 \ingroup contacts-requests |
60 \ingroup contacts-requests |
58 */ |
61 */ |
59 |
62 |
60 /*! Constructs a new detail definition remove request whose parent is the specified \a parent */ |
63 /*! Constructs a new detail definition remove request whose parent is the specified \a parent */ |
88 \sa setContactType() |
92 \sa setContactType() |
89 */ |
93 */ |
90 void QContactDetailDefinitionRemoveRequest::setDefinitionNames(const QStringList& names) |
94 void QContactDetailDefinitionRemoveRequest::setDefinitionNames(const QStringList& names) |
91 { |
95 { |
92 Q_D(QContactDetailDefinitionRemoveRequest); |
96 Q_D(QContactDetailDefinitionRemoveRequest); |
|
97 QMutexLocker ml(&d->m_mutex); |
93 d->m_names = names; |
98 d->m_names = names; |
94 } |
99 } |
95 |
100 |
96 /*! Returns the list of names of the detail definitions that will be removed from the manager */ |
101 /*! Returns the list of names of the detail definitions that will be removed from the manager */ |
97 QStringList QContactDetailDefinitionRemoveRequest::definitionNames() const |
102 QStringList QContactDetailDefinitionRemoveRequest::definitionNames() const |
98 { |
103 { |
99 Q_D(const QContactDetailDefinitionRemoveRequest); |
104 Q_D(const QContactDetailDefinitionRemoveRequest); |
|
105 QMutexLocker ml(&d->m_mutex); |
100 return d->m_names; |
106 return d->m_names; |
101 } |
107 } |
102 |
108 |
103 /*! |
109 /*! |
104 Sets the type of contact for which detail definitions should be removed to \a contactType |
110 Sets the type of contact for which detail definitions should be removed to \a contactType |
105 */ |
111 */ |
106 void QContactDetailDefinitionRemoveRequest::setContactType(const QString& contactType) |
112 void QContactDetailDefinitionRemoveRequest::setContactType(const QString& contactType) |
107 { |
113 { |
108 Q_D(QContactDetailDefinitionRemoveRequest); |
114 Q_D(QContactDetailDefinitionRemoveRequest); |
|
115 QMutexLocker ml(&d->m_mutex); |
109 d->m_contactType = contactType; |
116 d->m_contactType = contactType; |
110 } |
117 } |
111 |
118 |
112 /*! Returns the type of contact for which detail definitions will be removed */ |
119 /*! Returns the type of contact for which detail definitions will be removed */ |
113 QString QContactDetailDefinitionRemoveRequest::contactType() const |
120 QString QContactDetailDefinitionRemoveRequest::contactType() const |
114 { |
121 { |
115 Q_D(const QContactDetailDefinitionRemoveRequest); |
122 Q_D(const QContactDetailDefinitionRemoveRequest); |
|
123 QMutexLocker ml(&d->m_mutex); |
116 return d->m_contactType; |
124 return d->m_contactType; |
117 } |
125 } |
118 |
126 |
119 /*! Returns the map of input name list indices to errors which occurred */ |
127 /*! Returns the map of input name list indices to errors which occurred */ |
120 QMap<int, QContactManager::Error> QContactDetailDefinitionRemoveRequest::errorMap() const |
128 QMap<int, QContactManager::Error> QContactDetailDefinitionRemoveRequest::errorMap() const |
121 { |
129 { |
122 Q_D(const QContactDetailDefinitionRemoveRequest); |
130 Q_D(const QContactDetailDefinitionRemoveRequest); |
|
131 QMutexLocker ml(&d->m_mutex); |
123 return d->m_errors; |
132 return d->m_errors; |
124 } |
133 } |
125 |
134 |
126 #include "moc_qcontactdetaildefinitionremoverequest.cpp" |
135 #include "moc_qcontactdetaildefinitionremoverequest.cpp" |
127 |
136 |