|
1 /* |
|
2 * Copyright (c) 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 <eikstart.h> |
|
20 |
|
21 #include "texttospeechapplication.h" |
|
22 #include "texttospeechdocument.h" |
|
23 #include "texttospeechuid.hrh" |
|
24 |
|
25 static const TUid KAppUid = { KUidTextToSpeechApplication }; |
|
26 |
|
27 /** |
|
28 * Called by the application framework to construct the application object |
|
29 * @return The application (CTextToSpeechApplication) |
|
30 */ |
|
31 LOCAL_C CApaApplication* NewApplication() |
|
32 { |
|
33 return new CTextToSpeechApplication; |
|
34 } |
|
35 |
|
36 /** |
|
37 * This standard export is the entry point for all Series 60 applications |
|
38 * @return error code |
|
39 */ |
|
40 GLDEF_C TInt E32Main() |
|
41 { |
|
42 return EikStart::RunApplication( NewApplication ); |
|
43 } |
|
44 |
|
45 /** |
|
46 * Returns the application's UID (override from CApaApplication::AppDllUid()) |
|
47 * @return UID for this application (KUidTextToSpeechApplication) |
|
48 */ |
|
49 TUid CTextToSpeechApplication::AppDllUid() const |
|
50 { |
|
51 return KAppUid; |
|
52 } |
|
53 |
|
54 /** |
|
55 * Creates the application's document (override from CApaApplication::CreateDocumentL()) |
|
56 * @return Pointer to the created document object (CTextToSpeechDocument) |
|
57 */ |
|
58 CApaDocument* CTextToSpeechApplication::CreateDocumentL() |
|
59 { |
|
60 return CTextToSpeechDocument::NewL( *this ); |
|
61 } |
|
62 |
|
63 // End of file |