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