idlehomescreen/xmluicontroller/src/transactionfactoryimpl.cpp
branchRCL_3
changeset 26 1b758917cafc
parent 0 f72a12da539e
equal deleted inserted replaced
25:137ebc85284b 26:1b758917cafc
   150     
   150     
   151     return element;
   151     return element;
   152     }    
   152     }    
   153 
   153 
   154 MTransactionElement*
   154 MTransactionElement*
       
   155     CTransactionFactoryImpl::CreateDataBufferTransactionElementL(
       
   156         CXnNodeAppIf& aTarget,
       
   157         const TDesC8& aData,
       
   158         TInt aPriority,
       
   159         const TDesC& aCid, 
       
   160         TInt aIndex )
       
   161     {
       
   162     // Instantiate element
       
   163     CDataBufferTransactionElement* element = NewInstanceL< CDataBufferTransactionElement >();
       
   164     CleanupStack::PushL( element );
       
   165     
       
   166     // Initialize
       
   167     element->InitializeL( aTarget, aData, aCid, aIndex );
       
   168     CleanupStack::Pop( element );
       
   169     
       
   170     // Reserve
       
   171     iReservedElements.AddLast( *element );
       
   172     
       
   173     // Set content priority
       
   174     element->SetContentPriority( aPriority );
       
   175         
       
   176     return element;
       
   177     }    
       
   178 
       
   179 MTransactionElement*
   155     CTransactionFactoryImpl::CreateEmptyContentTransactionElementL(
   180     CTransactionFactoryImpl::CreateEmptyContentTransactionElementL(
   156         CXnNodeAppIf& aTarget,
   181         CXnNodeAppIf& aTarget,
   157         TInt aIndex)
   182         TInt aIndex)
   158     {
   183     {
   159     // Instantiate
   184     // Instantiate