webengine/widgetregistry/Client/src/WidgetRegistryClient.cpp
branchRCL_3
changeset 49 919f36ff910f
parent 48 79859ed3eea9
equal deleted inserted replaced
48:79859ed3eea9 49:919f36ff910f
    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 
       
    24 
    23 
    25 // ============================================================================
    24 // ============================================================================
    26 // Starts the widget registry server
    25 // Starts the widget registry server
    27 //
    26 //
    28 // @since 3.1
    27 // @since 3.1
   624 // ============================================================================
   623 // ============================================================================
   625 //
   624 //
   626 CBufFlat* RWidgetRegistryClientSession::MarshalPropertyValuesL(
   625 CBufFlat* RWidgetRegistryClientSession::MarshalPropertyValuesL(
   627     const RPointerArray<CWidgetPropertyValue>&  aPropertyValues ) const
   626     const RPointerArray<CWidgetPropertyValue>&  aPropertyValues ) const
   628     {
   627     {
   629     CBufFlat* buf = CBufFlat::NewL( 512 );
   628     CBufFlat* buf = CBufFlat::NewL( 4096 );
   630     CleanupStack::PushL( buf );
   629     CleanupStack::PushL( buf );
   631 
   630 
   632     RBufWriteStream stream( *buf );
   631     RBufWriteStream stream( *buf );
   633     CleanupClosePushL( stream );
   632     CleanupClosePushL( stream );
   634 
   633 
   635     TInt i = 0;
   634     TInt i = 0;
   636     for ( ; i < EWidgetPropertyIdCount; ++i )
   635     for ( ; i < aPropertyValues.Count(); ++i )
   637         {
   636         {
   638         aPropertyValues[i]->SerializeL( stream );
   637         aPropertyValues[i]->SerializeL( stream );
   639         }
   638         }
   640 
   639 
   641     CleanupStack::PopAndDestroy( &stream );
   640     CleanupStack::PopAndDestroy( &stream );