screengrabber/inc/SGMainView.h
branchRCL_3
changeset 20 fad26422216a
parent 0 d6fe6244b863
equal deleted inserted replaced
19:b3cee849fa46 20:fad26422216a
       
     1 /*
       
     2 * Copyright (c) 2009 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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef SCREENGRABBERMAINVIEW_H
       
    21 #define SCREENGRABBERMAINVIEW_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <aknview.h>
       
    25 #include "SGStd.h"
       
    26 
       
    27 
       
    28 
       
    29 // CONSTANTS
       
    30 // UID of view
       
    31 const TUid KMainViewUID = {1};
       
    32 
       
    33 // FORWARD DECLARATIONS
       
    34 class CScreenGrabberMainContainer;
       
    35 
       
    36 // CLASS DECLARATION
       
    37 
       
    38 /**
       
    39 *  CScreenGrabberMainView view class.
       
    40 * 
       
    41 */
       
    42 class CScreenGrabberMainView : public CAknView
       
    43     {
       
    44     public: // Constructors and destructor
       
    45 
       
    46         /**
       
    47         * EPOC default constructor.
       
    48         */
       
    49         void ConstructL();
       
    50 
       
    51         /**
       
    52         * Destructor.
       
    53         */
       
    54         ~CScreenGrabberMainView();
       
    55 
       
    56     public: // Functions from base classes
       
    57         
       
    58         /**
       
    59         * From ?base_class ?member_description
       
    60         */
       
    61         TUid Id() const;
       
    62 
       
    63         /**
       
    64         * From ?base_class ?member_description
       
    65         */
       
    66         void HandleCommandL(TInt aCommand);
       
    67 
       
    68         /**
       
    69         * From ?base_class ?member_description
       
    70         */
       
    71         void HandleClientRectChange();
       
    72 
       
    73 #ifdef SCREENGRABBER_SCREEN_RESOLUTION_CHANGE_SUPPORT
       
    74     private:
       
    75         // From MEikMenuObserver
       
    76         void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);
       
    77 #endif
       
    78         
       
    79     private:
       
    80 
       
    81         /**
       
    82         * From AknView, ?member_description
       
    83         */
       
    84         void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId,
       
    85             const TDesC8& aCustomMessage);
       
    86 
       
    87         /**
       
    88         * From AknView, ?member_description
       
    89         */
       
    90         void DoDeactivate();
       
    91 
       
    92     private: // Data
       
    93         CScreenGrabberMainContainer* iContainer;
       
    94         
       
    95     };
       
    96 
       
    97 #endif
       
    98 
       
    99 // End of File