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 |
|
21 // INCLUDE FILES |
|
22 #include <eikstart.h> |
|
23 // User includes |
|
24 #include "VeiApp.h" |
|
25 #include "VeiDocument.h" |
|
26 #include "VideoEditorCommon.h" // Application UID |
|
27 #include "VideoEditorDebugUtils.h" |
|
28 |
|
29 // ================= MEMBER FUNCTIONS ======================= |
|
30 |
|
31 // ================= OTHER EXPORTED FUNCTIONS ============== |
|
32 // |
|
33 // --------------------------------------------------------- |
|
34 // NewApplication() |
|
35 // Constructs CVeiApp |
|
36 // Returns: created application object |
|
37 // --------------------------------------------------------- |
|
38 // |
|
39 EXPORT_C CApaApplication* NewApplication() |
|
40 { |
|
41 return new CVeiApp; |
|
42 } |
|
43 |
|
44 GLDEF_C TInt E32Main() |
|
45 { |
|
46 return EikStart::RunApplication( NewApplication ); |
|
47 } |
|
48 |
|
49 // --------------------------------------------------------- |
|
50 // CVeiApp::AppDllUid() |
|
51 // Returns application UID |
|
52 // --------------------------------------------------------- |
|
53 // |
|
54 TUid CVeiApp::AppDllUid()const |
|
55 { |
|
56 return KUidVideoEditor; |
|
57 } |
|
58 |
|
59 |
|
60 // --------------------------------------------------------- |
|
61 // CVeiApp::CreateDocumentL() |
|
62 // Creates CVeiDocument object |
|
63 // --------------------------------------------------------- |
|
64 // |
|
65 CApaDocument* CVeiApp::CreateDocumentL() |
|
66 { |
|
67 LOG_RESET( KVideoEditorLogFile ); |
|
68 return CVeiDocument::NewL( *this ); |
|
69 } |
|
70 |
|
71 // --------------------------------------------------------- |
|
72 // CVeiApp::OpenIniFileLC( RFs& aFs ) |
|
73 // Enables INI file creation |
|
74 // Returns: |
|
75 // --------------------------------------------------------- |
|
76 // |
|
77 CDictionaryStore* CVeiApp::OpenIniFileLC( RFs& aFs )const |
|
78 { |
|
79 //Opens the application’s ini file if it exists. If an ini |
|
80 //file does not exist for this application, or if it is corrupt, |
|
81 //this function creates a new ini file and opens that. |
|
82 //ini files are located on KIniFileDrive (by default, c:), |
|
83 //in the same directory as the application DLL. |
|
84 |
|
85 return CEikApplication::OpenIniFileLC( aFs ); |
|
86 } |
|
87 // End of File |
|