|
1 /* |
|
2 * Copyright (c) {Year(s)} {Copyright owner}. |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * {Name} {Company} ? Initial contribution |
|
11 * |
|
12 * Contributors: |
|
13 * {Name} {Company} ? {{Description of contribution}} |
|
14 * |
|
15 * Description: |
|
16 * {{Description of the file}} |
|
17 * |
|
18 */ |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include "TestPublisherAppUi.h" |
|
22 #include "TestPublisherDocument.h" |
|
23 |
|
24 // ============================ MEMBER FUNCTIONS =============================== |
|
25 |
|
26 // ----------------------------------------------------------------------------- |
|
27 // CTestPublisherDocument::NewL() |
|
28 // Two-phased constructor. |
|
29 // ----------------------------------------------------------------------------- |
|
30 // |
|
31 CTestPublisherDocument* CTestPublisherDocument::NewL(CEikApplication& aApp) |
|
32 { |
|
33 CTestPublisherDocument* self = NewLC(aApp); |
|
34 CleanupStack::Pop(self); |
|
35 return self; |
|
36 } |
|
37 |
|
38 // ----------------------------------------------------------------------------- |
|
39 // CTestPublisherDocument::NewLC() |
|
40 // Two-phased constructor. |
|
41 // ----------------------------------------------------------------------------- |
|
42 // |
|
43 CTestPublisherDocument* CTestPublisherDocument::NewLC(CEikApplication& aApp) |
|
44 { |
|
45 CTestPublisherDocument* self = new (ELeave) CTestPublisherDocument(aApp); |
|
46 |
|
47 CleanupStack::PushL(self); |
|
48 self->ConstructL(); |
|
49 return self; |
|
50 } |
|
51 |
|
52 // ----------------------------------------------------------------------------- |
|
53 // CTestPublisherDocument::ConstructL() |
|
54 // Symbian 2nd phase constructor can leave. |
|
55 // ----------------------------------------------------------------------------- |
|
56 // |
|
57 void CTestPublisherDocument::ConstructL() |
|
58 { |
|
59 // No implementation required |
|
60 } |
|
61 |
|
62 // ----------------------------------------------------------------------------- |
|
63 // CTestPublisherDocument::CTestPublisherDocument() |
|
64 // C++ default constructor can NOT contain any code, that might leave. |
|
65 // ----------------------------------------------------------------------------- |
|
66 // |
|
67 CTestPublisherDocument::CTestPublisherDocument(CEikApplication& aApp) : |
|
68 CAknDocument(aApp) |
|
69 { |
|
70 // No implementation required |
|
71 } |
|
72 |
|
73 // --------------------------------------------------------------------------- |
|
74 // CTestPublisherDocument::~CTestPublisherDocument() |
|
75 // Destructor. |
|
76 // --------------------------------------------------------------------------- |
|
77 // |
|
78 CTestPublisherDocument::~CTestPublisherDocument() |
|
79 { |
|
80 // No implementation required |
|
81 } |
|
82 |
|
83 // --------------------------------------------------------------------------- |
|
84 // CTestPublisherDocument::CreateAppUiL() |
|
85 // Constructs CreateAppUi. |
|
86 // --------------------------------------------------------------------------- |
|
87 // |
|
88 CEikAppUi* CTestPublisherDocument::CreateAppUiL() |
|
89 { |
|
90 // Create the application user interface, and return a pointer to it; |
|
91 // the framework takes ownership of this object |
|
92 return new (ELeave) CTestPublisherAppUi; |
|
93 } |
|
94 |
|
95 // End of File |