当前位置: 首页>>代码示例>>C++>>正文


C++ TDesC8::AllocL方法代码示例

本文整理汇总了C++中TDesC8::AllocL方法的典型用法代码示例。如果您正苦于以下问题:C++ TDesC8::AllocL方法的具体用法?C++ TDesC8::AllocL怎么用?C++ TDesC8::AllocL使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TDesC8的用法示例。


在下文中一共展示了TDesC8::AllocL方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: ConstructL

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]));
		}
	}
开发者ID:kuailexs,项目名称:symbiandump-os1,代码行数:28,代码来源:devvideoplay.cpp

示例2: ConstructL

// ---------------------------------------------------------
// 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
        }    
    }
开发者ID:kuailexs,项目名称:symbiandump-mw1,代码行数:32,代码来源:RoapTrigger.cpp

示例3: ConstructL

// ----------------------------------------------------------
// CSimpleNamespace::ConstructL
// ----------------------------------------------------------
//
void CSimpleNamespace::ConstructL(
    const TDesC8& aPrefix,
  const TDesC8& aUri)
    {
    iUri = aUri.AllocL();
    iPrefix = aPrefix.AllocL();
    }
开发者ID:cdaffara,项目名称:symbiandump-mw2,代码行数:11,代码来源:simplenamespace.cpp

示例4: ConstructL

// ---------------------------------------------------------------------------
// 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 );
    }
开发者ID:kuailexs,项目名称:symbiandump-mw1,代码行数:33,代码来源:cstunsharedsecret.cpp

示例5: ConstructL

// ---------------------------------------------------------
// 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();
	}
开发者ID:kuailexs,项目名称:symbiandump-mw3,代码行数:33,代码来源:nsmlcmdsbase.cpp

示例6: BaseConstructL

EXPORT_C void CSenBaseAttribute::BaseConstructL(const TDesC8& aQName,
                                                const TDesC8& /* aName */,
                                                const TDesC8& aValue)
    {
    ipValue = aValue.AllocL();
    ipName = aQName.AllocL(); // name means nothing here..
    }
开发者ID:gvsurenderreddy,项目名称:symbiandump-mw4,代码行数:7,代码来源:senbaseattribute.cpp

示例7: ConstructL

// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
//
void CSymbianUnitTestFailure::ConstructL(
    const TDesC& aTestName,
    const TDesC8& aFailureMessage,
    const TDesC8& aFileName )
    {
    iTestName = CnvUtfConverter::ConvertFromUnicodeToUtf8L( aTestName );   
    iFailureMessage = aFailureMessage.AllocL();
    iFileName = aFileName.AllocL();
    }
开发者ID:cdaffara,项目名称:symbiandump-os2,代码行数:13,代码来源:symbianunittestfailure.cpp

示例8: ConstructL

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;
	}
开发者ID:cdaffara,项目名称:symbiandump-os2,代码行数:10,代码来源:pbedata.cpp

示例9: ConstructL

void CSenNamespace::ConstructL(const TDesC8& aPrefix, const TDesC8& aUri)
    {
    if (aPrefix.Length() > -1)
        {
        ipPrefix = aPrefix.AllocL();
        }

    if (aUri.Length() > 0)
        {
        ipUri = aUri.AllocL();
        }
    }
开发者ID:gvsurenderreddy,项目名称:symbiandump-mw4,代码行数:12,代码来源:sennamespace.cpp

示例10: AddAttributeL

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());    
    }
}
开发者ID:gvsurenderreddy,项目名称:symbiandump-mw4,代码行数:12,代码来源:primitiveassertion.cpp

示例11: ConstructL

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 );
    }
开发者ID:gvsurenderreddy,项目名称:symbiandump-mw4,代码行数:12,代码来源:primitiveassertion.cpp

示例12: SetSIMFirstPublicUserNameL

// ----------------------------------------------------------------------------
// CSIPProfileSIMRecord::SetSIMFirstPublicUserNameL
// ----------------------------------------------------------------------------
//
void CSIPProfileSIMRecord::SetSIMFirstPublicUserNameL( const TDesC8& aValue )
    {
    __ASSERT_ALWAYS(aValue.Length(), User::Leave(KErrArgument));
    HBufC8* temp = aValue.AllocL();
	delete iIMPUsim;
	iIMPUsim = temp;
    }
开发者ID:kuailexs,项目名称:symbiandump-mw1,代码行数:11,代码来源:Sipimsprofilesimrecord.cpp

示例13: SetMatchUriSchemeL

void CMatchData::SetMatchUriSchemeL(const TDesC8& aMatchUriScheme)
	{
	delete iMatchUriScheme;
	iMatchUriScheme = NULL;
	
	iMatchUriScheme = aMatchUriScheme.AllocL();	
	}
开发者ID:kuailexs,项目名称:symbiandump-os1,代码行数:7,代码来源:mmfcontrollerpluginresolver.cpp

示例14: SetMatchDataL

void CMatchData::SetMatchDataL(const TDesC8& aMatchData)
	{
	delete iMatchData;
	iMatchData = NULL;
		
	iMatchData = aMatchData.AllocL();	
	}
开发者ID:kuailexs,项目名称:symbiandump-os1,代码行数:7,代码来源:mmfcontrollerpluginresolver.cpp

示例15: ConstructL

// ---------------------------------------------------------------------------
// CUpnpHttpFileServeTransaction::ConstructL
// 
// ---------------------------------------------------------------------------
//
void CUpnpHttpFileServeTransaction::ConstructL( 
    const TInetAddr& aSender, const TDesC8& aSenderUri )
    {
    iFilterHeaders = CUpnpDlnaFilterHeaders::NewL( );
    iSender = aSender;
    iSenderUri = aSenderUri.AllocL();
    }
开发者ID:kuailexs,项目名称:symbiandump-mw1,代码行数:12,代码来源:upnphttpfileservetransaction.cpp


注:本文中的TDesC8::AllocL方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。