532 QList<uint> apIds; |
532 QList<uint> apIds; |
533 cmm->connectionMethod(apIds); |
533 cmm->connectionMethod(apIds); |
534 for (int i = 0; i < apIds.count(); i++) { |
534 for (int i = 0; i < apIds.count(); i++) { |
535 CmConnectionMethodShim *cm; |
535 CmConnectionMethodShim *cm; |
536 cm = cmm->connectionMethod(apIds.at(i)); |
536 cm = cmm->connectionMethod(apIds.at(i)); |
537 apList.append(QSharedPointer<CmConnectionMethodShim>(cm)); |
537 if (!cm->getBoolAttribute(CMManagerShim::CmHidden)) { |
|
538 apList.append(QSharedPointer<CmConnectionMethodShim>(cm)); |
|
539 } else { |
|
540 delete cm; |
|
541 } |
538 } |
542 } |
539 } else { |
543 } else { |
540 destination = cmm->destination(mDestinationId); |
544 destination = cmm->destination(mDestinationId); |
541 int apCount = destination->connectionMethodCount(); |
545 int apCount = destination->connectionMethodCount(); |
542 for (int i = 0; i < apCount; i++) { |
546 for (int i = 0; i < apCount; i++) { |
543 CmConnectionMethodShim *cm = NULL; |
547 CmConnectionMethodShim *cm = NULL; |
544 cm = destination->connectionMethod(i); |
548 cm = destination->connectionMethod(i); |
545 apList.append(QSharedPointer<CmConnectionMethodShim>(cm)); |
549 if (!cm->getBoolAttribute(CMManagerShim::CmDestination) |
|
550 && !cm->getBoolAttribute(CMManagerShim::CmHidden)) { |
|
551 apList.append(QSharedPointer<CmConnectionMethodShim>(cm)); |
|
552 } else { |
|
553 delete cm; |
|
554 } |
546 } |
555 } |
547 delete destination; |
556 delete destination; |
548 } |
557 } |
549 } catch (const std::exception&) { |
558 } catch (const std::exception&) { |
550 OstTrace0(TRACE_NORMAL, CPDESTINATIONENTRYITEMDATA_FETCHREFERENCEDAPS, "CpDestinationEntryItemData::fetchReferencedAps: Exception caught"); |
559 OstTrace0(TRACE_NORMAL, CPDESTINATIONENTRYITEMDATA_FETCHREFERENCEDAPS, "CpDestinationEntryItemData::fetchReferencedAps: Exception caught"); |