videoeditorengine/audioeditorengine/inc/ProcClipInfoAO.h
changeset 0 951a5db380a0
equal deleted inserted replaced
-1:000000000000 0:951a5db380a0
       
     1 /*
       
     2 * Copyright (c) 2010 Ixonos Plc.
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the "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 * Ixonos Plc
       
    14 *
       
    15 * Description:  
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __CPROCCLIPINFOAO_H__
       
    22 #define __CPROCCLIPINFOAO_H__
       
    23 
       
    24 #include <e32base.h>
       
    25 #include "AudCommon.h"
       
    26 #include "AudClipInfo.h"
       
    27 
       
    28 #include "AudProcessorImpl.h"
       
    29 
       
    30 class MProcClipInfoObserver;
       
    31 class CAudProcessorImpl;
       
    32 
       
    33 class CProcClipInfoAO : public CActive 
       
    34     {
       
    35 
       
    36 public:
       
    37 
       
    38     static CProcClipInfoAO* NewL();
       
    39 
       
    40     virtual ~CProcClipInfoAO();
       
    41 
       
    42     /**
       
    43     *
       
    44     * Starts retrieving audio clip info
       
    45     *
       
    46     * @param    aFilename        filename of the input file
       
    47     * @param    aFileHandle      file handle of the input file
       
    48     * @param    aObserver        observer to be notified of progress
       
    49     * @param    aProperties        properties of the input file.
       
    50     *                            Needs to be allocated by the caller,                            
       
    51     *                            and will filled in as a result of calling
       
    52     *                            this function
       
    53     * @param    aPriority        priority of the operation
       
    54     *
       
    55     */
       
    56     void StartL(const TDesC& aFilename, 
       
    57                 RFile* aFileHandle,
       
    58         MProcClipInfoObserver &aObserver,         
       
    59         TAudFileProperties* aProperties,
       
    60         TInt aPriority);
       
    61         
       
    62       
       
    63 protected:
       
    64     virtual void RunL();
       
    65     virtual void DoCancel();
       
    66 
       
    67 private:
       
    68     
       
    69 
       
    70 
       
    71     void ConstructL();
       
    72 
       
    73 
       
    74 private:
       
    75     
       
    76     CProcClipInfoAO();
       
    77     MProcClipInfoObserver* iObserver;
       
    78     TAudFileProperties* iProperties;
       
    79     HBufC* iFileName;
       
    80     CAudProcessorImpl* iProcessorImpl;
       
    81     RFile* iFileHandle;
       
    82     
       
    83     };
       
    84 
       
    85 
       
    86 #endif