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 #ifndef __VEITEMPMAKER_H |
|
21 #define __VEITEMPMAKER_H |
|
22 |
|
23 #include <e32base.h> |
|
24 #include <e32def.h> |
|
25 #include <caknmemoryselectiondialog.h> |
|
26 #include <vedcommon.h> |
|
27 /** |
|
28 * CVeiTempMaker. Class for temporary file actions(filename, clean up). |
|
29 * |
|
30 */ |
|
31 NONSHARABLE_CLASS( CVeiTempMaker ) : public CBase |
|
32 { |
|
33 public: |
|
34 /** |
|
35 * Static factory constructor. |
|
36 * |
|
37 * @return created instance |
|
38 */ |
|
39 IMPORT_C static CVeiTempMaker* NewL(); |
|
40 |
|
41 /** |
|
42 * Static factory constructor. Leaves the created instance in the |
|
43 * cleanup stack. |
|
44 * |
|
45 * @return created instance |
|
46 */ |
|
47 IMPORT_C static CVeiTempMaker* NewLC(); |
|
48 |
|
49 /** |
|
50 * Destructor. |
|
51 */ |
|
52 IMPORT_C ~CVeiTempMaker(); |
|
53 |
|
54 IMPORT_C void EmptyTempFolder() const; |
|
55 |
|
56 IMPORT_C void GenerateTempFileName( |
|
57 HBufC& aTempPathAndName, |
|
58 CAknMemorySelectionDialog::TMemory aMemory, |
|
59 TVedVideoFormat aVideoFormat, |
|
60 TBool aExtAMR = EFalse ) const; |
|
61 |
|
62 private: |
|
63 /** |
|
64 * Default constructor. |
|
65 */ |
|
66 void ConstructL(); |
|
67 |
|
68 /** |
|
69 * Default constructor. |
|
70 */ |
|
71 CVeiTempMaker(); |
|
72 |
|
73 TBool GetTempPath( const CAknMemorySelectionDialog::TMemory& aMemory, TDes& aTempPath ) const; |
|
74 |
|
75 // void ListFilesL(const TDesC& aFindFromDir, const TDesC& aWriteResultTo) const; |
|
76 |
|
77 void DoEmptyTempFolderL() const; |
|
78 }; |
|
79 #endif |
|