uiacceltk/hitchcock/ServerCore/Src/alfeffectutils.cpp
branchRCL_3
changeset 34 3a60ebea00d0
parent 24 f93c875b566e
child 41 cd0ae4656946
equal deleted inserted replaced
24:f93c875b566e 34:3a60ebea00d0
   810         delete iDrawingCompleteTimer;
   810         delete iDrawingCompleteTimer;
   811         iDrawingCompleteTimer = NULL;
   811         iDrawingCompleteTimer = NULL;
   812         }
   812         }
   813     }
   813     }
   814 
   814 
       
   815 void CFullScreenEffectState::ConstructL(const CFullScreenEffectState& aEffectState)
       
   816     {
       
   817     iAction = aEffectState.iAction;
       
   818     iHandle = aEffectState.iHandle;
       
   819     iType = aEffectState.iType;
       
   820     iLongAppStartTimeout = aEffectState.iLongAppStartTimeout;
       
   821     iTimeout = aEffectState.iTimeout;
       
   822     iToWg = aEffectState.iToWg;
       
   823     iFromWg = aEffectState.iFromWg;
       
   824     iToAppId = aEffectState.iToAppId;
       
   825     iFromAppId = aEffectState.iFromAppId;
       
   826 
       
   827     iToSecureId = aEffectState.iToSecureId;
       
   828     iFromSecureId = aEffectState.iFromSecureId;
       
   829     
       
   830     iRect.iTl.iX = aEffectState.iRect.iTl.iX;
       
   831     iRect.iTl.iY = aEffectState.iRect.iTl.iY;
       
   832     iRect.iBr.iX = aEffectState.iRect.iBr.iX;
       
   833     iRect.iBr.iY = aEffectState.iRect.iBr.iY;
       
   834     iState = aEffectState.iState;
       
   835     iEffectName = aEffectState.iEffectName->AllocL();
       
   836     iEffectType = aEffectState.iEffectType;
       
   837     iCompletionHandle = aEffectState.iCompletionHandle;
       
   838     iTwoPhaseEffect = CFullScreenEffectState::EOnlyOnePart;
       
   839     }
   815 
   840 
   816 void CFullScreenEffectState::ConstructL(
   841 void CFullScreenEffectState::ConstructL(
   817         TInt aAction,
   842         TInt aAction,
   818         RMemReadStream& aStream)
   843         RMemReadStream& aStream)
   819     {
   844     {
   820     iAction = aAction;
   845     iAction = aAction;
   821     iHandle = aStream.ReadInt32L();
   846     iHandle = aStream.ReadInt32L();
   822     iType = aStream.ReadInt32L();
   847     iType = aStream.ReadInt32L();
   823     iTimeoutTriggered = aStream.ReadInt32L();
   848     iLongAppStartTimeout = aStream.ReadInt32L();
       
   849     iTimeout = aStream.ReadInt32L();
   824     iToWg = aStream.ReadInt32L();
   850     iToWg = aStream.ReadInt32L();
   825     iFromWg = aStream.ReadInt32L();
   851     iFromWg = aStream.ReadInt32L();
   826     iToAppId = aStream.ReadInt32L();
   852     iToAppId = aStream.ReadInt32L();
   827     iFromAppId = aStream.ReadInt32L();
   853     iFromAppId = aStream.ReadInt32L();
   828 
   854 
   829     iToSecureId = aStream.ReadInt32L();
   855     iToSecureId = aStream.ReadInt32L();
   830     iFromSecureId = aStream.ReadInt32L();
   856     iFromSecureId = aStream.ReadInt32L();
   831     /*TInt flags =*/
   857     
       
   858     // TInt flags
   832     aStream.ReadInt32L();
   859     aStream.ReadInt32L();
   833     iRect.iTl.iX = aStream.ReadInt32L();
   860     iRect.iTl.iX = aStream.ReadInt32L();
   834     iRect.iTl.iY = aStream.ReadInt32L();
   861     iRect.iTl.iY = aStream.ReadInt32L();
   835     iRect.iBr.iX = aStream.ReadInt32L();
   862     iRect.iBr.iX = aStream.ReadInt32L();
   836     iRect.iBr.iY = aStream.ReadInt32L();
   863     iRect.iBr.iY = aStream.ReadInt32L();
   837 
   864 
   838     ResolveFileNameL(aStream);
   865     ResolveFileNameL(aStream);
   839 
   866 
   840     iCompletionHandle = iHandle;
   867     iCompletionHandle = iHandle;
   841     }
   868     iTwoPhaseEffect = CFullScreenEffectState::EOnlyOnePart;
       
   869     }
       
   870 
       
   871 void CFullScreenEffectState::SetState(TEffectState aState)
       
   872     {
       
   873     if (aState >= iState)
       
   874         {
       
   875         iState = aState;
       
   876         }
       
   877     else
       
   878         {
       
   879         __ALFFXLOGSTRING2("CFullScreenEffectState::SetState - WARNING! Trying to set to previous state. %d -> %d", iState, aState);
       
   880         }
       
   881     };
       
   882         
       
   883 TEffectState CFullScreenEffectState::State()
       
   884     {
       
   885     return iState;
       
   886     }
       
   887       
   842 
   888 
   843 void CControlEffectState::ConstructL(TInt aAction,
   889 void CControlEffectState::ConstructL(TInt aAction,
   844         RMemReadStream& aStream)
   890         RMemReadStream& aStream)
   845     {
   891     {
   846     iAction = aAction;
   892     iAction = aAction;