|
1 /* |
|
2 * Copyright (c) 2006 - 2007 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 |
|
19 // INCLUDE FILES |
|
20 #include "AudioStreamApp.h" |
|
21 #include "AudioStreamDocument.h" |
|
22 |
|
23 #ifdef __SERIES60_3X__ |
|
24 #include <eikstart.h> |
|
25 #endif |
|
26 |
|
27 |
|
28 // ---------------------------------------------------------------------------- |
|
29 // CAudioStreamApp::AppDllUid() |
|
30 // |
|
31 // returns application UID |
|
32 // ---------------------------------------------------------------------------- |
|
33 TUid CAudioStreamApp::AppDllUid() const |
|
34 { |
|
35 return KUidAudioStream; |
|
36 } |
|
37 |
|
38 |
|
39 // ---------------------------------------------------------------------------- |
|
40 // CAudioStreamApp::CreateDocumentL() |
|
41 // |
|
42 // creates CAudioStreamDocument object |
|
43 // ---------------------------------------------------------------------------- |
|
44 CApaDocument* CAudioStreamApp::CreateDocumentL() |
|
45 { |
|
46 return CAudioStreamDocument::NewL( *this ); |
|
47 } |
|
48 |
|
49 |
|
50 // ---------------------------------------------------------------------------- |
|
51 // NewApplication() |
|
52 // |
|
53 // constructs CAudioStreamApp |
|
54 // ---------------------------------------------------------------------------- |
|
55 EXPORT_C CApaApplication* NewApplication() |
|
56 { |
|
57 return new CAudioStreamApp; |
|
58 } |
|
59 |
|
60 // --------------------------------------------------------- |
|
61 // Entry point function for Symbian Apps, separate function for |
|
62 // S60 3rd Ed and 1st/2nd Ed |
|
63 // --------------------------------------------------------- |
|
64 // |
|
65 #ifdef __SERIES60_3X__ |
|
66 GLDEF_C TInt E32Main() |
|
67 { |
|
68 return EikStart::RunApplication( NewApplication ); |
|
69 } |
|
70 |
|
71 #else |
|
72 GLDEF_C TInt E32Dll( TDllReason ) |
|
73 { |
|
74 return KErrNone; |
|
75 } |
|
76 #endif |
|
77 // End of File |
|
78 |