camerauis/cameraxui/cxengine/inc/cxevideorecorderutility.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 CXEVIDEORECORDERUTILITY_H_
       
    18 #define CXEVIDEORECORDERUTILITY_H_
       
    19 
       
    20 #include <QObject>
       
    21 
       
    22 // interface class for usage of CVideoRecorderUtility
       
    23 class CxeVideoRecorderUtility
       
    24 {
       
    25 public:
       
    26 
       
    27     virtual ~CxeVideoRecorderUtility() {}
       
    28 
       
    29     virtual TInt CustomCommandSync(const TMMFMessageDestinationPckg& aDestination,
       
    30                            TInt aFunction,
       
    31                            const TDesC8& aDataTo1,
       
    32                            const TDesC8& aDataTo2) = 0;
       
    33     virtual void OpenFileL(const TDesC& aFileName,
       
    34 					TInt aCameraHandle,
       
    35 					TUid aControllerUid,
       
    36 					TUid aVideoFormat,
       
    37 					const TDesC8& aVideoType = KNullDesC8,
       
    38 					TFourCC aAudioType = KMMFFourCCCodeNULL) = 0;
       
    39     virtual void SetVideoFrameSizeL(TSize aSize) = 0;
       
    40     virtual void SetVideoFrameRateL(TInt aRate) = 0;
       
    41     virtual void SetVideoBitRateL(TInt aRate) = 0;
       
    42     virtual void SetAudioEnabledL(TBool aEnable) = 0;
       
    43     virtual void SetMaxClipSizeL(TInt aClipSizeInBytes) = 0;
       
    44     virtual void Close() = 0;
       
    45     virtual void Prepare() = 0;
       
    46     virtual void Record() = 0;
       
    47     virtual int Stop() = 0;
       
    48     virtual void PauseL() = 0;
       
    49     virtual TTimeIntervalMicroSeconds RecordTimeAvailable() = 0;
       
    50     virtual TTimeIntervalMicroSeconds DurationL() = 0;
       
    51 
       
    52 protected:
       
    53     CxeVideoRecorderUtility() {}
       
    54 
       
    55 private:
       
    56     Q_DISABLE_COPY( CxeVideoRecorderUtility )
       
    57 };
       
    58 
       
    59 
       
    60 #endif /*CXEVIDEORECORDERUTILITY_H_*/