// ---------------------------------------------------------------------------
// CAccPolObjectBase::ExternalizeBaseLd
// ---------------------------------------------------------------------------
//
EXPORT_C void CAccPolAudioUnitBase::ExternalizeAudioUnitBaseL(
    RWriteStream& aStream ) const
    {
    API_TRACE_( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolAudioUnitBase::ExternalizeAudioUnitBaseL() - Enter" );
    TInt count( KErrNone );
    //Add data
    aStream.WriteUint8L( iUnitId );
    count = iSourceId.Count();
    aStream.WriteInt8L( iSourceId.Count() );
    for( TInt i = 0; i < count; i++ )
        {
        aStream.WriteUint8L( ( TUint8 )iSourceId.operator[]( i ) );
        }
    count = iAudioControls.Count();
    aStream.WriteInt8L( count );

    API_TRACE_1( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolAudioUnitBase::ExternalizeAudioUnitBaseL - Unit id         = %d", iUnitId );
    API_TRACE_1( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolAudioUnitBase::ExternalizeAudioUnitBaseL - Source id count = %d", iSourceId.Count() );
    API_TRACE_1( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolAudioUnitBase::ExternalizeAudioUnitBaseL - Audio controls count = %d", iAudioControls.Count() );

    for( TInt i = 0; i < iAudioControls.Count(); i++ )
        {
        iAudioControls[i]->ExternalizeL( aStream );
        }
    API_TRACE_( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolAudioUnitBase::ExternalizeBaseL - Return" );
    }
// -----------------------------------------------------------------------------
// CMceComAudioCodec::ExternalizeFlatL
// -----------------------------------------------------------------------------
//
void CMceComAudioCodec::ExternalizeFlatL( RWriteStream& aWriteStream )
    {
    CMceComCodec::ExternalizeFlatL( aWriteStream );
    
    aWriteStream.WriteUint8L( iEnableVAD );
    aWriteStream.WriteUint16L( iSamplingFreq );
    aWriteStream.WriteUint16L( iPTime );
    aWriteStream.WriteUint16L( iMaxPTime ); 
    
    aWriteStream.WriteUint8L( iRedPayloadType );
    aWriteStream.WriteUint16L( iRedCount ); 
    aWriteStream.WriteUint8L( iComfortNoiseEnabled );
    }
EXPORT_C void TImEmailTransformingInfo::ExternalizeL( RWriteStream& aWriteStream ) const
	{
	aWriteStream.WriteUint8L( SendMethod() );

	aWriteStream.WriteUint8L( HeaderEncoding() );
	aWriteStream.WriteUint8L( BodyTextEncoding());
	aWriteStream.WriteUint8L( HTMLEncoding() );
	aWriteStream.WriteUint8L( AttachmentEncoding() );

	aWriteStream.WriteUint32L( HeaderCharset() );
	aWriteStream.WriteUint32L( BodyTextCharset() );
	aWriteStream.WriteUint32L( HTMLCharset() );
	}
Beispiel #4
0
void TWordUiData::ExternalizeL(RWriteStream& aStream) const
	{
	const TCardinality version=KVersionAppConfigurationData;
	version.ExternalizeL(aStream);

	aStream.WriteUint8L((TUint8)iNpcVisibility);
	aStream.WriteUint8L((TUint8)iPicturePrefs);
	aStream.WriteInt8L(iToolbandVisibility);
	aStream.WriteInt8L(iToolbarVisibility);
	aStream.WriteInt8L(iWysiwygOn);

	aStream.WriteInt32L(iCursorPos);
	aStream.WriteInt32L(iZoomFactor);
	}
// -----------------------------------------------------------------------------
// CSIPMessage::ExternalizeHeadersL
// -----------------------------------------------------------------------------
//
EXPORT_C void CSIPMessage::ExternalizeHeadersL (RWriteStream& aWriteStream)
	{
	const RPointerArray<CSIPHeaderBase>& headers = AllHeadersL();
    const CSIPHeaderBase* header = 0;
	for (TInt i=0; i < headers.Count(); i++)
		{
		header = headers[i];
		if (SIPHeaderLookup::IsAPIHeader(header->Name()) ||
		    header->IsExtensionHeader())
			{
			aWriteStream.WriteUint8L(1); // more headers in the stream flag
			header->ExternalizeL(aWriteStream);
			}
		}
	aWriteStream.WriteUint8L(0); // no more headers in the stream flag
	}
Beispiel #6
0
EXPORT_C void CXzeDoor::ExternalizeL(RWriteStream& aStream)const
// Save this picture.
// Typically called from the base class StoreL();
//
{
    CXzePicture::ExternalizeL(aStream);
    aStream.WriteUint8L((TUint8)iAlwaysFailToDetach!=EFalse);
}
// ---------------------------------------------------------------------------
// CAccPolAudioTopologyObjectCon::ExternalizeL()
// ---------------------------------------------------------------------------
//
EXPORT_C void CAccPolAudioStreamFormatCon::ExternalizeL( RWriteStream& aStream ) const
    {
    API_TRACE_( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolAudioStreamFormatCon::ExternalizeL() - Enter" );
    TInt count( Count() );

    aStream.WriteUint8L( ObjectType() );// Type of object
    aStream.WriteUint8L( count );//Count

    API_TRACE_1( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolAudioStreamFormatCon::ExternalizeL - object type  = %d", ObjectType() );
    API_TRACE_1( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolAudioStreamFormatCon::ExternalizeL - object count = %d", count );

    for( TInt i = 0; i < count; i++ )
        {
        AtL( i )->ExternalizeL( aStream );
        }

    API_TRACE_( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolAudioStreamFormatCon::ExternalizeL - Return" );
    }
/**
Externalises the configuration of the BIC
 
@param aWriteStream A write stream to write BIC data to
@leave	One of the system-wide error codes.
*/
void CCmdCustomCommand::ExternalizeL(RWriteStream& aWriteStream) const
	{
	aWriteStream.WriteInt16L(iSeverity);
	aWriteStream.WriteUint8L(iExecutionBehaviour);
	iInfo->ExternalizeL(aWriteStream);
#ifdef SYMBIAN_SSM_FLEXIBLE_MERGE
	aWriteStream.WriteUint16L(iPriority);
#endif
	}
/**
Externalises the configuration of the BIC
 
@param aWriteStream A write stream to write BIC data to
*/
void CCmdPublishSwp::ExternalizeL(RWriteStream& aWriteStream) const
	{
	aWriteStream.WriteInt16L(iSeverity);
	aWriteStream.WriteUint8L(iExecutionBehaviour);
	aWriteStream.WriteUint32L(iSwpInfo.Key());
	aWriteStream.WriteInt32L(iSwpInfo.Value());
#ifdef SYMBIAN_SSM_FLEXIBLE_MERGE
	aWriteStream.WriteUint16L(iPriority);
#endif
	}
// ---------------------------------------------------------------------------
// CAccPolMixerUnit::ExternalizeL()
// ---------------------------------------------------------------------------
//
void CAccPolMixerUnit::ExternalizeL( RWriteStream& aStream ) const
    {
    API_TRACE_( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolMixerUnit::ExternalizeL() -Enter" );
    //
    //Add object type at the beginning.
    //
    aStream.WriteUint8L( ObjectType() );
    ExternalizeAudioUnitBaseL( aStream );
    API_TRACE_( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolMixerUnit::ExternalizeL - Return" );
    }
// ---------------------------------------------------------------------------
// TMMCScBkupArchiveDriveAndVector::ExternalizeL()
// 
// 
// ---------------------------------------------------------------------------
void TMMCScBkupArchiveDriveAndVector::ExternalizeL( RWriteStream& aStream ) const
    {
    aStream.WriteInt32L( EStreamFormatVersion1 );
    aStream.WriteInt32L( 0 ); // spare1
    aStream.WriteInt32L( 0 ); // spare2
    aStream.WriteInt32L( 0 ); // spare3
    //
    aStream.WriteUint8L( iDrive );
    aStream << iVector;
    }
// ----------------------------------------------------------------------------
// CSdpMediaField::ExternalizeL
// ----------------------------------------------------------------------------
//
void CSdpMediaField::ExternalizeL(RWriteStream& aStream) const
{
    aStream.WriteUint32L (iMedia.DesC().Length());
    if (iMedia.DesC().Length() > 0)
    {
        aStream.WriteL (iMedia.DesC());
    }
    aStream.WriteUint32L (iPort);
    if(iPortCount)
    {
        aStream.WriteUint8L (1);
        aStream.WriteUint32L (iPortCount);
    }
    else
    {
        aStream.WriteUint8L (0);
    }
    aStream.WriteUint32L (iProtocol.DesC().Length());
    if (iProtocol.DesC().Length() > 0)
    {
        aStream.WriteL (iProtocol.DesC());
    }
    aStream.WriteUint32L (iFormatList->Length());
    if (iFormatList->Length() > 0)
    {
        aStream.WriteL (*iFormatList);
    }
    aStream.WriteUint32L (iInfo->Length());
    if (iInfo->Length() > 0)
    {
        aStream.WriteL (*iInfo);
    }
    SdpCodecTemplate<CSdpConnectionField>::ExternalizeArrayL(*iConnectionFields,
            aStream);
    SdpCodecTemplate<CSdpBandwidthField>::ExternalizeArrayL(*iBandwidthFields,
            aStream);
    SdpCodecTemplate<CSdpKeyField>::ExternalizeL(Key(), aStream);
    SdpCodecTemplate<CSdpAttributeField>::ExternalizeArrayL(*iAttributeFields,
            aStream);
    SdpCodecTemplate<CSdpFmtAttributeField>::ExternalizeArrayL(*iFmtAttrFields,
            aStream);
}
void CAgnAttachment::ExternalizeL(RWriteStream& aStream) const
	{
	aStream.WriteUint8L(Type());
	
	aStream << MimeType();
	aStream.WriteUint32L(iUid);
	aStream.WriteUint16L(iAttributes);
	aStream.WriteUint16L(iFlags);
	aStream.WriteInt32L(iSize);
	aStream << Label();
	}
//Externalize to buffer used by client to server requests.
void CAgnTzRules::WriteToBufferL(RWriteStream& aStream)
	{
	if(iTzRules == NULL || UseCurrentSystemTzRules())
		{
	   	aStream.WriteUint8L(ETrue);
	   	if(iTzRules == NULL)
	   		{
			CAgnTlsProxy* tlsProxy = static_cast<CAgnTlsProxy*>(Dll::Tls());
			iTzRules = tlsProxy->GetCurrentSystemTzRulesL();
			SetUseCurrentSystemTzRules(ETrue);
	   		}
		}
	else
		{
	   	aStream.WriteUint8L(EFalse);
	  	aStream << *iTzRules;;
		}
		
	aStream.WriteUint8L(iTzZoneIsSystemRule);
  	aStream << iTzZoneStreamId;
	}
// -----------------------------------------------------------------------------
// CSIPRequestElements::ExternalizeL
// -----------------------------------------------------------------------------
//
void CSIPRequestElements::ExternalizeL(RWriteStream& aWriteStream) const
	{
	TPtrC8 method(iMethod.DesC());
    // For outgoing requests in some cases the method is filled in ServerCore
    if (method.Length() > 0)
        {
        aWriteStream.WriteUint32L(method.Length());
	    aWriteStream.WriteL(method);
        }
    aWriteStream.WriteUint8L(1); // remote-URI always present
    iRemoteURI->ExternalizeL(aWriteStream);
    iMessageElements->ExternalizeL(aWriteStream);
	}
// ---------------------------------------------------------------------------
// CAccPolAudioControlBase::ExternalizeAudioControlbaseL()
// ---------------------------------------------------------------------------
//   
EXPORT_C void CAccPolAudioControlBase::ExternalizeAudioControlbaseL(
    RWriteStream& aStream ) const
    {
    API_TRACE_( "[AccFW:ACCPOLAUDIODEVICETOPOLOGY] CAccPolAudioControlBase::ExternalizeAudioControlbaseL() - Enter" );

    aStream.WriteUint8L( iUnitId );
    aStream.WriteUint16L( iChannel );

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

    API_TRACE_( "[AccFW:ACCPOLAUDIODEVICETOPOLOGY] CAccPolAudioControlBase::ExternalizeAudioControlbaseL - Return" );
    }
// -----------------------------------------------------------------------------
// CMceComDisplaySink::ExternalizeFlatL
// -----------------------------------------------------------------------------
//
void CMceComDisplaySink::ExternalizeFlatL( RWriteStream& aWriteStream )
    {
    CMceComMediaSink::ExternalizeFlatL( aWriteStream );
    
    aWriteStream.WriteInt32L( iDisplayIndex );
    aWriteStream.WriteInt32L( iDisplayRectTlX );
    aWriteStream.WriteInt32L( iDisplayRectTlY );
    aWriteStream.WriteInt32L( iDisplayRectBrX );
    aWriteStream.WriteInt32L( iDisplayRectBrY );
    aWriteStream.WriteUint32L( iPriority );
    aWriteStream.WriteInt32L( iIsViewFinder );
    aWriteStream.WriteInt32L( iRotation );
    aWriteStream.WriteInt32L( iDisplaysAvailable );
    aWriteStream.WriteUint8L( iInitialInfoRetrieved );
    
    }
// ---------------------------------------------------------------------------
// CAccPolHdmiLatency::ExternalizeL()
// ---------------------------------------------------------------------------
//
void CAccPolHdmiLatency::ExternalizeL( RWriteStream& aStream ) const
{
    API_TRACE_( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolHdmiLatency::ExternalizeL() - Enter" );

    //Add object type at the beginning
    aStream.WriteUint8L( ObjectType() );

    //Add data
    aStream.WriteInt32L( iLatencyType.iUid );
    aStream.WriteUint32L( iAudioLatency );
    aStream.WriteUint32L( iVideoLatency );

    API_TRACE_1( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolHdmiLatency::ExternalizeL - Object Type     = %d", ObjectType() );
    API_TRACE_1( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolHdmiLatency::ExternalizeL - LatencyType Uid = %d", iLatencyType.iUid );
    API_TRACE_1( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolHdmiLatency::ExternalizeL - Audio Latency   = %d", iAudioLatency );
    API_TRACE_1( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolHdmiLatency::ExternalizeL - Video Latency   = %d", iVideoLatency );

    API_TRACE_( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolHdmiLatency::ExternalizeL - Return" );
}
// ---------------------------------------------------------------------------
// CAccPolHdmiAudioFormat::ExternalizeL()
// ---------------------------------------------------------------------------
//
void CAccPolHdmiAudioFormat::ExternalizeL( RWriteStream& aStream ) const
    {
    API_TRACE_( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolHdmiAudioFormat::ExternalizeL() - Enter" );

    //Add object type at the beginning
    aStream.WriteUint8L( ObjectType() );

    aStream.WriteInt32L( iAudioFormat.iUid );
    aStream.WriteUint32L( iMaxChannelCount );
    aStream.WriteUint32L( iBitResolution );
    aStream.WriteUint32L( iMaxBitResolution );
    aStream.WriteUint32L( iSamFreq );
    aStream.WriteUint32L( iFormateDependentValue );

    API_TRACE_1( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolHdmiAudioFormat::ExternalizeL - Object Type             = %d", ObjectType() );
    API_TRACE_1( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolHdmiAudioFormat::ExternalizeL - AudioFormat Uid         = %d", iAudioFormat.iUid );
    API_TRACE_1( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolHdmiAudioFormat::ExternalizeL - Channel count           = %d", iMaxChannelCount );
    API_TRACE_1( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolHdmiAudioFormat::ExternalizeL - Bit Resolution          = %d", iBitResolution );
    API_TRACE_1( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolHdmiAudioFormat::ExternalizeL - Maximum Bit Resolution  = %d", iMaxBitResolution );
    API_TRACE_1( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolHdmiAudioFormat::ExternalizeL - Sam Freq                = %d", iSamFreq );
    API_TRACE_1( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolHdmiAudioFormat::ExternalizeL - Format Dependen tValue  = %d", iFormateDependentValue );

    API_TRACE_( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolHdmiAudioFormat::ExternalizeL - Return" );
    }
Beispiel #20
0
EXPORT_C void CDummyField::ExternalizeL(RWriteStream& aStream)const
{
    aStream.WriteUint8L(0);  // empty streams cause problems
}
void CAgnTzRules::ExternalizeL(RWriteStream& aStream) const
	{
	aStream.WriteUint8L(iTzZoneIsSystemRule);
	aStream << iTzZoneStreamId;
	}