photosgallery/slideshow/view/src/shwslideshowkeyhandler.h
changeset 0 4e91876724a2
equal deleted inserted replaced
-1:000000000000 0:4e91876724a2
       
     1 /*
       
     2 * Copyright (c) 2006-2007 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:    The view key handling control for the slideshow
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __CSHWSLIDESHOWKEYHANDLER_H__
       
    22 #define __CSHWSLIDESHOWKEYHANDLER_H__
       
    23 
       
    24 // INCLUDES
       
    25 #include <coecntrl.h>
       
    26 #include <glxuiutility.h>
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class CShwSlideshowEngine;
       
    30 class CShwSlideShowPauseHandler;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35  *  CShwSlideShowKeyHandler
       
    36  * @internal reviewed 07/06/2007 by Kimmo Hoikka
       
    37  */
       
    38 NONSHARABLE_CLASS( CShwSlideShowKeyHandler ) : public CCoeControl
       
    39     {
       
    40     public: // Constructors and destructor
       
    41 
       
    42         /**
       
    43          * Constructor.
       
    44          * @param reference to the slide show engine
       
    45          * @param reference to the pause handler
       
    46          * @param reference to the screen furniture
       
    47          * @param the slideshow view's id
       
    48          */
       
    49          static CShwSlideShowKeyHandler* NewL( 
       
    50             CShwSlideshowEngine& aEngine,
       
    51             CShwSlideShowPauseHandler& aPauseHandler,
       
    52             TInt& aState  );
       
    53 
       
    54         /**
       
    55          * Destructor.
       
    56          */
       
    57         ~CShwSlideShowKeyHandler();
       
    58 
       
    59     private:
       
    60 
       
    61         /**
       
    62          * Constructor
       
    63          * @ref CShwSlideShowKeyHandler::NewL
       
    64          */
       
    65          CShwSlideShowKeyHandler(
       
    66             CShwSlideshowEngine& aEngine,
       
    67             CShwSlideShowPauseHandler& aPauseHandler,
       
    68             TInt& aState  );
       
    69          /**
       
    70           * ConstructL
       
    71           * @ref CShwSlideShowKeyHandler::ConstructL
       
    72           */
       
    73          void ConstructL();
       
    74 
       
    75     public: // From CCoeControl
       
    76 
       
    77         /**
       
    78          * @ref CCoeControl::OfferKeyEventL
       
    79          */	
       
    80         TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
       
    81 
       
    82     private: // Implementation
       
    83 
       
    84         // Ref: The slideshow engine
       
    85         CShwSlideshowEngine& iEngine;
       
    86         
       
    87         /// Ref: the slideshow pause handler
       
    88         CShwSlideShowPauseHandler& iPauseHandler;
       
    89         
       
    90         CGlxUiUtility* iUiUtility;
       
    91         
       
    92         /// The slideshow view's id
       
    93         TInt& iState ;
       
    94     };
       
    95 
       
    96 #endif // __CSHWSLIDESHOWKEYHANDLER_H__
       
    97