diff -r b023a8d2866a -r ea65f74e6de4 photosgallery/slideshow/view/inc/shwslideshowview.h --- a/photosgallery/slideshow/view/inc/shwslideshowview.h Thu Jul 15 18:39:01 2010 +0300 +++ b/photosgallery/slideshow/view/inc/shwslideshowview.h Thu Aug 19 09:55:03 2010 +0300 @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include "shwengineobserver.h" @@ -73,7 +74,8 @@ public MShwGestureObserver, public MStorageNotifierObserver, public MGlxTvObserver, - public MGlxHDMIDecoderObserver + public MGlxHDMIDecoderObserver, + public MAknWsEventObserver { public: @@ -139,6 +141,9 @@ */ void HandleForegroundEventL(TBool aForeground); + public: // From MAknWsEventObserver + void HandleWsEventL(const TWsEvent& aEvent, CCoeControl* aDestination); + public: // From CGlxViewBase /** @@ -341,6 +346,11 @@ * for which HDMI advance decoding will be done */ TInt GetNextIndex(); + /** + * Returns the application foreground status. + * Foreground status is found using WindowsGroupID + */ + TBool IsAppInForegroundL(); public: //to keep in track which of the command set is active/on top enum TShwState @@ -425,7 +435,6 @@ TShwState iShwState; TShwFurniture iShwFurniture; - TInt iCurrentActiveCommandSet; CShwGestureControl* iShwGestureControl; GestureHelper::CGestureControl* iGestureControl; CAlfControlGroup* iGestureControlGroup; @@ -444,6 +453,7 @@ TInt iHdmiWidth; TInt iHdmiHeight; + CAknWsEventMonitor* iAknEventMonitor;// not owned }; #endif // C_SHWSLIDESHOWVIEW_H