webengine/widgetregistry/Client/src/WidgetRegistryClient.cpp
branchRCL_3
changeset 48 79859ed3eea9
parent 35 1f3c3f2f5b0a
child 49 919f36ff910f
equal deleted inserted replaced
47:e1bea15f9a39 48:79859ed3eea9
    17 */
    17 */
    18 
    18 
    19 #include <e32base.h>
    19 #include <e32base.h>
    20 #include <f32file.h>
    20 #include <f32file.h>
    21 #include <s32mem.h>
    21 #include <s32mem.h>
    22 #include <widgetregistryclient.h>
    22 #include "WidgetRegistryClient.h"
       
    23 
    23 
    24 
    24 // ============================================================================
    25 // ============================================================================
    25 // Starts the widget registry server
    26 // Starts the widget registry server
    26 //
    27 //
    27 // @since 3.1
    28 // @since 3.1
   623 // ============================================================================
   624 // ============================================================================
   624 //
   625 //
   625 CBufFlat* RWidgetRegistryClientSession::MarshalPropertyValuesL(
   626 CBufFlat* RWidgetRegistryClientSession::MarshalPropertyValuesL(
   626     const RPointerArray<CWidgetPropertyValue>&  aPropertyValues ) const
   627     const RPointerArray<CWidgetPropertyValue>&  aPropertyValues ) const
   627     {
   628     {
   628     CBufFlat* buf = CBufFlat::NewL( 4096 );
   629     CBufFlat* buf = CBufFlat::NewL( 512 );
   629     CleanupStack::PushL( buf );
   630     CleanupStack::PushL( buf );
   630 
   631 
   631     RBufWriteStream stream( *buf );
   632     RBufWriteStream stream( *buf );
   632     CleanupClosePushL( stream );
   633     CleanupClosePushL( stream );
   633 
   634 
   634     TInt i = 0;
   635     TInt i = 0;
   635     for ( ; i < aPropertyValues.Count(); ++i )
   636     for ( ; i < EWidgetPropertyIdCount; ++i )
   636         {
   637         {
   637         aPropertyValues[i]->SerializeL( stream );
   638         aPropertyValues[i]->SerializeL( stream );
   638         }
   639         }
   639 
   640 
   640     CleanupStack::PopAndDestroy( &stream );
   641     CleanupStack::PopAndDestroy( &stream );