mpxplugins/viewplugins/views/embeddedplaybackview/inc/mpxembeddedplaybackviewcontainer.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 embedded playback view's container implementation.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_CMPXEMBEDDEDPLAYBACKVIEWCONTAINER_H
       
    21 #define C_CMPXEMBEDDEDPLAYBACKVIEWCONTAINER_H
       
    22 
       
    23 
       
    24 // INCLUDES
       
    25 #include "mpxcommonplaybackviewcontainer.h"
       
    26 
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class MMPXLayoutSwitchObserver;
       
    30 class MMPXPlaybackViewLayout;
       
    31 class CMPXCommonUiHelper;
       
    32 
       
    33 // CLASS DECLARATION
       
    34 
       
    35 /**
       
    36  *  Container class for audio view.
       
    37  *
       
    38  *  @lib mpxplaybackview.lib
       
    39  *  @since S60 v3.0
       
    40  */
       
    41 NONSHARABLE_CLASS( CMPXEmbeddedPlaybackViewContainer ) : public CMPXCommonPlaybackViewContainer
       
    42     {
       
    43 public:
       
    44 
       
    45     /**
       
    46      * C++ default constructor.
       
    47      *
       
    48      * @param aLayoutObserver    Observer to send layout switch events to.
       
    49      * @param aIsEmbedded        ETrue if Music Player is in embedded mode.
       
    50      * @param aLayout            Playback view layout
       
    51      * @param aCommonUiHelper    Instance of common ui helper
       
    52      */
       
    53     CMPXEmbeddedPlaybackViewContainer(
       
    54         MEikCommandObserver* aCommandObserver,
       
    55         MMPXLayoutSwitchObserver* aLayoutObserver,
       
    56         MMPXPlaybackViewLayout* aLayout,
       
    57         CMPXCommonUiHelper* aCommonUiHelper );
       
    58 
       
    59     /**
       
    60      * Symbian 2nd phase constructor.
       
    61      * 
       
    62      * @param aRect Frame rectangle for container.
       
    63      */
       
    64     void ConstructL( const TRect& aRect );
       
    65 
       
    66     /**
       
    67      * Destructor.
       
    68      */
       
    69     ~CMPXEmbeddedPlaybackViewContainer();
       
    70 
       
    71 
       
    72     /**
       
    73      * Set layout for all elements and set sizes for icons.
       
    74      *
       
    75      * @since S60 3.0
       
    76      */
       
    77     void UpdateLayout();
       
    78 
       
    79 // from base class CMPXCommonPlaybackViewContainer
       
    80     
       
    81     /**
       
    82      * Sets main pane mode.
       
    83      *
       
    84      * @since S60 3.1
       
    85      * @param aMode Playback mode.
       
    86      */
       
    87     void SetMode( TMPXPbvPlaybackMode aMode );
       
    88     
       
    89 // from base class CoeControl
       
    90 
       
    91     /**
       
    92      * From CoeControl.
       
    93      * Handles key events.
       
    94      *
       
    95      * @param aKeyEvent The key event.
       
    96      * @param aType The type of key event.
       
    97      */
       
    98     TKeyResponse OfferKeyEventL(
       
    99         const TKeyEvent& aKeyEvent,
       
   100         TEventCode aType );
       
   101 
       
   102     /**
       
   103      * From CoeControl.
       
   104      * Gets the control's help context.
       
   105      *
       
   106      * @param aContext The control's help context.
       
   107      */
       
   108     void GetHelpContext( TCoeHelpContext& aContext ) const;
       
   109     
       
   110 private:
       
   111 
       
   112     CMPXCommonUiHelper* iCommonUiHelper; // not owned
       
   113     };
       
   114 
       
   115 #endif  // C_CMPXEMBEDDEDPLAYBACKVIEWCONTAINER_H
       
   116 
       
   117 // End of File