author | eilers <eilers> | 2003-05-09 08:40:42 (UTC) |
---|---|---|
committer | eilers <eilers> | 2003-05-09 08:40:42 (UTC) |
commit | fd1f8bdfc8bad5a0344468118c66c6afe3044fde (patch) (unidiff) | |
tree | 58f18282117f9b524c13221f6a54c7bbc94a5827 /core/pim/addressbook/abview.cpp | |
parent | a82928a004882e9aba652061fc6ecffb85d403cf (diff) | |
download | opie-fd1f8bdfc8bad5a0344468118c66c6afe3044fde.zip opie-fd1f8bdfc8bad5a0344468118c66c6afe3044fde.tar.gz opie-fd1f8bdfc8bad5a0344468118c66c6afe3044fde.tar.bz2 |
Added two QCop functions for OSearch:
editUid(int), showUid(int)..
Diffstat (limited to 'core/pim/addressbook/abview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/addressbook/abview.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/pim/addressbook/abview.cpp b/core/pim/addressbook/abview.cpp index b89b794..d3ca783 100644 --- a/core/pim/addressbook/abview.cpp +++ b/core/pim/addressbook/abview.cpp | |||
@@ -275,48 +275,55 @@ void AbView::showPersonal( bool personal ) | |||
275 | m_contactdb = new OContactAccess ( "addressbook", QString::null , vcard_backend, true ); | 275 | m_contactdb = new OContactAccess ( "addressbook", QString::null , vcard_backend, true ); |
276 | 276 | ||
277 | m_inPersonal = true; | 277 | m_inPersonal = true; |
278 | m_curr_View = CardView; | 278 | m_curr_View = CardView; |
279 | 279 | ||
280 | }else{ | 280 | }else{ |
281 | 281 | ||
282 | if ( !m_inPersonal ) | 282 | if ( !m_inPersonal ) |
283 | return; | 283 | return; |
284 | 284 | ||
285 | // Remove vCard Backend and restore default | 285 | // Remove vCard Backend and restore default |
286 | m_contactdb->save(); | 286 | m_contactdb->save(); |
287 | delete m_contactdb; | 287 | delete m_contactdb; |
288 | 288 | ||
289 | m_contactdb = m_storedDB; | 289 | m_contactdb = m_storedDB; |
290 | m_storedDB = 0l; | 290 | m_storedDB = 0l; |
291 | 291 | ||
292 | m_curr_View = TableView; | 292 | m_curr_View = TableView; |
293 | m_inPersonal = false; | 293 | m_inPersonal = false; |
294 | 294 | ||
295 | } | 295 | } |
296 | load(); | 296 | load(); |
297 | } | 297 | } |
298 | 298 | ||
299 | void AbView::setCurrentUid( int uid ){ | ||
300 | |||
301 | m_curr_Contact = uid; | ||
302 | updateView( true ); //true: Don't modificate the UID ! | ||
303 | } | ||
304 | |||
305 | |||
299 | QStringList AbView::categories() | 306 | QStringList AbView::categories() |
300 | { | 307 | { |
301 | mCat.load( categoryFileName() ); | 308 | mCat.load( categoryFileName() ); |
302 | QStringList categoryList = mCat.labels( "Contacts" ); | 309 | QStringList categoryList = mCat.labels( "Contacts" ); |
303 | return categoryList; | 310 | return categoryList; |
304 | } | 311 | } |
305 | 312 | ||
306 | // BEGIN: Slots | 313 | // BEGIN: Slots |
307 | void AbView::slotDoFind( const QString &str, bool caseSensitive, bool useRegExp, | 314 | void AbView::slotDoFind( const QString &str, bool caseSensitive, bool useRegExp, |
308 | bool , QString cat ) | 315 | bool , QString cat ) |
309 | { | 316 | { |
310 | //qWarning( "void AbView::slotDoFind" ); | 317 | //qWarning( "void AbView::slotDoFind" ); |
311 | 318 | ||
312 | // We reloading the data: Deselect Letterpicker | 319 | // We reloading the data: Deselect Letterpicker |
313 | emit signalClearLetterPicker(); | 320 | emit signalClearLetterPicker(); |
314 | 321 | ||
315 | // Use the current Category if nothing else selected | 322 | // Use the current Category if nothing else selected |
316 | int category = 0; | 323 | int category = 0; |
317 | 324 | ||
318 | if ( cat.isEmpty() ) | 325 | if ( cat.isEmpty() ) |
319 | category = m_curr_category; | 326 | category = m_curr_category; |
320 | else{ | 327 | else{ |
321 | category = mCat.id("Contacts", cat ); | 328 | category = mCat.id("Contacts", cat ); |
322 | } | 329 | } |