1 /* |
|
2 * Copyright (c) 2010 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 |
|
18 #ifndef CXEFILENAMEGENERATORDESKTOP_H |
|
19 #define CXEFILENAMEGENERATORDESKTOP_H |
|
20 |
|
21 #include "cxefilenamegenerator.h" |
|
22 |
|
23 class CxeFilenameGeneratorDesktop : public CxeFilenameGenerator |
|
24 { |
|
25 public: |
|
26 CxeFilenameGeneratorDesktop(); |
|
27 virtual ~CxeFilenameGeneratorDesktop(); |
|
28 |
|
29 public: // from CxeFilenameGenerator |
|
30 virtual CxeError::Id init(Cxe::CameraMode mode); |
|
31 virtual void startNewImageFilenameSequence(); |
|
32 virtual CxeError::Id nextImageFilenameInSequence(QString &filename, const QString &fileExt); |
|
33 virtual CxeError::Id generateFilename(QString &filename, const QString &fileExt); |
|
34 virtual void raiseCounterValue(); |
|
35 |
|
36 private: |
|
37 void getNextVideoFilename(QString &filename); |
|
38 void getNextImageFilename(QString &filename); |
|
39 |
|
40 QString assembleFilename(const QString &baseName, int sequenceNumber, const QString &extension); |
|
41 |
|
42 Cxe::CameraMode mMode; |
|
43 |
|
44 QString mImageBaseFolder; |
|
45 QString mVideoBaseFolder; |
|
46 |
|
47 QString mImageExtension; |
|
48 QString mVideoExtension; |
|
49 |
|
50 int mImageSequenceNumber; |
|
51 int mVideoSequenceNumber; |
|
52 |
|
53 }; |
|
54 |
|
55 #endif // CXEFILENAMEGENERATORDESKTOP_H |
|