mpxplugins/viewplugins/views/playbackview/inc/mpxplaybackviewcontainer.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 playback view's container implementation.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_CMPXPLAYBACKVIEWCONTAINER_H
       
    21 #define C_CMPXPLAYBACKVIEWCONTAINER_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 audio view.
       
    36  *
       
    37  *  @lib mpxplaybackview.lib
       
    38  *  @since S60 v3.0
       
    39  */
       
    40 NONSHARABLE_CLASS( CMPXPlaybackViewContainer ) : public CMPXCommonPlaybackViewContainer
       
    41     {
       
    42 public:
       
    43 
       
    44     /**
       
    45      * C++ default constructor.
       
    46      *
       
    47      * @param aLayoutObserver    Observer to send layout switch events to.
       
    48      * @param aIsEmbedded        ETrue if Music Player is in embedded mode.
       
    49      */
       
    50     CMPXPlaybackViewContainer(
       
    51         MEikCommandObserver* aCommandObserver,
       
    52         MMPXLayoutSwitchObserver* aLayoutObserver,
       
    53         MMPXPlaybackViewLayout* aLayout );
       
    54 
       
    55     /**
       
    56      * Symbian 2nd phase constructor.
       
    57      * 
       
    58      * @param aRect Frame rectangle for container.
       
    59      */
       
    60     void ConstructL( const TRect& aRect );
       
    61 
       
    62     /**
       
    63      * Destructor.
       
    64      */
       
    65     ~CMPXPlaybackViewContainer();
       
    66 
       
    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     /**
       
    89      * From CoeControl.
       
    90      * Gets the control's help context.
       
    91      *
       
    92      * @param aContext The control's help context.
       
    93      */
       
    94     void GetHelpContext( TCoeHelpContext& aContext ) const;
       
    95 
       
    96     };
       
    97 
       
    98 #endif  // C_CMPXPLAYBACKVIEWCONTAINER_H
       
    99 
       
   100 // End of File