camerauis/cameraxui/cxengine/tsrc/fakeclasses/cxefakefilenamegenerator.h
changeset 19 d9aefe59d544
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 CXEFAKEFILENAMEGENERATOR_H
       
    18 #define CXEFAKEFILENAMEGENERATOR_H
       
    19 
       
    20 #include "cxefilenamegeneratorsymbian.h"  //API
       
    21 #include "cxestatemachine.h"
       
    22 
       
    23 //forward declarations
       
    24 class CxeCameraDevice;
       
    25 
       
    26 
       
    27 /**
       
    28  * CxeFilenameGeneratorSymbian provides file names for saving images and videos.
       
    29  */
       
    30 class CxeFakeFilenameGenerator : public CxeFilenameGenerator
       
    31 {
       
    32 public:
       
    33 
       
    34     CxeFakeFilenameGenerator();
       
    35     virtual ~CxeFakeFilenameGenerator();
       
    36 
       
    37 public: // From CxeFilenameGenerator
       
    38     CxeError::Id init(Cxe::CameraMode mode = Cxe::ImageMode);
       
    39     void startNewImageFilenameSequence();
       
    40     CxeError::Id nextImageFilenameInSequence(QString &filename, const QString &fileExt);
       
    41     CxeError::Id generateFilename(QString &filename, const QString &fileExt);
       
    42     void raiseCounterValue();
       
    43 
       
    44 private:
       
    45     // Current mode: image/video
       
    46     Cxe::CameraMode mCurrentMode;
       
    47 
       
    48 };
       
    49 
       
    50 #endif // CXEFAKEFILENAMEGENERATOR_H