|
1 /* |
|
2 * Copyright (c) 2002-2006 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: File Manager application class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include <eikstart.h> |
|
22 #include "CFileManagerApplication.h" |
|
23 #include "CFileManagerDocument.h" |
|
24 #include "FileManagerUID.h" |
|
25 |
|
26 // ============================ MEMBER FUNCTIONS =============================== |
|
27 |
|
28 // ----------------------------------------------------------------------------- |
|
29 // CFileManagerApplication::CFileManagerApplication |
|
30 // C++ default constructor can NOT contain any code, that |
|
31 // might leave. |
|
32 // ----------------------------------------------------------------------------- |
|
33 // |
|
34 CFileManagerApplication::CFileManagerApplication() |
|
35 { |
|
36 } |
|
37 |
|
38 // ----------------------------------------------------------------------------- |
|
39 // CFileManagerApplication::~CFileManagerApplication |
|
40 // Destructor |
|
41 // ----------------------------------------------------------------------------- |
|
42 // |
|
43 CFileManagerApplication::~CFileManagerApplication() |
|
44 { |
|
45 } |
|
46 |
|
47 // ----------------------------------------------------------------------------- |
|
48 // CFileManagerApplication::CreateDocumentL |
|
49 // |
|
50 // ----------------------------------------------------------------------------- |
|
51 // |
|
52 CApaDocument* CFileManagerApplication::CreateDocumentL() |
|
53 { |
|
54 return CFileManagerDocument::NewL( *this ); |
|
55 } |
|
56 |
|
57 // ----------------------------------------------------------------------------- |
|
58 // CFileManagerApplication::AppDllUid |
|
59 // |
|
60 // ----------------------------------------------------------------------------- |
|
61 // |
|
62 TUid CFileManagerApplication::AppDllUid() const |
|
63 { |
|
64 return TUid::Uid( KFileManagerUID3 ); |
|
65 } |
|
66 |
|
67 // ========================== OTHER EXPORTED FUNCTIONS ========================= |
|
68 |
|
69 // ----------------------------------------------------------------------------- |
|
70 // NewApplication |
|
71 // Creates a new FileManager application object (CFileManagerApplication). |
|
72 // Called by the application framework. |
|
73 // Returns the new application object (CFileManagerApplication). |
|
74 // NULL if out of memory. |
|
75 // ----------------------------------------------------------------------------- |
|
76 // |
|
77 EXPORT_C CApaApplication* NewApplication() |
|
78 { |
|
79 return new CFileManagerApplication; |
|
80 } |
|
81 |
|
82 // ----------------------------------------------------------------------------- |
|
83 // E32Main |
|
84 // Standard entry point for the application exe (FileManager.exe). |
|
85 // Returns standard Symbian OS error code, KErrNone if succesful. |
|
86 // ----------------------------------------------------------------------------- |
|
87 // |
|
88 GLDEF_C TInt E32Main() |
|
89 { |
|
90 return EikStart::RunApplication( NewApplication ); |
|
91 } |
|
92 |
|
93 // End of File |