Diffstat (limited to 'libopie2/opiepim/backend/ocontactaccessbackend_vcard.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiepim/backend/ocontactaccessbackend_vcard.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/libopie2/opiepim/backend/ocontactaccessbackend_vcard.cpp b/libopie2/opiepim/backend/ocontactaccessbackend_vcard.cpp index 5bb21c7..f3b6d56 100644 --- a/libopie2/opiepim/backend/ocontactaccessbackend_vcard.cpp +++ b/libopie2/opiepim/backend/ocontactaccessbackend_vcard.cpp | |||
@@ -148,46 +148,36 @@ bool OPimContactAccessBackend_VCard::remove ( int uid ) | |||
148 | bool OPimContactAccessBackend_VCard::replace ( const OPimContact &contact ) | 148 | bool OPimContactAccessBackend_VCard::replace ( const OPimContact &contact ) |
149 | { | 149 | { |
150 | m_map.replace( contact.uid(), contact ); | 150 | m_map.replace( contact.uid(), contact ); |
151 | m_dirty = true; | 151 | m_dirty = true; |
152 | return true; | 152 | return true; |
153 | } | 153 | } |
154 | 154 | ||
155 | OPimContact OPimContactAccessBackend_VCard::find ( int uid ) const | 155 | OPimContact OPimContactAccessBackend_VCard::find ( int uid ) const |
156 | { | 156 | { |
157 | return m_map[uid]; | 157 | return m_map[uid]; |
158 | } | 158 | } |
159 | 159 | ||
160 | QArray<int> OPimContactAccessBackend_VCard::allRecords() const | 160 | UIDArray OPimContactAccessBackend_VCard::allRecords() const |
161 | { | 161 | { |
162 | QArray<int> ar( m_map.count() ); | 162 | UIDArray ar( m_map.count() ); |
163 | QMap<int, OPimContact>::ConstIterator it; | 163 | QMap<int, OPimContact>::ConstIterator it; |
164 | int i = 0; | 164 | int i = 0; |
165 | for ( it = m_map.begin(); it != m_map.end(); ++it ) { | 165 | for ( it = m_map.begin(); it != m_map.end(); ++it ) { |
166 | ar[i] = it.key(); | 166 | ar[i] = it.key(); |
167 | i++; | 167 | i++; |
168 | } | 168 | } |
169 | return ar; | 169 | return ar; |
170 | } | 170 | } |
171 | 171 | ||
172 | const uint OPimContactAccessBackend_VCard::querySettings() | ||
173 | { | ||
174 | return 0; // No search possible | ||
175 | } | ||
176 | |||
177 | bool OPimContactAccessBackend_VCard::hasQuerySettings (uint ) const | ||
178 | { | ||
179 | return false; // No search possible, therefore all settings invalid ;) | ||
180 | } | ||
181 | |||
182 | bool OPimContactAccessBackend_VCard::wasChangedExternally() | 172 | bool OPimContactAccessBackend_VCard::wasChangedExternally() |
183 | { | 173 | { |
184 | return false; // Don't expect concurrent access | 174 | return false; // Don't expect concurrent access |
185 | } | 175 | } |
186 | 176 | ||
187 | // *** Private stuff *** | 177 | // *** Private stuff *** |
188 | OPimContact OPimContactAccessBackend_VCard::parseVObject( VObject *obj ) | 178 | OPimContact OPimContactAccessBackend_VCard::parseVObject( VObject *obj ) |
189 | { | 179 | { |
190 | OPimContact c; | 180 | OPimContact c; |
191 | VObjectIterator it; | 181 | VObjectIterator it; |
192 | initPropIterator( &it, obj ); | 182 | initPropIterator( &it, obj ); |
193 | while( moreIteration( &it ) ) { | 183 | while( moreIteration( &it ) ) { |