cmmanager/cpdestinationplugin/src/cpdestinationentryitem.cpp
changeset 64 84c6623982f6
parent 60 a9c709db68db
child 66 ed07dcc72692
equal deleted inserted replaced
60:a9c709db68db 64:84c6623982f6
   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;