sipplugins/sippsipadapter/src/CWPSIPItem.cpp
branchRCL_3
changeset 56 2c7192069824
parent 41 f54bfd820e04
equal deleted inserted replaced
49:0a1ad22c7bdc 56:2c7192069824
   144     iProfileId                                = 0;
   144     iProfileId                                = 0;
   145     iProfileLockEnabled                       = EFalse;
   145     iProfileLockEnabled                       = EFalse;
   146     iToAppRef                                 = HBufC8::NewL( 0 );
   146     iToAppRef                                 = HBufC8::NewL( 0 );
   147     iNetwork                                  = HBufC::NewL( 0 );
   147     iNetwork                                  = HBufC::NewL( 0 );
   148     iSnapId                                   = KErrNotFound;
   148     iSnapId                                   = KErrNotFound;
   149     iBearerId                                 = 0;
       
   150     SetSigQos( 40 );
   149     SetSigQos( 40 );
   151     DBG_PRINT( "CWPSIPItem::ConstructL - end" );
   150     DBG_PRINT( "CWPSIPItem::ConstructL - end" );
   152     }
   151     }
   153 
   152 
   154 // ---------------------------------------------------------------------------
   153 // ---------------------------------------------------------------------------
  1006         cSIPManagedProfile->SetParameter( KSIPProfileLocked, ETrue );
  1005         cSIPManagedProfile->SetParameter( KSIPProfileLocked, ETrue );
  1007         }
  1006         }
  1008 
  1007 
  1009     // Signalling QoS parameter.
  1008     // Signalling QoS parameter.
  1010     cSIPManagedProfile->SetParameter( KSIPSoIpTOS, iSigQos );
  1009     cSIPManagedProfile->SetParameter( KSIPSoIpTOS, iSigQos );
  1011     
  1010 
  1012     cSIPManagedProfile->SetParameter( KBearerType, iBearerId );
       
  1013     
       
  1014     // Stores SIP profile to permanent storage
  1011     // Stores SIP profile to permanent storage
  1015     cSIPManagedProfileRegistry->SaveL( *cSIPManagedProfile );
  1012     cSIPManagedProfileRegistry->SaveL( *cSIPManagedProfile );
  1016 
  1013 
  1017     // get saved profile id
  1014     // get saved profile id
  1018     cSIPManagedProfile->GetParameter( KSIPProfileId, iProfileId );
  1015     cSIPManagedProfile->GetParameter( KSIPProfileId, iProfileId );
  1260     const TInt ipTosShift( 2 );
  1257     const TInt ipTosShift( 2 );
  1261     const TUint32 tosBits( aSigQos << ipTosShift );
  1258     const TUint32 tosBits( aSigQos << ipTosShift );
  1262     iSigQos = tosBits;
  1259     iSigQos = tosBits;
  1263     }
  1260     }
  1264 
  1261 
  1265 
       
  1266 void CWPSIPItem::SetBearerID(TUint32 aBearerId)
       
  1267 {
       
  1268 iBearerId = aBearerId;
       
  1269 }
       
  1270 
       
  1271 TUint32 CWPSIPItem:: GetBearerID()
       
  1272 {
       
  1273 return iBearerId; 
       
  1274 }
       
  1275 // End of file.
  1262 // End of file.