cmmanager/cpdestinationplugin/src/cpdestinationentryitem.cpp
changeset 59 2709c04a4af5
parent 56 dd6aaa97e7b1
child 61 8b0c979bbe8c
equal deleted inserted replaced
56:dd6aaa97e7b1 59:2709c04a4af5
   185                 static_cast<CpDestinationGroup*>(HbDataFormModelItem::parent())->findBearerPlugin(apId);
   185                 static_cast<CpDestinationGroup*>(HbDataFormModelItem::parent())->findBearerPlugin(apId);
   186         bool apProtected = false;
   186         bool apProtected = false;
   187         if (mDestinationId != 0) {
   187         if (mDestinationId != 0) {
   188             CmDestinationShim *destination = mCmm->destination(mDestinationId);
   188             CmDestinationShim *destination = mCmm->destination(mDestinationId);
   189             CMManagerShim::CmmProtectionLevel level = destination->protectionLevel();
   189             CMManagerShim::CmmProtectionLevel level = destination->protectionLevel();
   190             if (level == CMManagerShim::ProtLevel3) {
   190             if (level == CMManagerShim::ProtLevel1) {
       
   191                 apProtected = true;
       
   192             } else {
   191                 apProtected = apList[i]->getBoolAttribute(CMManagerShim::CmProtected);
   193                 apProtected = apList[i]->getBoolAttribute(CMManagerShim::CmProtected);
   192             } else if (level == CMManagerShim::ProtLevel1) {
       
   193                 apProtected = true;
       
   194             }
   194             }
   195             delete destination;
   195             delete destination;
   196         }
   196         }
   197         
   197         
   198         CpIapItem *iapDataItem;
   198         CpIapItem *iapDataItem;