1 /* |
|
2 * Copyright (c) 2010 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: Content Control example |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // [[[ begin generated region: do not modify [Generated User Includes] |
|
20 #include "HsContentControlDocument.h" |
|
21 #include "HsContentControlAppUi.h" |
|
22 // ]]] end generated region [Generated User Includes] |
|
23 |
|
24 /** |
|
25 * @brief Constructs the document class for the application. |
|
26 * @param anApplication the application instance |
|
27 */ |
|
28 CHsContentControlDocument::CHsContentControlDocument( CEikApplication& anApplication ) |
|
29 : CAknDocument( anApplication ) |
|
30 { |
|
31 } |
|
32 |
|
33 /** |
|
34 * @brief Completes the second phase of Symbian object construction. |
|
35 * Put initialization code that could leave here. |
|
36 */ |
|
37 void CHsContentControlDocument::ConstructL() |
|
38 { |
|
39 } |
|
40 |
|
41 /** |
|
42 * Symbian OS two-phase constructor. |
|
43 * |
|
44 * Creates an instance of CHsContentControlDocument, constructs it, and |
|
45 * returns it. |
|
46 * |
|
47 * @param aApp the application instance |
|
48 * @return the new CHsContentControlDocument |
|
49 */ |
|
50 CHsContentControlDocument* CHsContentControlDocument::NewL( CEikApplication& aApp ) |
|
51 { |
|
52 CHsContentControlDocument* self = new ( ELeave ) CHsContentControlDocument( aApp ); |
|
53 CleanupStack::PushL( self ); |
|
54 self->ConstructL(); |
|
55 CleanupStack::Pop( self ); |
|
56 return self; |
|
57 } |
|
58 |
|
59 /** |
|
60 * @brief Creates the application UI object for this document. |
|
61 * @return the new instance |
|
62 */ |
|
63 CEikAppUi* CHsContentControlDocument::CreateAppUiL() |
|
64 { |
|
65 return new ( ELeave ) CHsContentControlAppUi; |
|
66 } |
|
67 |
|