mmsharing/mmshui/inc/musuiclipsharingviewcontainer.h
changeset 0 f0cf47e981f9
child 24 407431f36921
equal deleted inserted replaced
-1:000000000000 0:f0cf47e981f9
       
     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 MUSUICLIPSHARINGVIEWCONTAINER_H
       
    21 #define MUSUICLIPSHARINGVIEWCONTAINER_H
       
    22 
       
    23 #include "musuisendviewcontainer.h"
       
    24 
       
    25 #include <MMGFetchVerifier.h>        // Media Gallery fetcher verifier 
       
    26 #include <AknProgressDialog.h>
       
    27 
       
    28 class CAknProgressDialog;
       
    29 class CEikProgressInfo;
       
    30 
       
    31 /**
       
    32  *
       
    33  *
       
    34  *
       
    35  */
       
    36 class CMusUiClipSharingViewContainer :	public CMusUiSendViewContainer,
       
    37 										public MMGFetchVerifier,
       
    38 										public MProgressDialogCallback
       
    39 
       
    40     {
       
    41 
       
    42 public:  // constructors and destructor
       
    43 
       
    44     /**
       
    45      * Symbian second-phase constructor.
       
    46      *
       
    47      * @param aView         Parent view of container.
       
    48      * @param aRect         Frame rectangle for container.
       
    49      * @param aInputParams  Packaged data.
       
    50      */
       
    51     void ConstructL( CMusUiGeneralView* aView, const TRect& aRect );
       
    52 
       
    53     /**
       
    54      * Destructor.
       
    55      */
       
    56     ~CMusUiClipSharingViewContainer();
       
    57 
       
    58 
       
    59 public:	// new functions
       
    60 	
       
    61 	void ShowTranscodingProgressDialogL();
       
    62 	
       
    63     void UpdateClipTranscodingPercentageL( TInt aPercentage );
       
    64     
       
    65     void CancelTranscodingL();
       
    66 
       
    67     void RunFetchDialogL();
       
    68     
       
    69     const TDesC& FetchedFileName();
       
    70     
       
    71     TBool FileSelected();
       
    72 	
       
    73     void SetDurationValue( TInt aDurationValue );
       
    74 
       
    75     void SetPositionValueL( TInt aPositionValue );
       
    76 
       
    77     void SetDurationIndicatorVisible( TBool aVisible );
       
    78    
       
    79 public: // from base class MMGFetchVerifier
       
    80 
       
    81     /**
       
    82      * Verifies the current user selection.
       
    83      *
       
    84      * @param aSelectedFiles Descriptor array of selected files.
       
    85      * @return EFalse if selection can't be used. If ok, returns ETrue.
       
    86      */
       
    87     TBool VerifySelectionL( const MDesCArray* aSelectedFiles );
       
    88 
       
    89 public: // from MProgressDialogCallback
       
    90 
       
    91     /**
       
    92     * Callback method
       
    93     *   Get's called when a dialog is dismissed.
       
    94     */
       
    95     void DialogDismissedL( TInt aButtonId );
       
    96     
       
    97 
       
    98 private: // from base class CCoeControl    
       
    99     
       
   100     /**
       
   101      * Returns the number of control contained by this class.
       
   102      *
       
   103      * @return           Number of controls contained
       
   104      */
       
   105     TInt CountComponentControls() const;
       
   106 
       
   107     /**
       
   108      * Returns handle to control pointed by aIndex.
       
   109      *
       
   110      * @param aIndex     Wanted control's index [0..n]
       
   111      * @return           Handle to wanted control
       
   112      */
       
   113     CCoeControl* ComponentControl( TInt aIndex ) const;
       
   114 
       
   115     /**
       
   116      * Handles key events.
       
   117      *
       
   118      * @param aEvent  The event that occured.
       
   119      * @param aType   Type of key event: EEventKey, EEventKeyUp, or
       
   120      *                EEventKeyDown.
       
   121      * @return  The container's response to event: either
       
   122      *          EKeyWasNotConsumed or EKeyWasConsumed.
       
   123      */
       
   124     TKeyResponse OfferKeyEventL( const TKeyEvent& aEvent, TEventCode aType );
       
   125 
       
   126 protected: // data
       
   127 
       
   128     /**
       
   129     * ETrue if operator specific functionality is needed 
       
   130     */
       
   131     TBool iOperatorSpecificFunctionality;
       
   132 private: // data
       
   133     
       
   134     /**
       
   135      * A progress dialog to show the transcoding progress.  Own.
       
   136      */
       
   137     CAknProgressDialog* iTranscodingDialog;
       
   138 
       
   139     /**
       
   140      * A progress dialog to show the transcoding progress.  Own.
       
   141      */
       
   142     CEikProgressInfo* iTranscodingProgress;
       
   143     
       
   144     HBufC* iFileName;
       
   145 	
       
   146     TBool iFileSelected;
       
   147     
       
   148     TBool iTranscodingOngoing;
       
   149     
       
   150     };
       
   151 
       
   152 
       
   153 #endif // MUSUICLIPSHARINGVIEWCONTAINER_H
       
   154 
       
   155 // end of file