void CAgnAttachment::InternalizeL(RReadStream& aStream)
	{
	// don't read in type as assume already read
	HBufC8* mimeType = HBufC8::NewL(aStream, KCalAttachmentMaxMimeTypeLength);
	SetMimeType(mimeType);
	iUid = aStream.ReadUint32L();
	iAttributes = static_cast<CCalAttachment::TAttributes>(aStream.ReadUint16L());
	iFlags = aStream.ReadUint16L();
	iSize = aStream.ReadInt32L();
	delete iLabel;
	iLabel = NULL;
	iLabel = HBufC::NewL(aStream, KCalAttachmentMaxLabelLength);
	}
Exemplo n.º 2
0
// -----------------------------------------------------------------------------
// CMceComAudioCodec::InternalizeFlatL
// -----------------------------------------------------------------------------
//
void CMceComAudioCodec::InternalizeFlatL( RReadStream& aReadStream )
    {
    CMceComCodec::InternalizeFlatL( aReadStream );
    
    iEnableVAD = static_cast<TBool>( aReadStream.ReadUint8L() );
	iSamplingFreq = aReadStream.ReadUint16L();
	iPTime = aReadStream.ReadUint16L();
	iMaxPTime = aReadStream.ReadUint16L();
	
	iRedPayloadType = aReadStream.ReadUint8L();
	iRedCount = aReadStream.ReadUint16L();
	iComfortNoiseEnabled = static_cast<TBool>( aReadStream.ReadUint8L() );
    }
// -----------------------------------------------------------------------------
// TAccPolCapsSubblockNameArraySerial::InternalizeL
// Internalize name array data from the read stream.
// (other items were commented in a header).
// -----------------------------------------------------------------------------
//
EXPORT_C void TAccPolCapsSubblockNameArraySerial::InternalizeL( 
    RReadStream& aStream, 
    CAccPolSubblockNameArray& aArray)
    {
    COM_TRACE_( "[AccFW: ACCPOLICY] TAccPolCapsSubblockNameArraySerial::InternalizeL()" );

    TUint16 count( aStream.ReadUint16L() );
    TAccPolSubblockNameArrayAccessor::ResetArray( aArray );
    for ( TInt i( 0 ); i < count; ++i )
        {
        TUint16 name( );
     	TAccPolSubblockNameArrayAccessor::AppendNameL( aArray, aStream.ReadUint16L() );
        }
    
    COM_TRACE_( "[AccFW: ACCPOLICY] TAccPolCapsSubblockNameArraySerial::InternalizeL() - return void" );    
    }
Exemplo n.º 4
0
// ---------------------------------------------------------------------------
// CCmStoreListItem::InternalizeL
// ---------------------------------------------------------------------------
//
EXPORT_C void CCmStoreListItem::InternalizeL( RReadStream& aStream )
    {
    iListId = aStream.ReadUint16L();
    TUint count( aStream.ReadUint16L() );
    iDeviceIds.Reset();
    for( TInt i = 0; i < count; i++ )
        {
        iDeviceIds.Append( aStream.ReadInt16L() );
        }
    count = aStream.ReadUint16L();
    iStatusValues.Reset();
    for( TInt i = 0; i < count; i++ )
        {
        iStatusValues.AppendL( (TCmListItemStatus) aStream.ReadInt16L() );
        }        
    CCmBaseListItem::InternalizeL(aStream);               
    }
// -----------------------------------------------------------------------------
// CPhCltEmergencyTelNumber::InternalizeL
//
// -----------------------------------------------------------------------------
//
EXPORT_C void CPhCltEmergencyTelNumber::InternalizeL( 
    RReadStream& aStream )
    {
    HBufC* number = HBufC::NewL( aStream, KPhCltTelephoneNumberLength );
    delete iTelNumber;
    iTelNumber = number;
    //
    iFieldMCC = aStream.ReadUint16L();
    iFieldMNC = aStream.ReadUint16L();
    }
Exemplo n.º 6
0
/**
Configures the BIC using data contained in a ReadStream
 
@param aReadStream 	A read stream containing BIC data
*/
void CCmdCustomCommand::InternalizeL(RReadStream& aReadStream)
	{
	iSeverity = static_cast<TCmdErrorSeverity>(aReadStream.ReadInt16L());
	iExecutionBehaviour = static_cast<TSsmExecutionBehaviour>(aReadStream.ReadUint8L());

	iInfo = new (ELeave) CSsmCustomCommandInfo();
	iInfo->InternalizeL(aReadStream);
#ifdef SYMBIAN_SSM_FLEXIBLE_MERGE
	iPriority = aReadStream.ReadUint16L();
#endif	
	}
Exemplo n.º 7
0
/**
Configures the BIC using data contained in a ReadStream
 
@param aReadStream 	A read stream containing BIC data
*/
void CCmdPublishSwp::InternalizeL(RReadStream& aReadStream)
	{
	iSeverity = static_cast<TCmdErrorSeverity>(aReadStream.ReadInt16L());
	iExecutionBehaviour = static_cast<TSsmExecutionBehaviour>(aReadStream.ReadUint8L());
	const TUint key = aReadStream.ReadUint32L();
	const TInt value = aReadStream.ReadInt32L();	
#ifdef SYMBIAN_SSM_FLEXIBLE_MERGE
	iPriority = aReadStream.ReadUint16L();
#endif
	TSsmSwp swpInfo(key, value);
	iSwpInfo = swpInfo;
	}
void CAgnCalendarConverter209::InternalizeSporadicDatesL(RReadStream& aStream, CAgnRptDef& aRptDef) const
	{
	const TInt KCount = aStream.ReadUint16L();
	if (KCount > 0)
		{
		TAgnCalendarTime time;
		for (TInt i = 0; i < KCount; ++i)
			{
			aStream >> time;
			aRptDef.AddSporadicDateL(time);
			}
		}
// -----------------------------------------------------------------------------
// CSyncMLTransportPropertiesArray::InternalizeL
// Internalizes the properties from the stream.
// -----------------------------------------------------------------------------
//
EXPORT_C void CSyncMLTransportPropertiesArray::InternalizeL( RReadStream& aStream )
{
    iElements.Reset();

    TInt count = aStream.ReadUint16L(); // how many props

    TSyncMLTransportPropertyInfo prop;
    for ( TInt i = 0; i < count; ++i )
    {
        prop.InternalizeL( aStream );
        AddL( prop );
    }
}
// ---------------------------------------------------------------------------
// CAccPolAudioControlBase::InternalizeAudioControlbaseL()
// ---------------------------------------------------------------------------
//
EXPORT_C void CAccPolAudioControlBase::InternalizeAudioControlbaseL(
    RReadStream& aStream )
    {
    API_TRACE_( "[AccFW:ACCPOLAUDIODEVICETOPOLOGY] CAccPolAudioControlBase::InternalizeAudioControlbaseL() - Enter" );

    iUnitId = aStream.ReadUint8L();
    iChannel = aStream.ReadUint16L();

    API_TRACE_1( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolAudioControlBase::InternalizeAudioControlbaseL() - Unit Id=%d", iUnitId );
    API_TRACE_1( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolAudioControlBase::InternalizeAudioControlbaseL() - Channel number=%d", iChannel );

    API_TRACE_( "[AccFW:ACCPOLAUDIODEVICETOPOLOGY] CAccPolAudioControlBase::InternalizeAudioControlbaseL - Return" );
    }
void CNcdNodeContentInfoProxy::InternalizeDataL( RReadStream& aStream )
    {
    DLTRACEIN((""));

    // First read the class id. Because, it is the first thing in the stream.
    TInt classId( aStream.ReadInt32L() );
    
    if ( classId != NcdNodeClassIds::ENcdNodeContentInfoClassId )
        {
        // classId is not recognized
        DLERROR(("Class id was not recognized!"));
        // For testing purposes assert here
        DASSERT( EFalse );
        
        // Otherwise leave is adequate
        User::Leave( KErrCorrupt );
        }

    iPurpose = aStream.ReadUint16L();
    DLINFO(( "Purpose: %u", iPurpose ));
    
    InternalizeDesL( iMimeType, aStream );    
    DLINFO(( _L("Mime: %S"), iMimeType ));
    
    //The Internalization here must be consistant with the externalization in CNcdNodeContentInfo
    if ( iMimeType->Compare( KMimeTypeMatchWidget ) == 0 )
        {
        //widget
        InternalizeDesL( iIdentifier, aStream );
        }
    else
        {
        //sis
        iUid.iUid = aStream.ReadInt32L();   
        DLINFO(( "Uid: %x", iUid.iUid )); 
        }
   
    InternalizeDesL( iVersion, aStream );    
    DLINFO(( _L("Version: %S"), iVersion ));

    iSize = aStream.ReadInt32L();
    DLINFO(( _L("Size: %d"), iSize ));
    
    DLTRACEOUT((""));
    }