wmdrm/camese/wmdrmdlaapp/inc/wmdrmdlabrowsercontainer.h
changeset 0 95b198f216e5
child 70 2625ef7905cb
equal deleted inserted replaced
-1:000000000000 0:95b198f216e5
       
     1 /*
       
     2 * Copyright (c) 2008 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:  Interface class for WMDRM DLA Browser Container
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_WMDRMDLABROWSERCONTAINER_H
       
    20 #define C_WMDRMDLABROWSERCONTAINER_H
       
    21 
       
    22 #include <coecntrl.h>
       
    23 
       
    24 class CAknView;
       
    25 class MBrCtlSpecialLoadObserver;
       
    26 class CBrCtlInterface;
       
    27 
       
    28 class CWmDrmDlaBrowserContainer : public CCoeControl
       
    29     {
       
    30 
       
    31     public:
       
    32 
       
    33         static CWmDrmDlaBrowserContainer* NewL( CAknView* aView, 
       
    34                                                 MBrCtlSpecialLoadObserver* aObserver );
       
    35         static CWmDrmDlaBrowserContainer* NewLC( CAknView* aView, 
       
    36                                                  MBrCtlSpecialLoadObserver* aObserver );
       
    37 
       
    38         /**
       
    39          * Destructor.
       
    40          */
       
    41         virtual ~CWmDrmDlaBrowserContainer();
       
    42         
       
    43         /**
       
    44          * Returns pointer to the CBrCtlInterface owned by the container.
       
    45          * @return A pointer to CBrCtlInterface
       
    46          */        
       
    47         CBrCtlInterface* BrCtlInterface();
       
    48     
       
    49         
       
    50     public: // From CCoeControl
       
    51 
       
    52         /**
       
    53          * @see CCoeControl
       
    54          */
       
    55         TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType );
       
    56         
       
    57         /**
       
    58          * @see CCoeControl
       
    59          */
       
    60         TInt CountComponentControls() const;
       
    61 
       
    62         /**
       
    63          * @see CCoeControl
       
    64          */
       
    65         CCoeControl* ComponentControl( TInt aIndex ) const;
       
    66 
       
    67         /**
       
    68          * @see CCoeControl
       
    69          */
       
    70         void SizeChanged();
       
    71 
       
    72         /**
       
    73          * @see CCoeControl
       
    74          */
       
    75         void FocusChanged( TDrawNow aDrawNow );
       
    76         
       
    77         /**
       
    78          * @see CCoeControl
       
    79          */
       
    80         void HandleResourceChange( TInt aType );    
       
    81     
       
    82     private:
       
    83 
       
    84         CWmDrmDlaBrowserContainer( CAknView* aView );
       
    85         void ConstructL( MBrCtlSpecialLoadObserver* aObserver );
       
    86 
       
    87     private: // data
       
    88    
       
    89         //Not owned
       
    90         CAknView* iView;
       
    91         
       
    92         CBrCtlInterface* iBrCtlInterface;
       
    93         
       
    94     };
       
    95 
       
    96 #endif // C_WMDRMDLABROWSERCONTAINER_H