|
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: Implements document class for application. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "bctestlauncherdocument.h" |
|
20 #include "bctestlauncherappui.h" |
|
21 |
|
22 // ============================ MEMBER FUNCTIONS ============================= |
|
23 |
|
24 // --------------------------------------------------------------------------- |
|
25 // CBCTestLauncherDocument::CBCTestLauncherDocument( CEikApplication& aApp ) |
|
26 // C++ default constructor can NOT contain any code, that |
|
27 // might leave. |
|
28 // --------------------------------------------------------------------------- |
|
29 // |
|
30 CBCTestLauncherDocument::CBCTestLauncherDocument( CEikApplication& aApp ) |
|
31 : CAknDocument( aApp ) |
|
32 { |
|
33 } |
|
34 |
|
35 // --------------------------------------------------------------------------- |
|
36 // CAknAtPbarDocument::~CBCTestLauncherDocument |
|
37 // Destructor |
|
38 // --------------------------------------------------------------------------- |
|
39 // |
|
40 CBCTestLauncherDocument::~CBCTestLauncherDocument() |
|
41 { |
|
42 } |
|
43 |
|
44 // --------------------------------------------------------------------------- |
|
45 // CAknAtPbarDocument::ConstructL |
|
46 // Symbian 2nd phase constructor can leave. |
|
47 // --------------------------------------------------------------------------- |
|
48 // |
|
49 void CBCTestLauncherDocument::ConstructL() |
|
50 { |
|
51 } |
|
52 |
|
53 // --------------------------------------------------------------------------- |
|
54 // CAknAtPbarDocument::NewL |
|
55 // Two-phased constructor. |
|
56 // --------------------------------------------------------------------------- |
|
57 // |
|
58 CBCTestLauncherDocument* CBCTestLauncherDocument::NewL |
|
59 ( CEikApplication& aApp ) |
|
60 // CBCTestLauncherApp reference |
|
61 { |
|
62 CBCTestLauncherDocument* self = |
|
63 new( ELeave ) CBCTestLauncherDocument( aApp ); |
|
64 CleanupStack::PushL( self ); |
|
65 self->ConstructL(); |
|
66 CleanupStack::Pop(); |
|
67 return self; |
|
68 } |
|
69 |
|
70 // --------------------------------------------------------------------------- |
|
71 // CBCTestLauncherDocument::CreateAppUiL() |
|
72 // constructs CBCTestLauncherAppUi |
|
73 // --------------------------------------------------------------------------- |
|
74 // |
|
75 CEikAppUi* CBCTestLauncherDocument::CreateAppUiL() |
|
76 { |
|
77 return new( ELeave ) CBCTestLauncherAppUi; |
|
78 } |
|
79 |