equal
deleted
inserted
replaced
40 |
40 |
41 const int Latin1CharSetMIB = 4; |
41 const int Latin1CharSetMIB = 4; |
42 |
42 |
43 CntServices::CntServices() : |
43 CntServices::CntServices() : |
44 mViewManager(NULL), |
44 mViewManager(NULL), |
45 mCurrentProvider(NULL), |
45 mCurrentProvider(NULL) |
46 mIsQuittable(true) |
|
47 { |
46 { |
48 CNT_ENTRY |
47 CNT_ENTRY |
49 |
48 |
50 // Definition names supported in symbian back-end |
49 // Definition names supported in symbian back-end |
51 m_definitionNames << QContactName::DefinitionName; |
50 m_definitionNames << QContactName::DefinitionName; |
409 params.insert(ESelectedGroupContact, var); |
408 params.insert(ESelectedGroupContact, var); |
410 mViewManager->changeView( params ); |
409 mViewManager->changeView( params ); |
411 CNT_EXIT |
410 CNT_EXIT |
412 } |
411 } |
413 |
412 |
414 void CntServices::setQuittable(bool quittable) |
|
415 { |
|
416 mIsQuittable = quittable; |
|
417 } |
|
418 |
|
419 void CntServices::quitApp() |
413 void CntServices::quitApp() |
420 { |
414 { |
421 CNT_ENTRY |
415 CNT_ENTRY |
422 |
416 |
423 // Only embedded applications should be exited once a client |
417 qApp->quit(); |
424 // disconnects. At the moments QtHighWay has unresolved issues |
418 |
425 // when closing non-embedded applications. Error ou1cimx1#472852 |
|
426 // has more info |
|
427 if ( mIsQuittable ) |
|
428 { |
|
429 qApp->quit(); |
|
430 } |
|
431 CNT_EXIT |
419 CNT_EXIT |
432 } |
420 } |
433 |
421 |
434 void CntServices::removeNotSupportedDetails(QContact& contact) |
422 void CntServices::removeNotSupportedDetails(QContact& contact) |
435 { |
423 { |