equal
deleted
inserted
replaced
861 TBool isForeground = IsForegroundSession( |
861 TBool isForeground = IsForegroundSession( |
862 static_cast<CPeninputServerSession*>(aMessage.Session())); |
862 static_cast<CPeninputServerSession*>(aMessage.Session())); |
863 //message requests UI attribute is always handled. |
863 //message requests UI attribute is always handled. |
864 switch(aMessage.Function()) |
864 switch(aMessage.Function()) |
865 { |
865 { |
866 |
866 case EPeninputRequestEnableGfxTransEffect: |
|
867 { |
|
868 if( iUseWindowCtrl && iPenUiCtrl ) |
|
869 { |
|
870 TBool enable = EFalse; |
|
871 TPckg<TBool> msg( enable ); |
|
872 aMessage.ReadL( 0,msg ); |
|
873 iPenUiCtrl->EnableGfxTransEffect( enable ); |
|
874 } |
|
875 } |
|
876 break; |
867 case EPeninputRequestUiIsVisible: |
877 case EPeninputRequestUiIsVisible: |
868 { |
878 { |
869 TPckg<TBool> msg(iActive); |
879 TPckg<TBool> msg(iActive); |
870 |
880 |
871 aMessage.WriteL(0,msg); |
881 aMessage.WriteL(0,msg); |
2013 TUint16* buf = const_cast<TUint16* >( aEventData.Ptr() ); |
2023 TUint16* buf = const_cast<TUint16* >( aEventData.Ptr() ); |
2014 TBool* retVal = reinterpret_cast< TBool* > ( buf ); |
2024 TBool* retVal = reinterpret_cast< TBool* > ( buf ); |
2015 iIsLayoutReDrawAllowWhenActive = *retVal; |
2025 iIsLayoutReDrawAllowWhenActive = *retVal; |
2016 } |
2026 } |
2017 break; |
2027 break; |
2018 |
2028 case ESignalUpdatePointerSuppressor: |
|
2029 { |
|
2030 UpdatePointerEventSuppressor( aEventData ); |
|
2031 } |
|
2032 break; |
2019 default: |
2033 default: |
2020 if(iUseWindowCtrl) |
2034 if(iUseWindowCtrl) |
2021 { |
2035 { |
2022 iPenUiCtrl->HandleNGASpecificSignal(aEventType, aEventData); |
2036 iPenUiCtrl->HandleNGASpecificSignal(aEventType, aEventData); |
2023 } |
2037 } |
3029 void CPeninputServer::HandleDiscreetPopNotification() |
3043 void CPeninputServer::HandleDiscreetPopNotification() |
3030 { |
3044 { |
3031 iDiscreetPopArea = iAknUiSrv.GetInUseGlobalDiscreetPopupRect(); |
3045 iDiscreetPopArea = iAknUiSrv.GetInUseGlobalDiscreetPopupRect(); |
3032 iAnimObj->SetDiscreetPopArea(iDiscreetPopArea); |
3046 iAnimObj->SetDiscreetPopArea(iDiscreetPopArea); |
3033 } |
3047 } |
|
3048 |
|
3049 // --------------------------------------------------------------------------- |
|
3050 // CPeninputServer::UpdatePointerEventSuppressor() |
|
3051 // Update parameters of pointer event suppressor. |
|
3052 // --------------------------------------------------------------------------- |
|
3053 // |
|
3054 void CPeninputServer::UpdatePointerEventSuppressor( const TDesC& aData ) |
|
3055 { |
|
3056 TUint16* buf = const_cast<TUint16* >( aData.Ptr() ); |
|
3057 TPointerEventSuppressorParameters* parameters = |
|
3058 reinterpret_cast<TPointerEventSuppressorParameters*> ( buf ); |
|
3059 |
|
3060 iAnimObj->UpdatePointerEventSuppressor( *parameters ); |
|
3061 } |
|
3062 |
3034 // ======== class CEventQueue======== |
3063 // ======== class CEventQueue======== |
3035 // |
3064 // |
3036 // --------------------------------------------------------------------------- |
3065 // --------------------------------------------------------------------------- |
3037 // CEventQueue::CEventQueue |
3066 // CEventQueue::CEventQueue |
3038 // Constructor. Adds the active object to the active scheduler |
3067 // Constructor. Adds the active object to the active scheduler |