equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2005 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: Application class for MUS App. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #include "musuiapp.h" // Header file for this class |
|
21 #include "musuidocument.h" // Mus UI Document |
|
22 #include "musuid.hrh" |
|
23 #include "muslogger.h" // debug logging |
|
24 |
|
25 #include <eikstart.h> |
|
26 |
|
27 |
|
28 // ============================ MEMBER FUNCTIONS =========================== |
|
29 |
|
30 // Returns application UID |
|
31 TUid CMusUiApp::AppDllUid() const |
|
32 { |
|
33 const TUid KUidRetVal = { KMusUiUid }; |
|
34 return KUidRetVal; |
|
35 } |
|
36 |
|
37 // Creates CMusUiDocument object |
|
38 CApaDocument* CMusUiApp::CreateDocumentL() |
|
39 { |
|
40 return CMusUiDocument::NewL( *this ); |
|
41 } |
|
42 |
|
43 |
|
44 // ==================== OTHER EXPORTED FUNCTIONS =========================== |
|
45 |
|
46 // Constructs and returns an application object |
|
47 EXPORT_C CApaApplication* NewApplication() |
|
48 { |
|
49 MUS_LOG( "mus: [MUSUI ] -------------------------------------------------" ); |
|
50 return new CMusUiApp; |
|
51 } |
|
52 |
|
53 // Main function of the application executable |
|
54 GLDEF_C TInt E32Main() |
|
55 { |
|
56 return EikStart::RunApplication( NewApplication ); |
|
57 } |
|
58 |
|
59 // end of file |