cmmanager/cmmgr/Framework/Src/cmdlg.cpp
branchRCL_3
changeset 55 fc7b30ed2058
parent 36 04408506c6e0
equal deleted inserted replaced
54:984e13af52c4 55:fc7b30ed2058
  1848 // CCmDlg::GetInsertIndexL
  1848 // CCmDlg::GetInsertIndexL
  1849 // --------------------------------------------------------------------------
  1849 // --------------------------------------------------------------------------
  1850 //
  1850 //
  1851 TInt CCmDlg::GetInsertIndexL( TInt aCount, TUint32 aPriority )
  1851 TInt CCmDlg::GetInsertIndexL( TInt aCount, TUint32 aPriority )
  1852     {
  1852     {
  1853     TInt ret = -1;
  1853     TInt ret = aCount;
  1854     TUint32 priority;
  1854     TUint32 priority;
       
  1855     
  1855     
  1856     
  1856     for ( TInt index = 0; index < aCount; index++ )
  1857     for ( TInt index = 0; index < aCount; index++ )
  1857         {
  1858         {
  1858         CCmPluginBase* cm = iCmDestinationImpl->GetConnectionMethodL( iItemIndex[index] );
  1859         CCmPluginBase* cm = iCmDestinationImpl->GetConnectionMethodL( iItemIndex[index] );
  1859         
  1860         
  1977                 TUint32 underlyingBearer = iCmManager->BearerTypeFromCmIdL( underlying );
  1978                 TUint32 underlyingBearer = iCmManager->BearerTypeFromCmIdL( underlying );
  1978                 TUint32 underlyingPrio = iCmManager->GetBearerInfoIntL( underlyingBearer, ECmDefaultPriority );
  1979                 TUint32 underlyingPrio = iCmManager->GetBearerInfoIntL( underlyingBearer, ECmDefaultPriority );
  1979                 TInt insertAt = GetInsertIndexL( index, underlyingPrio );
  1980                 TInt insertAt = GetInsertIndexL( index, underlyingPrio );
  1980                 
  1981                 
  1981                 // Modify the priority of this VPN Iap
  1982                 // Modify the priority of this VPN Iap
  1982                 if (insertAt != -1)
  1983                 iCmDestinationImpl->ModifyPriorityL( *cm, insertAt );
  1983                     {
  1984                 }
  1984                     iCmDestinationImpl->ModifyPriorityL( *cm, insertAt );
  1985             }
  1985                     iCmDestinationImpl->UpdateL();
  1986         }
  1986                     break;
  1987         iCmDestinationImpl->UpdateL();
  1987                     }
       
  1988                 }
       
  1989             }
       
  1990         }
       
  1991     }
  1988     }
  1992 
  1989 
  1993 // --------------------------------------------------------------------------
  1990 // --------------------------------------------------------------------------
  1994 // CCmDlg::CommsDatChanges
  1991 // CCmDlg::CommsDatChanges
  1995 // --------------------------------------------------------------------------
  1992 // --------------------------------------------------------------------------