mpxplugins/viewplugins/views/playbackview/inc/mpxplaybackviewimp.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 implementation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_CMPXPLAYBACKVIEWIMP_H
       
    21 #define C_CMPXPLAYBACKVIEWIMP_H
       
    22 
       
    23 #include <akntoolbarobserver.h>
       
    24 
       
    25 // INCLUDES
       
    26 #include "mpxplaybackview.h"
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class CMPXPlaybackViewContainer;
       
    30 class CMPXPlaybackViewLayout;
       
    31 class CAknToolbar;
       
    32 
       
    33 
       
    34 // CLASS DECLARATION
       
    35 
       
    36 /**
       
    37  *  MPX playback view.
       
    38  *
       
    39  *  @lib mpxplaybackview.lib
       
    40  *  @since S60 v3.0
       
    41  */
       
    42 NONSHARABLE_CLASS( CMPXPlaybackViewImp ) : public CMPXPlaybackView
       
    43                                            ,public MAknToolbarObserver
       
    44     {
       
    45 public:
       
    46 
       
    47     /**
       
    48      * Two-phased constructor.
       
    49      *
       
    50      * @since 3.0
       
    51      * @return Pointer to newly created object.
       
    52      */
       
    53     static CMPXPlaybackViewImp* NewL();
       
    54 
       
    55     /**
       
    56      * Two-phased constructor.
       
    57      *
       
    58      * @since 3.0
       
    59      * @return Pointer to newly created object.
       
    60      */
       
    61     static CMPXPlaybackViewImp* NewLC();
       
    62 
       
    63     /**
       
    64      * Destructor.
       
    65      */
       
    66     ~CMPXPlaybackViewImp();
       
    67 
       
    68 private:
       
    69 
       
    70     /**
       
    71      * C++ default constructor.
       
    72      */
       
    73     CMPXPlaybackViewImp();
       
    74 
       
    75     /**
       
    76      * By default Symbian 2nd phase constructor is private.
       
    77      */
       
    78     void ConstructL();
       
    79 
       
    80 // from base class MEikMenuObserver
       
    81 
       
    82     /**
       
    83      * From MEikMenuObserver
       
    84      * Dynamically initialises a menu pane.
       
    85      *
       
    86      * @param aResourceId The ID of the menu pane.
       
    87      * @param aMenuPane The menu pane itself.
       
    88      */
       
    89     void DynInitMenuPaneL(
       
    90         TInt aResourceId, 
       
    91         CEikMenuPane* aMenuPane );
       
    92 
       
    93 
       
    94 // from base class CAknView
       
    95 
       
    96     /**
       
    97      * From CAknView
       
    98      * Returns views id.
       
    99      *
       
   100      * @since 3.0
       
   101      * @return Views Uid
       
   102      */
       
   103     TUid Id() const;
       
   104 
       
   105     /**
       
   106      * From CAknView
       
   107      * Processes user commands.
       
   108      *
       
   109      * @since 3.0
       
   110      * @param aCommand ID of the command to respond to.
       
   111      */
       
   112     void ProcessCommandL( TInt aCommand );
       
   113 
       
   114     /**
       
   115      * From CAknView
       
   116      * Handles a view activation.
       
   117      *
       
   118      * @param aPrevViewId Specifies the view previously active.
       
   119      * @param aCustomMessageId Specifies the message type.
       
   120      * @param aCustomMessage The activation message.
       
   121      */
       
   122     void DoActivateL(
       
   123         const TVwsViewId& aPrevViewId,
       
   124         TUid aCustomMessageId,
       
   125         const TDesC8& aCustomMessage );
       
   126         
       
   127     /**
       
   128      * From MAknToolbarObserver
       
   129      * Processes user commands.
       
   130      *
       
   131      * @since 5.0
       
   132      * @param aCommand ID of the command to respond to.
       
   133      */
       
   134     void OfferToolbarEventL( TInt aCommandId );
       
   135       
       
   136     /**
       
   137      * From MAknToolbarObserver
       
   138      * Used to change toolbar settings before it is made visible
       
   139      *
       
   140      * @since 5.0
       
   141      * @param aCommand ID of the command to respond to.
       
   142      */
       
   143     void DynInitToolbarL( TInt aResourceId, CAknToolbar* aToolBar );
       
   144 
       
   145 private:    // data
       
   146     CMPXPlaybackViewLayout* iPlaybackViewLayout;    // owned
       
   147     void DoHandlePlaybackMessageL( const CMPXMessage& aMessage );
       
   148     CAknToolbar* iToolbar;  //owned
       
   149     };
       
   150 
       
   151 #endif  // C_CMPXPLAYBACKVIEWIMP_H
       
   152 
       
   153 // End of File