|
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 |
|
20 #include "texttospeechdocument.h" |
|
21 #include "texttospeechappui.h" |
|
22 |
|
23 /** |
|
24 * Constructs the document class for the application. |
|
25 * @param aApplication the application instance |
|
26 */ |
|
27 CTextToSpeechDocument::CTextToSpeechDocument( CEikApplication& aApplication ) : |
|
28 CAknDocument( aApplication ) |
|
29 { |
|
30 } |
|
31 |
|
32 /** |
|
33 * Destructor |
|
34 */ |
|
35 CTextToSpeechDocument::~CTextToSpeechDocument() |
|
36 { |
|
37 } |
|
38 |
|
39 /** |
|
40 * Completes the second phase of Symbian object construction. |
|
41 * Put initialization code that could leave here. |
|
42 */ |
|
43 void CTextToSpeechDocument::ConstructL() |
|
44 { |
|
45 } |
|
46 |
|
47 /** |
|
48 * Symbian OS two-phase constructor. |
|
49 * |
|
50 * Creates an instance of CTextToSpeechDocument, constructs it, and |
|
51 * returns it. |
|
52 * |
|
53 * @param aApp the application instance |
|
54 * @return the new CTextToSpeechDocument |
|
55 */ |
|
56 CTextToSpeechDocument* CTextToSpeechDocument::NewL( CEikApplication& aApp ) |
|
57 { |
|
58 CTextToSpeechDocument* self = new (ELeave) CTextToSpeechDocument( aApp ); |
|
59 |
|
60 CleanupStack::PushL( self ); |
|
61 self->ConstructL(); |
|
62 CleanupStack::Pop( self ); |
|
63 |
|
64 return self; |
|
65 } |
|
66 |
|
67 /** |
|
68 * Creates the application UI object for this document. |
|
69 * @return the new instance |
|
70 */ |
|
71 CEikAppUi* CTextToSpeechDocument::CreateAppUiL() |
|
72 { |
|
73 return new (ELeave) CTextToSpeechAppUi(); |
|
74 } |
|
75 |
|
76 // End of file |