void CVideoDecoderInfo::ConstructL(const TDesC& aManufacturer, const TDesC& aIdentifier, const TArray<CCompressedVideoFormat*>& aSupportedFormats, const TArray<TPictureRateAndSize>& aMaxPictureRates, const TDesC8& aCodingStandardSpecificInfo, const TDesC8& aImplementationSpecificInfo) { iManufacturer = aManufacturer.AllocL(); iIdentifier = aIdentifier.AllocL(); iCodingStandardSpecificInfo = aCodingStandardSpecificInfo.AllocL(); iImplementationSpecificInfo = aImplementationSpecificInfo.AllocL(); TInt i=0; TInt count = aSupportedFormats.Count(); for (i=0; i<count; i++) { CCompressedVideoFormat* f = CCompressedVideoFormat::NewL(*(aSupportedFormats[i])); CleanupStack::PushL(f); User::LeaveIfError(iSupportedFormats.Append(f)); CleanupStack::Pop(f); } count = aMaxPictureRates.Count(); for (i=0; i<count; i++) { User::LeaveIfError(iMaxPictureRates.Append(aMaxPictureRates[i])); } }
// --------------------------------------------------------- // CRoapTrigger::ConstructL() // --------------------------------------------------------- // void CRoapTrigger::ConstructL( const TTriggerType& aTriggerType, const TDesC8& aRiId, const TDesC8& aDomainId, const TDesC8& aRoapUrl, const RPointerArray<HBufC8>& aRoIdList, const RPointerArray<HBufC8>& aContentIdList ) { HBufC8* temp = NULL; iTriggerType = aTriggerType; iRiId.Copy( aRiId ); iDomainId = aDomainId.AllocL(); iRoapUrl = aRoapUrl.AllocL(); for( TInt i = 0; i < aRoIdList.Count(); i++ ) { temp = aRoIdList[i]->AllocLC(); iRoIdList.AppendL( temp ); CleanupStack::Pop(); //temp } for( TInt i = 0; i < aContentIdList.Count(); i++ ) { temp = aContentIdList[i]->AllocLC(); iContentIdList.AppendL( temp ); CleanupStack::Pop(); //temp } }
// ---------------------------------------------------------- // CSimpleNamespace::ConstructL // ---------------------------------------------------------- // void CSimpleNamespace::ConstructL( const TDesC8& aPrefix, const TDesC8& aUri) { iUri = aUri.AllocL(); iPrefix = aPrefix.AllocL(); }
// --------------------------------------------------------------------------- // CSTUNSharedSecret::ConstructL // --------------------------------------------------------------------------- // void CSTUNSharedSecret::ConstructL( RSocketServ& aSocketServer, RConnection& aConnection, const TInetAddr& aAddr, const TDesC8& aLtUsername, const TDesC8& aLtPassword ) { __STUNTURNCLIENT( "CSTUNSharedSecret::ConstructL" ) iActive = new ( ELeave ) CSTUNSharedSecretActive; iWaitToRetry = new ( ELeave ) CSTUNSharedSecretWaitToRetry; iWaitResponse = new ( ELeave ) CSTUNSharedSecretWaitResponse( *iActive, *iWaitToRetry ); iConnecting = new ( ELeave ) CSTUNSharedSecretConnecting( *iWaitResponse ); iWaitToRetry->SetNeighbourStates( *iWaitResponse ); iState = iConnecting; if ( aLtUsername.Length() > 0 && aLtPassword.Length() > 0 ) { iLtUsername = aLtUsername.AllocL(); iLtPassword = aLtPassword.AllocL(); } iTlsTransport = CNATFWUNSAFTlsTransport::NewL( aSocketServer, aConnection, aAddr, *this ); StartTimer( KTlsHandshakeTimeout ); }
// --------------------------------------------------------- // CNSmlCmdsBase::ConstructL // // --------------------------------------------------------- EXPORT_C void CNSmlCmdsBase::ConstructL( CNSmlAgentBase* aAgentBase, const TDesC8& aSessionID, const TDesC8& aVerProto, const TInt aPublicId, const HBufC& aSyncMLUserName, CNSmlURI* aSyncServer, TBool aVersionCheck ) { iMaxWorkspaceSize = KNSmlDefaultWorkspaceSize; iAgent = aAgentBase; iSessionID = aSessionID.AllocL(); iWorkspaceSize = iMaxWorkspaceSize; iVerProto = aVerProto.AllocL(); iVersionPublicId = aPublicId; //1.2 CHANGES: 1.1 and 1.2 version support if ( aPublicId == KNSmlSyncMLPublicId ) { iVerDTD = KNSmlAgentVerDTD11().AllocL(); } else { iVerDTD = KNSmlAgentVerDTD12().AllocL(); } //end changes iVersionCheck = aVersionCheck; iSyncMLUserName = aSyncMLUserName.AllocL(); iSyncServer = CNSmlURI::NewL( aSyncServer->HostNameWithPortL() ); iPhoneInfo = CNSmlPhoneInfo::NewL(); iStatusToServer = CNSmlStatusContainer::NewL(); iResponseController = CNSmlResponseController::NewL(); iResultsToServer = CNSmlResultsContainer::NewL(); iServerAuth = CNSmlAuth::NewL(); }
EXPORT_C void CSenBaseAttribute::BaseConstructL(const TDesC8& aQName, const TDesC8& /* aName */, const TDesC8& aValue) { ipValue = aValue.AllocL(); ipName = aQName.AllocL(); // name means nothing here.. }
// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- // void CSymbianUnitTestFailure::ConstructL( const TDesC& aTestName, const TDesC8& aFailureMessage, const TDesC8& aFileName ) { iTestName = CnvUtfConverter::ConvertFromUnicodeToUtf8L( aTestName ); iFailureMessage = aFailureMessage.AllocL(); iFileName = aFileName.AllocL(); }
void CPBEncryptParms::ConstructL(TPBECipher aCipher, const TDesC8& aSalt, const TDesC8& aIV, TUint aIterations) { iData = new(ELeave) TParamsData; iData->iCipher = aCipher; iData->iKdf = EKdfPkcs5; iSalt = aSalt.AllocL(); iIV = aIV.AllocL(); iIterations = aIterations; }
void CSenNamespace::ConstructL(const TDesC8& aPrefix, const TDesC8& aUri) { if (aPrefix.Length() > -1) { ipPrefix = aPrefix.AllocL(); } if (aUri.Length() > 0) { ipUri = aUri.AllocL(); } }
void CPrimitiveAssertion::AddAttributeL(TDesC8& aQname, TDesC8& aValue) { TInt indx = iAttr->Find(aQname); if(indx == KErrNotFound) { iAttr->Append(aQname.AllocL(),aValue.AllocL()); } else { iAttr->UpdateValue(aQname.AllocL(),aValue.AllocL()); } }
void CQName::ConstructL(TDesC8& aName, TDesC8& aPrefix, TDesC8& aUri) { _LIT8(KColon, ":"); iName = aName.AllocL(); iPrefix = aPrefix.AllocL(); iUri = aUri.AllocL(); iQName = HBufC8::NewL( aPrefix.Length() + KColon().Length() + aName.Length() ); TPtr8 qname = iQName->Des(); qname.Append( aPrefix ); qname.Append( KColon ); qname.Append( aName ); }
// ---------------------------------------------------------------------------- // CSIPProfileSIMRecord::SetSIMFirstPublicUserNameL // ---------------------------------------------------------------------------- // void CSIPProfileSIMRecord::SetSIMFirstPublicUserNameL( const TDesC8& aValue ) { __ASSERT_ALWAYS(aValue.Length(), User::Leave(KErrArgument)); HBufC8* temp = aValue.AllocL(); delete iIMPUsim; iIMPUsim = temp; }
void CMatchData::SetMatchUriSchemeL(const TDesC8& aMatchUriScheme) { delete iMatchUriScheme; iMatchUriScheme = NULL; iMatchUriScheme = aMatchUriScheme.AllocL(); }
void CMatchData::SetMatchDataL(const TDesC8& aMatchData) { delete iMatchData; iMatchData = NULL; iMatchData = aMatchData.AllocL(); }
// --------------------------------------------------------------------------- // CUpnpHttpFileServeTransaction::ConstructL // // --------------------------------------------------------------------------- // void CUpnpHttpFileServeTransaction::ConstructL( const TInetAddr& aSender, const TDesC8& aSenderUri ) { iFilterHeaders = CUpnpDlnaFilterHeaders::NewL( ); iSender = aSender; iSenderUri = aSenderUri.AllocL(); }
// ---------------------------------------------------------------------------- // CNATFWDomainEntry::SetNatUtilitiesL // // ---------------------------------------------------------------------------- // void CNATFWDomainEntry::SetNatUtilitiesL( const TDesC8& aNatUtilities ) { HBufC8* temp = aNatUtilities.AllocL(); delete iNatUtilities; iNatUtilities = NULL; iNatUtilities = temp; }
//it add(if not exist) or update. So , it is like Set TInt CWSStarMessageContext::Update(const TDesC8& aKey, const TDesC8& aValue) { if (aKey == SenContext::KSenCurrentSoapMessageCtxKey()) { iCurrentEnvelopeTxt.Set(aValue); return KErrNone; } //version with makeing of copy TInt error(KErrNone); if (!aValue.Length()) { error = Remove(aKey); if (error == KErrNotFound) return KErrNone; else return error; } HBufC8* newValue = NULL; TRAP(error, newValue = aValue.AllocL()); if (!error) { error = iDescs.UpdateValue(&aKey,newValue); } return error; }
void CSharedQueueSrv::EnqueueL(TCmdStruct aCmd, const TDesC8& params) { iArray.Append(aCmd); iParams.Append(params.AllocL()); RProperty::Set(KPropertyUidSharedQueue, KPropertyKeySharedQueueTopAddedOrRemoved, 1); return; }
// --------------------------------------------------------------------------- // CNATFWDomainEntry::SetSTUNUsernameL // // --------------------------------------------------------------------------- // void CNATFWDomainEntry::SetSTUNUsernameL( const TDesC8& aSTUNUsername ) { HBufC8* temp = aSTUNUsername.AllocL(); delete iSTUNUsername; iSTUNUsername = NULL; iSTUNUsername = temp; }
// --------------------------------------------------------------------------- // CNATFWDomainEntry::SetSTUNServerAddrL // // --------------------------------------------------------------------------- // void CNATFWDomainEntry::SetSTUNServerAddrL( const TDesC8& aSTUNServerAddr ) { HBufC8* temp = aSTUNServerAddr.AllocL(); delete iSTUNServerAddr; iSTUNServerAddr = NULL; iSTUNServerAddr = temp; }
// --------------------------------------------------------------------------- // CNATFWDomainEntry::SetDomainL // // --------------------------------------------------------------------------- // void CNATFWDomainEntry::SetDomainL( const TDesC8& aDomain ) { HBufC8* temp = aDomain.AllocL(); delete iDomain; iDomain = NULL; iDomain = temp; }
// --------------------------------------------------------------------------- // CNATFWTurnSettings::SetLatestConnectedServerAddrL // --------------------------------------------------------------------------- // void CNATFWTurnSettings::SetLatestConnectedServerAddrL ( const TDesC8& aServerAddr ) { delete iLatestConnectedServerAddr; iLatestConnectedServerAddr = NULL; iLatestConnectedServerAddr = aServerAddr.AllocL(); }
// --------------------------------------------------------------------------- // URI setter // --------------------------------------------------------------------------- // void CCatalogsHttpTransaction::SetUriL( const TDesC8& aUri ) { delete iUri; iUri = NULL; iUri = aUri.AllocL(); EncodeUriL(); }
// --------------------------------------------------------------------------- // Set body // --------------------------------------------------------------------------- // void CCatalogsHttpTransaction::SetBodyL( const TDesC8& aBody ) { DLTRACEIN(( "" )); delete iRequestBody; iRequestBody = NULL; iRequestBody = aBody.AllocL(); }
// ---------------------------------------------------------------------------- // CSIPProfileSIMRecord::SetSIMHomeNetworkDomainNameL // ---------------------------------------------------------------------------- // void CSIPProfileSIMRecord::SetSIMHomeNetworkDomainNameL( const TDesC8& aValue ) { __ASSERT_ALWAYS(aValue.Length(), User::Leave(KErrArgument)); HBufC8* temp = aValue.AllocL(); delete iHNDNsim; iHNDNsim = temp; }
// --------------------------------------------------------------------------- // CNATFWDomainEntry::SetSTUNPasswordL // // --------------------------------------------------------------------------- // void CNATFWDomainEntry::SetSTUNPasswordL( const TDesC8& aSTUNPassword ) { HBufC8* temp = aSTUNPassword.AllocL(); delete iSTUNPassword; iSTUNPassword = NULL; iSTUNPassword = temp; }
// ---------------------------------------------------------------------------- // CSIPProfileSIMRecord::SetPrivateIdL // ---------------------------------------------------------------------------- // void CSIPProfileSIMRecord::SetPrivateIdL( const TDesC8& aValue ) { __ASSERT_ALWAYS(aValue.Length(), User::Leave(KErrArgument)); HBufC8* temp = aValue.AllocL(); delete iIMPI; iIMPI = temp; }
// --------------------------------------------------------------------------- // CNATFWDomainEntry::SetNatProtocolL // // --------------------------------------------------------------------------- // void CNATFWDomainEntry::SetNatProtocolL( const TDesC8& aNatProtocol ) { HBufC8* temp = aNatProtocol.AllocL(); delete iUsedNatProtocol; iUsedNatProtocol = NULL; iUsedNatProtocol = temp; }
// ----------------------------------------------------------------------------- // CCMSOriginatorPublicKey::SetPublicKeyL // PublicKey setter // ----------------------------------------------------------------------------- EXPORT_C void CCMSOriginatorPublicKey::SetPublicKeyL( const TDesC8& aPublicKey ) { HBufC8* tmp = aPublicKey.AllocL(); delete iPublicKey; iPublicKey = tmp; }
//-----------------descs TInt CWSStarMessageContext::Add(const TDesC8& aKey, const TDesC8& aValue) { if (aKey == SenContext::KSenCurrentSoapMessageCtxKey()) { if (! iCurrentEnvelopeTxt.Length()) { iCurrentEnvelopeTxt.Set(aValue); return KErrNone; } else { return KErrAlreadyExists; } } //version without copy //return iDescs.Append(&aKey,&aValue); //version with making of copy if (!aValue.Length()) return KErrUnderflow; HBufC8* newValue = NULL; TInt error(KErrNone); TRAP(error, newValue = aValue.AllocL()); if (!error) { error = iDescs.Append(&aKey,newValue); } return error; }