mmsharing/mmshui/inc/musuiclipsharingview.h
branchRCL_3
changeset 33 bc78a40cd63c
equal deleted inserted replaced
32:73a1feb507fb 33:bc78a40cd63c
       
     1 /*
       
     2 * Copyright (c) 2005 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:  The MUS application's UI class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef MUSUICLIPSHARINGVIEW_H
       
    21 #define MUSUICLIPSHARINGVIEW_H
       
    22 
       
    23 
       
    24 #include "musuisendview.h"     // Base view class
       
    25 #include "musuiclipsharingobserver.h"
       
    26 
       
    27 #include <aknview.h>
       
    28 
       
    29 class CMusUiClipSharingViewContainer;
       
    30 class CMusUiClipSharingController;
       
    31 class CMusUiActivityManager;
       
    32 class CMusUiBackgroundViewContainer;
       
    33 class CAknToolbar;
       
    34 
       
    35 
       
    36 /**
       
    37  *  The MUS application's clip sharing view.
       
    38  *
       
    39  *  @lib musui.exe
       
    40  */
       
    41 class CMusUiClipSharingView : public CMusUiSendView,
       
    42                               public MMusUiClipSharingObserver
       
    43     {
       
    44 
       
    45 public: // constructors and destructor
       
    46 
       
    47     /**
       
    48     * EPOC 2nd phase constructor.
       
    49     */
       
    50     void ConstructL();
       
    51 
       
    52     /**
       
    53      * Destructor.
       
    54      */
       
    55     virtual ~CMusUiClipSharingView();
       
    56 
       
    57 
       
    58 public: // from base class CAknView
       
    59 
       
    60     /**
       
    61     * From CAknView returns Uid of View
       
    62     * @return TUid uid of the view
       
    63     */
       
    64     virtual TUid Id() const;
       
    65 
       
    66     // From MEikMenuObserver, Called by framework before constructing menupane
       
    67     virtual void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
       
    68 
       
    69 
       
    70 public: // from CMusUiGeneralView
       
    71 
       
    72     virtual void HandleToolbarCommandL( TInt aCommand );
       
    73 
       
    74     virtual void HandleKeyUpEvent( TInt aKeyCode );
       
    75 
       
    76     virtual void SetInitialFocusedItemL();
       
    77 
       
    78 public: // from base class MAknToolbarObserver
       
    79 
       
    80     virtual void DynInitToolbarL( TInt aResourceId, CAknToolbar* aToolbar );
       
    81 
       
    82 
       
    83 public: // from MMusUiClipSharingObserver
       
    84 
       
    85     virtual void RunFetchDialogL();
       
    86 
       
    87     virtual void ShowTranscodingProgressDialogL();
       
    88 
       
    89     virtual void UpdateClipTranscodingPercentageL( TInt aPercetage );
       
    90 
       
    91     virtual void CancelTranscodingDialogL();
       
    92 
       
    93     virtual void UpdateClipPositionL( TInt aPositionInSeconds,
       
    94                                       const TDesC& aFormattedPosition );
       
    95 
       
    96     virtual void SetDurationValue( TInt aDurationValue );
       
    97 
       
    98     virtual void SetPositionValueL( TInt aPositionValue );
       
    99 
       
   100     virtual void SetDurationVisible();
       
   101 
       
   102     virtual void ReplaceToolbarCommand( TInt aOldCommand, 
       
   103                                         TInt aNewCommand,
       
   104                                         TBool aSetNewCommandFocused );
       
   105     
       
   106     virtual void InvalidVideoFrame( TBool aInvalid = EFalse );
       
   107     
       
   108 public: // new functions
       
   109 
       
   110     void RefreshView();
       
   111     
       
   112     void CancelTranscodingL();
       
   113 
       
   114 
       
   115 protected: // from CMusUiSendView
       
   116 
       
   117     virtual CMusUiSendController* SendController() const;
       
   118 
       
   119     virtual CMusUiSendViewContainer* SendContainer() const;
       
   120     
       
   121 
       
   122 private:
       
   123 
       
   124     /**
       
   125      * Gets called by the framework when it's activating this view.
       
   126      *
       
   127      * @param aPrevViewId Previous view id
       
   128      * @param aCustomMessageId Custom message's id
       
   129      * @param aCustomMessage Custom message
       
   130      */
       
   131     void DoActivateL( const TVwsViewId& aPrevViewId,
       
   132                       TUid aCustomMessageId,
       
   133                       const TDesC8& aCustomMessage );
       
   134 
       
   135     /**
       
   136      * Gets called by the framework when it's deactivating this view.
       
   137      */
       
   138     void DoDeactivate();
       
   139     
       
   140 
       
   141 private: // data
       
   142 
       
   143     /**  Container for all controls in this view.  Owns. */
       
   144     CMusUiClipSharingViewContainer* iContainer;
       
   145 
       
   146     CMusUiClipSharingController* iController;
       
   147 
       
   148     };
       
   149 
       
   150 #endif // MUSUICLIPSHARINGVIEW_H
       
   151 
       
   152 // end of file