camerauis/cameraxui/cxengine/tsrc/fakeclasses/cxefakevideorecorderutility.h
changeset 19 d9aefe59d544
child 29 699651f2666f
equal deleted inserted replaced
3:8b2d6d0384b0 19:d9aefe59d544
       
     1 /*
       
     2 * Copyright (c) 2009 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:
       
    15 *
       
    16 */
       
    17 #ifndef CXEFAKEVIDEORECORDERUTILITY_H_
       
    18 #define CXEFAKEVIDEORECORDERUTILITY_H_
       
    19 
       
    20 #include <videorecorder.h>
       
    21 #include "cxevideorecorderutility.h"
       
    22 
       
    23 class CxeFakeVideoRecorderUtility : public CxeVideoRecorderUtility
       
    24 {
       
    25 public:
       
    26 
       
    27     CxeFakeVideoRecorderUtility(MVideoRecorderUtilityObserver& aObserver,
       
    28                                        TInt aPriority=EMdaPriorityNormal,
       
    29                                        TMdaPriorityPreference aPref=EMdaPriorityPreferenceTimeAndQuality);
       
    30 
       
    31     ~CxeFakeVideoRecorderUtility();
       
    32 
       
    33     //CxeVideoRecorderUtility* NewL(MVideoRecorderUtilityObserver& aObserver,
       
    34     //                                   TInt aPriority=EMdaPriorityNormal,
       
    35     //                                   TMdaPriorityPreference aPref=EMdaPriorityPreferenceTimeAndQuality);
       
    36     TInt CustomCommandSync(const TMMFMessageDestinationPckg& aDestination,
       
    37                            TInt aFunction,
       
    38                            const TDesC8& aDataTo1,
       
    39                            const TDesC8& aDataTo2);
       
    40     void OpenFileL(const TDesC& aFileName,
       
    41 					TInt aCameraHandle,
       
    42 					TUid aControllerUid,
       
    43 					TUid aVideoFormat,
       
    44 					const TDesC8& aVideoType = KNullDesC8,
       
    45 					TFourCC aAudioType = KMMFFourCCCodeNULL);
       
    46     void SetVideoFrameSizeL(TSize aSize);
       
    47     void SetVideoFrameRateL(TInt aRate);
       
    48     void SetVideoBitRateL(TInt aRate);
       
    49     void SetAudioEnabledL(TBool aEnable);
       
    50     void SetMaxClipSizeL(TInt aClipSizeInBytes);
       
    51     void Close();
       
    52     void Prepare();
       
    53     void Record();
       
    54     int Stop();
       
    55     void PauseL();
       
    56     TTimeIntervalMicroSeconds RecordTimeAvailable();
       
    57     TTimeIntervalMicroSeconds DurationL();
       
    58 private:
       
    59     CxeFakeVideoRecorderUtility(MVideoRecorderUtilityObserver& aObserver);
       
    60 
       
    61     MVideoRecorderUtilityObserver *mObserver;
       
    62 };
       
    63 
       
    64 
       
    65 #endif /*CXEFAKEVIDEORECORDERUTILITY_H_*/