mpxplugins/viewplugins/views/playbackview/src/mpxplaybackviewcontainer.cpp
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:  Implementation of Playback view's container.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 
       
    22 #include <AknDef.h>
       
    23 #include <mpxconstants.h>
       
    24 
       
    25 #include "mpxplaybackview.hlp.hrh"
       
    26 #include "mpxplaybackviewcontainer.h"
       
    27 #include "mpxplaybackviewlayoutinterface.h"
       
    28 #include "mpxlog.h"
       
    29 
       
    30 
       
    31 // CONSTANTS
       
    32 
       
    33 
       
    34 // ======== MEMBER FUNCTIONS ========
       
    35 
       
    36 // ---------------------------------------------------------------------------
       
    37 // C++ default constructor can NOT contain any code, that
       
    38 // might leave.
       
    39 // ---------------------------------------------------------------------------
       
    40 //
       
    41 CMPXPlaybackViewContainer::CMPXPlaybackViewContainer(
       
    42     MEikCommandObserver* aCommandObserver,
       
    43     MMPXLayoutSwitchObserver* aLayoutObserver,
       
    44     MMPXPlaybackViewLayout* aLayout )
       
    45     {
       
    46     iCommandObserver = aCommandObserver;
       
    47     iLayoutObserver = aLayoutObserver;
       
    48     iMode = EUninitialized;
       
    49     iLayout = aLayout;
       
    50     }
       
    51 
       
    52 // ---------------------------------------------------------------------------
       
    53 // Symbian 2nd phase constructor can leave.
       
    54 // ---------------------------------------------------------------------------
       
    55 //
       
    56 void CMPXPlaybackViewContainer::ConstructL( const TRect& aRect )
       
    57     {
       
    58     MPX_DEBUG1( "CMPXPlaybackViewContainer::ConstructL() entering" );
       
    59     
       
    60     CMPXCommonPlaybackViewContainer::ConstructL( aRect );
       
    61 
       
    62     MPX_DEBUG1( "CMPXPlaybackViewContainer::ConstructL() exiting" );
       
    63     }
       
    64 
       
    65 // ---------------------------------------------------------------------------
       
    66 // Destructor
       
    67 // ---------------------------------------------------------------------------
       
    68 //
       
    69 CMPXPlaybackViewContainer::~CMPXPlaybackViewContainer()
       
    70     {
       
    71     }
       
    72 
       
    73 
       
    74 // ---------------------------------------------------------------------------
       
    75 // Set layout for all elements and set sizes for icons.
       
    76 // ---------------------------------------------------------------------------
       
    77 //
       
    78 void CMPXPlaybackViewContainer::UpdateLayout()
       
    79     {
       
    80     MPX_DEBUG1( "CMPXPlaybackViewContainer::UpdateLayout() entering" );
       
    81     
       
    82     CMPXCommonPlaybackViewContainer::UpdateLayout();
       
    83 
       
    84     MPX_DEBUG1( "CMPXPlaybackViewContainer::UpdateLayout() exiting" );
       
    85     }
       
    86 
       
    87 // ---------------------------------------------------------------------------
       
    88 // From CCoeControl
       
    89 // Handles key events.
       
    90 // ---------------------------------------------------------------------------
       
    91 //
       
    92 TKeyResponse CMPXPlaybackViewContainer::OfferKeyEventL(
       
    93     const TKeyEvent& aKeyEvent,
       
    94     TEventCode aType )
       
    95     {
       
    96     MPX_DEBUG4( "CMPXPlaybackViewContainer::OfferKeyEventL(iCode=%d, iScanCode=%d, aType=%d)", 
       
    97         aKeyEvent.iCode, aKeyEvent.iScanCode, aType );
       
    98         
       
    99     return CMPXCommonPlaybackViewContainer::OfferKeyEventL( aKeyEvent, aType );
       
   100     }
       
   101 
       
   102 // ---------------------------------------------------------------------------
       
   103 // From CCoeControl
       
   104 // Gets the control's help context.
       
   105 // ---------------------------------------------------------------------------
       
   106 //
       
   107 void CMPXPlaybackViewContainer::GetHelpContext(
       
   108     TCoeHelpContext& aContext ) const
       
   109     {
       
   110     aContext.iMajor = KAppUidMusicPlayerX;  
       
   111     aContext.iContext = KMUS_HLP_PLAYBACK_VIEW; 
       
   112     }
       
   113 
       
   114 
       
   115 //  End of File