idlehomescreen/xmluirendering/uiengine/src/xnplugindata.cpp
branchRCL_3
changeset 93 b01126ce0bec
parent 88 3321d3e205b6
child 102 ba63c83f4716
equal deleted inserted replaced
88:3321d3e205b6 93:b01126ce0bec
   497 //
   497 //
   498 void CXnPluginData::Flush()
   498 void CXnPluginData::Flush()
   499     {
   499     {
   500     // Don't touch to iOwner, because this plugin might be reused later
   500     // Don't touch to iOwner, because this plugin might be reused later
   501     
   501     
       
   502     delete iDirtyRegion;
       
   503     iDirtyRegion = NULL;
       
   504     
   502     // clear all flags, except editable and removable
   505     // clear all flags, except editable and removable
   503     TBool removable = iFlags.IsSet( EIsRemovable );
   506     TBool removable = iFlags.IsSet( EIsRemovable );
   504     TBool editable = iFlags.IsSet( EIsEditable );
   507     TBool editable = iFlags.IsSet( EIsEditable );
   505     
   508     
   506     iFlags.ClearAll();
   509     iFlags.ClearAll();
   650         iFlags.Set( EIsRemovable );
   653         iFlags.Set( EIsRemovable );
   651         iFlags.Set( EIsEditable );               
   654         iFlags.Set( EIsEditable );               
   652         }
   655         }
   653     }
   656     }
   654 
   657 
       
   658 // -----------------------------------------------------------------------------
       
   659 // -----------------------------------------------------------------------------
       
   660 //
       
   661 TXnDirtyRegion* CXnPluginData::CreateDirtyRegionL( CXnNode& aRootNode, 
       
   662     CCoeControl& aControl )
       
   663     {
       
   664     delete iDirtyRegion;
       
   665     iDirtyRegion = NULL;
       
   666     iDirtyRegion = new (ELeave) TXnDirtyRegion;
       
   667     iDirtyRegion->iRegion.Clear();
       
   668     iDirtyRegion->iControl = &aControl;
       
   669     iDirtyRegion->iRootNode = &aRootNode;
       
   670     iDirtyRegion->iDirtyList.Reset();
       
   671     iDirtyRegion->iLayoutControl = 0;
       
   672     return iDirtyRegion;
       
   673     }
       
   674     
   655 // End of file
   675 // End of file