Exemplo n.º 1
0
EXPORT_C CDesC8Array* CSIP::SupportedSecurityMechanismsL() const
    {
    _LIT8(Ksipsec3gpp , "ipsec-3gpp");
    _LIT8(Ksipdigest, "digest");
    
    CDesC8ArraySeg* mechanisms = new(ELeave)CDesC8ArraySeg(1);
    CleanupStack::PushL(mechanisms);
  
    mechanisms->AppendL(Ksipsec3gpp);
  	mechanisms->AppendL(Ksipdigest);
        
    CleanupStack::Pop(mechanisms);
    
	return mechanisms;
    }
Exemplo n.º 2
0
EXPORT_C CDesC8Array* CSTAnnounceList::GetAllAddressesL() const
{
	CDesC8ArraySeg* addresses = new (ELeave) CDesC8ArraySeg(5);
	CleanupStack::PushL(addresses);
		
	for (TInt i=0; i<iTiers.Count(); i++)
	{
		TInt addressCount = iTiers[i]->MdcaCount();
		for (TInt j=0; j<addressCount; j++)
		{
			addresses->AppendL((*iTiers[i])[j]);
		}
	}
	
	addresses->Sort();
	
	CleanupStack::Pop(); // addresses
	
	return addresses;
}