mpxplugins/viewplugins/views/podcastplaybackview/inc/mpxpodcastplaybackviewcontainer.h
changeset 0 ff3acec5bc43
equal deleted inserted replaced
-1:000000000000 0:ff3acec5bc43
       
     1 /*
       
     2 * Copyright (c) 2006 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:  MPX podcast playback view's container implementation.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_CMPXPODCASTPLAYBACKVIEWCONTAINER_H
       
    21 #define C_CMPXPODCASTPLAYBACKVIEWCONTAINER_H
       
    22 
       
    23 
       
    24 // INCLUDES
       
    25 #include "mpxcommonplaybackviewcontainer.h"
       
    26 
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class MMPXLayoutSwitchObserver;
       
    30 class MMPXPlaybackViewLayout;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35  *  Container class for podcast playback view.
       
    36  *
       
    37  *  @lib mpxpodcastplaybackview.lib
       
    38  *  @since S60 v3.0
       
    39  */
       
    40 NONSHARABLE_CLASS( CMPXPodcastPlaybackViewContainer ) : public CMPXCommonPlaybackViewContainer
       
    41     {
       
    42 public:
       
    43 
       
    44     /**
       
    45      * C++ default constructor.
       
    46      *
       
    47      * @param aCommandObserver  Observer for commands.
       
    48      * @param aLayoutObserver   Observer to send layout switch events to.
       
    49      * @param aLayout           Pointer to playback view layout.
       
    50      */
       
    51     CMPXPodcastPlaybackViewContainer(
       
    52         MEikCommandObserver* aCommandObserver,
       
    53         MMPXLayoutSwitchObserver* aLayoutObserver,
       
    54         MMPXPlaybackViewLayout* aLayout );
       
    55 
       
    56     /**
       
    57      * Symbian 2nd phase constructor.
       
    58      * 
       
    59      * @param aRect Frame rectangle for container.
       
    60      */
       
    61     void ConstructL( const TRect& aRect );
       
    62 
       
    63     /**
       
    64      * Destructor.
       
    65      */
       
    66     ~CMPXPodcastPlaybackViewContainer();
       
    67 
       
    68     /**
       
    69      * Set layout for all elements and set sizes for icons.
       
    70      *
       
    71      * @since S60 3.0
       
    72      */
       
    73     void UpdateLayout();
       
    74     
       
    75 // from base class CoeControl
       
    76 
       
    77     /**
       
    78      * From CoeControl.
       
    79      * Handles key events.
       
    80      *
       
    81      * @param aKeyEvent The key event.
       
    82      * @param aType The type of key event.
       
    83      */
       
    84     TKeyResponse OfferKeyEventL(
       
    85         const TKeyEvent& aKeyEvent,
       
    86         TEventCode aType );
       
    87     /**
       
    88      * From CoeControl.
       
    89      * Gets the control's help context.
       
    90      *
       
    91      * @param aContext The control's help context.
       
    92      */
       
    93     void GetHelpContext( TCoeHelpContext& aContext ) const;
       
    94     };
       
    95 
       
    96 #endif  // C_CMPXPODCASTPLAYBACKVIEWCONTAINER_H
       
    97 
       
    98 // End of File