コード例 #1
0
//-----------------------------------------------------------------------------
// CCFActionIndicationImpl::ExternalizeL
//-----------------------------------------------------------------------------
//
EXPORT_C void CCFActionIndicationImpl::ExternalizeL( RWriteStream& aStream )
    {
    FUNC_LOG;
    
    // Identifier
    aStream.WriteInt16L( iIdentifier->Length() );
    aStream.WriteL( *iIdentifier );
    
    // Parameters
    TPtrC buf( KNullDesC );
    TInt count = iParameters.Count();
    aStream.WriteInt16L( count );
    for( TInt i = 0; i < count; i++ )
        {
        // Key length and data
        buf.Set( iParameters[i]->Key() );
        aStream.WriteInt16L( buf.Length() );
        aStream.WriteL( buf, buf.Length() );
        
        // Value length and data
        buf.Set( iParameters[i]->Value() );
        aStream.WriteInt16L( buf.Length() );
        aStream.WriteL( buf, buf.Length() );
        }
    
    // Commit stream
    aStream.CommitL();
    }
コード例 #2
0
void CTestContextData::ExternalizeL( RWriteStream& aStream )
    {
    TPtrC keyPtr( *iKey );
    aStream.WriteInt16L( keyPtr.Length() );
    aStream.WriteL( keyPtr, keyPtr.Length() );

    TPtrC valuePtr( *iValue );
    aStream.WriteInt16L( valuePtr.Length() );
    aStream.WriteL( valuePtr, valuePtr.Length() );
    }
コード例 #3
0
// ---------------------------------------------------------------------------
// CCmStoreListItem::ExternalizeL
// ---------------------------------------------------------------------------
//
EXPORT_C void CCmStoreListItem::ExternalizeL( RWriteStream& aStream ) const
    {                
    aStream.WriteUint16L( iListId );
    aStream.WriteUint16L( iDeviceIds.Count() );
    for( TInt i = 0; i < iDeviceIds.Count(); i++ )
        {
        aStream.WriteInt16L( iDeviceIds[i] );    
        }
    aStream.WriteInt16L( iStatusValues.Count() );
    for( TInt i = 0; i < iStatusValues.Count(); i++ )
        {
        aStream.WriteInt16L( iStatusValues[i] );    
        }            
    CCmBaseListItem::ExternalizeL(aStream);              
    }
コード例 #4
0
// ------------------------------------------------------------------------------------------------
// CSmlDataField::ExternalizeL()
// Puts the class contents to the write stream
// ------------------------------------------------------------------------------------------------
EXPORT_C void CSmlDataField::ExternalizeL(RWriteStream& aStream) const
	{

	if ( iDisplayName )
		{
		aStream.WriteUint32L( iDisplayName->Length() );
		aStream << *iDisplayName;
		}
	else
		{
		aStream.WriteInt32L( 0 );
		aStream << KNullDesC;
		}
	
	aStream.WriteUint32L( iName.DesC().Length() );
	aStream << iName.DesC();	
	
	aStream.WriteUint32L( iDataType.DesC().Length() );
	aStream << iDataType.DesC();	
	aStream.WriteInt16L( iEnumValues.Count() );	
	
	for ( TInt index = 0; index < iEnumValues.Count() ; index++ )	
		{		
		aStream.WriteUint32L( iEnumValues[index].DesC().Length() );
		aStream << iEnumValues[index].DesC();
		}
	}
コード例 #5
0
void CNcdNodePreview::ExternalizeL( RWriteStream& aStream )
    {
    DLTRACEIN((""));

    // Set all the membervariable values to the stream. So,
    // that the stream may be used later to create a new
    // object.

    // First insert data that the creator of this class object will use to
    // create this class object. Class id informs what class object
    // will be created.
    
    aStream.WriteInt32L( ClassId() );
    
    aStream.WriteInt16L( iFileCount );
    
    for( int i = 0; i < iFileCount; i++ )
        {
        ExternalizeDesL( *iPreviewMimeTypes[i], aStream );
        }
    
    for( int i = 0; i < iFileCount; i++ )
        {
        ExternalizeDesL( *iUris[i], aStream );
        }
        
    DLTRACEOUT((""));
    }
コード例 #6
0
//-----------------------------------------------------------------------------
// CCFContextSubscriptionImpl::ExternalizeL
//-----------------------------------------------------------------------------
//
EXPORT_C void CCFContextSubscriptionImpl::ExternalizeL(
    RWriteStream& aStream )
{
    FUNC_LOG;

    // Context query
    iContextQuery->ExternalizeL( aStream );

    // Indicate only changes flag
    aStream.WriteInt16L( iOnlyChangesIndicated );

    // Enable data object
    aStream.WriteInt16L( iDataObjectEnabled );

    // Commit stream
    aStream.CommitL();
}
コード例 #7
0
void CCharacteristicDllIndexList::ExternalizeL(RWriteStream& aStream)
{
    TInt count=iCharacteristicList.Count();
    aStream.WriteInt16L(count);
    for (TInt i=0; i<count; i++)
    {
        iCharacteristicList[i].ExternalizeL(aStream);
    }
}
コード例 #8
0
/**
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
	}
コード例 #9
0
// ---------------------------------------------------------------------------
// CCmFillRule::ExternalizeL
// ---------------------------------------------------------------------------
//
void CCmFillRule::ExternalizeL( RWriteStream& aStream ) const
    {
    aStream.WriteInt32L( iName->Length() );
    if ( iName )
        {
        aStream << *iName;
        }
    else
        {
        aStream << KNullDesC8();
        }      
    aStream.WriteInt32L( iAmount );
    aStream.WriteInt32L( iRealSize );
    aStream.WriteInt32L( iRealCount );
    aStream.WriteInt16L( (TInt)iLimitType );
    aStream.WriteInt16L( (TInt)iMethod );
    aStream.WriteInt16L( (TInt)iMediaType );
    aStream.WriteInt16L((TInt)iSelected );
    aStream.WriteInt16L((TInt)iStatus );
    aStream.WriteInt8L(iPriority);
    aStream.WriteInt8L( iTemplateId );
    aStream.WriteInt32L( iId );
    
    aStream.WriteInt16L( iRuleArray.Count() );
    for ( TInt index(0); index < iRuleArray.Count(); index++ )
        {
        iRuleArray[index]->ExternalizeL( aStream );
        }
        
    aStream.WriteInt16L( iMediaServerArray.Count() );
    for ( TInt index(0); index < iMediaServerArray.Count(); index++ )
        {
        iMediaServerArray[index]->ExternalizeL( aStream );
        }

    aStream.WriteInt16L( iExcAlbums->Count() );
    for ( TInt index(0); index < iExcAlbums->Count(); index++ )
        {
        aStream.WriteInt32L( iExcAlbums[index].Length() );
        aStream << iExcAlbums->MdcaPoint(index);
        }
        
    aStream.WriteInt16L( iExcPlayLists->Count() );
    for ( TInt index(0); index < iExcPlayLists->Count(); index++ )
        {
        aStream.WriteInt32L( iExcPlayLists[index].Length() );
        aStream << iExcPlayLists->MdcaPoint(index);
        }             
    }
コード例 #10
0
/**
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
	}
コード例 #11
0
//-----------------------------------------------------------------------------
// CCFActionSubscriptionImpl::ExternalizeL
//-----------------------------------------------------------------------------
//
EXPORT_C void CCFActionSubscriptionImpl::ExternalizeL( RWriteStream& aStream )
    {
    FUNC_LOG;
    
    aStream.WriteInt16L( iIdentifier->Length() );
    aStream.WriteL( *iIdentifier, iIdentifier->Length() );

    // Commit stream
    aStream.CommitL();
    }
コード例 #12
0
// -----------------------------------------------------------------------------
// CShapeListManager::ExternalizeL()
// Virtual method that writes the shape to the specified write stream.
// -----------------------------------------------------------------------------
//
EXPORT_C void CShapeListManager::ExternalizeL( RWriteStream& aStream ) const
    {

    TInt count = iShapeList.Count();
    aStream.WriteInt16L( static_cast<TInt16>( count ) );

    for ( TInt index = 0; index < count; ++index )
        {
        const TShape* shape = static_cast<TShape*>( iShapeList[ index ] );
        shape->ExternalizeL( aStream );
        }
    }
コード例 #13
0
void TTcSettings::doStoreL( RWriteStream& aStream )
	{
	aStream.WriteInt16L( KTcSettingsVersion );
	// Write bearer selection
	aStream.WriteInt32L( iBearerType );
	// Write autoconnect selection
	aStream.WriteInt16L( iAutoConnect );
	// Write TCP port selection
	aStream.WriteInt16L( iTCPPort );
	// Write IAP iD
	aStream.WriteInt16L( iIAPId );
	// Write CSY name
	aStream.WriteInt32L( iCSYName );
	// Write comms port name
	aStream.WriteInt32L( iCommPort );
	// Write baudrate of comms
	aStream.WriteInt32L( iBaudrate );
	// Write first run flag
	aStream.WriteInt16L( iIsFirstRun );
	
	// Write remote tcp address as string
	TBuf<40> buf;
	iTCPRemoteAddr.Output(buf);
	
	//write length first
	aStream.WriteInt16L( buf.Length() );
	aStream.WriteL(buf);
		
	}
コード例 #14
0
void CNcdNodePreview::ExternalizeDataForRequestL( RWriteStream& aStream )
    {
    DLTRACEIN((""));

    if ( IsObsolete() )
        {
        DLINFO(("Set as obsolete. This means that server has removed the object."));
        User::Leave( KNcdErrorObsolete );
        }

    aStream.WriteInt32L( ClassId() );
    
    aStream.WriteInt16L( iFileCount );

    for( int i = 0; i < iFileCount; i++ )
        {
        ExternalizeDesL( *iPreviewMimeTypes[i], aStream );
        }
    
    DLTRACEOUT((""));
    }
コード例 #15
0
/**
Externalises the configuration of the BIC
 
@param aWriteStream A write stream to write BIC data to
*/
void CCmdPersistHalAttributes::ExternalizeL(RWriteStream& aWriteStream) const
	{
	aWriteStream.WriteInt16L(iSeverity);
	}
コード例 #16
0
// -----------------------------------------------------------------------------
// TSdpTypedTime::ExternalizeL
// Externalizes the typed time to stream
// -----------------------------------------------------------------------------
//
void TSdpTypedTime::ExternalizeL(RWriteStream& aStream) const
    {
	aStream.WriteUint32L( I64HIGH( iValue ) );
    aStream.WriteUint32L( I64LOW( iValue ) );
    aStream.WriteInt16L(iUnit);
    }