idlehomescreen/xmluicontroller/src/transactionfactoryimpl.cpp
branchRCL_3
changeset 35 3321d3e205b6
parent 34 5456b4e8b3a8
equal deleted inserted replaced
34:5456b4e8b3a8 35:3321d3e205b6
    47                             CCssPropertyMap& aPropertyMap )
    47                             CCssPropertyMap& aPropertyMap )
    48     {
    48     {
    49     CTransactionFactoryImpl* self =
    49     CTransactionFactoryImpl* self =
    50                 new( ELeave ) CTransactionFactoryImpl( aContentPriorityMap,
    50                 new( ELeave ) CTransactionFactoryImpl( aContentPriorityMap,
    51                                                        aPropertyMap );
    51                                                        aPropertyMap );
    52     
       
    53     return self;
    52     return self;
       
    53     }
       
    54 
       
    55 RAiPolicyElementArray& CTransactionFactoryImpl::PolicyArray()
       
    56     {
       
    57     return iPolicyArray;
       
    58     }
       
    59 
       
    60 void CTransactionFactoryImpl::ResetPolicyArray()
       
    61     {
       
    62     iPolicyArray.Reset();
    54     }
    63     }
    55     
    64     
    56 CTransactionFactoryImpl::~CTransactionFactoryImpl()
    65 CTransactionFactoryImpl::~CTransactionFactoryImpl()
    57     {
    66     {
    58     // Delete transaction objects
    67     // Delete transaction objects
    60     DeleteTransactionList( iReservedTransactions );
    69     DeleteTransactionList( iReservedTransactions );
    61     
    70     
    62     // Delete transaction elements
    71     // Delete transaction elements
    63     DeleteElementList( iAvailableElements );
    72     DeleteElementList( iAvailableElements );
    64     DeleteElementList( iReservedElements );
    73     DeleteElementList( iReservedElements );
       
    74     
       
    75     ResetPolicyArray();
    65     }
    76     }
    66 
    77 
    67 MTransaction* CTransactionFactoryImpl::CreateTransactionL( TInt aTxId )
    78 MTransaction* CTransactionFactoryImpl::CreateTransactionL( TInt aTxId )
    68     {
    79     {
    69     CTransaction* tr = NULL;
    80     CTransaction* tr = NULL;