0
|
1 /*=====================================================================
|
|
2
|
|
3 Copyright © 2007 Nokia Corporation. All rights reserved.
|
|
4
|
|
5 ======================================================================*/
|
|
6
|
|
7 /*
|
|
8 ============================================================================
|
|
9 Name : DemoCubeDocument.cpp
|
|
10 Author : Nokia Computer Vision Team in NRC Palo Alto
|
|
11 Copyright : Your copyright notice
|
|
12 Description : CDemoCubeDocument implementation
|
|
13 ============================================================================
|
|
14 */
|
|
15
|
|
16
|
|
17 // INCLUDE FILES
|
|
18 #include "DemoCubeAppUi.h"
|
|
19 #include "DemoCubeDocument.h"
|
|
20
|
|
21 // ============================ MEMBER FUNCTIONS ===============================
|
|
22
|
|
23 // -----------------------------------------------------------------------------
|
|
24 // CDemoCubeDocument::NewL()
|
|
25 // Two-phased constructor.
|
|
26 // -----------------------------------------------------------------------------
|
|
27 //
|
|
28 CDemoCubeDocument* CDemoCubeDocument::NewL( CEikApplication&
|
|
29 aApp )
|
|
30 {
|
|
31 CDemoCubeDocument* self = NewLC( aApp );
|
|
32 CleanupStack::Pop( self );
|
|
33 return self;
|
|
34 }
|
|
35
|
|
36 // -----------------------------------------------------------------------------
|
|
37 // CDemoCubeDocument::NewLC()
|
|
38 // Two-phased constructor.
|
|
39 // -----------------------------------------------------------------------------
|
|
40 //
|
|
41 CDemoCubeDocument* CDemoCubeDocument::NewLC( CEikApplication&
|
|
42 aApp )
|
|
43 {
|
|
44 CDemoCubeDocument* self =
|
|
45 new ( ELeave ) CDemoCubeDocument( aApp );
|
|
46
|
|
47 CleanupStack::PushL( self );
|
|
48 self->ConstructL();
|
|
49 return self;
|
|
50 }
|
|
51
|
|
52 // -----------------------------------------------------------------------------
|
|
53 // CDemoCubeDocument::ConstructL()
|
|
54 // Symbian 2nd phase constructor can leave.
|
|
55 // -----------------------------------------------------------------------------
|
|
56 //
|
|
57 void CDemoCubeDocument::ConstructL()
|
|
58 {
|
|
59 // No implementation required
|
|
60 }
|
|
61
|
|
62 // -----------------------------------------------------------------------------
|
|
63 // CDemoCubeDocument::CDemoCubeDocument()
|
|
64 // C++ default constructor can NOT contain any code, that might leave.
|
|
65 // -----------------------------------------------------------------------------
|
|
66 //
|
|
67 CDemoCubeDocument::CDemoCubeDocument( CEikApplication& aApp )
|
|
68 : CAknDocument( aApp )
|
|
69 {
|
|
70 // No implementation required
|
|
71 }
|
|
72
|
|
73 // ---------------------------------------------------------------------------
|
|
74 // CDemoCubeDocument::~CDemoCubeDocument()
|
|
75 // Destructor.
|
|
76 // ---------------------------------------------------------------------------
|
|
77 //
|
|
78 CDemoCubeDocument::~CDemoCubeDocument()
|
|
79 {
|
|
80 // No implementation required
|
|
81 }
|
|
82
|
|
83 // ---------------------------------------------------------------------------
|
|
84 // CDemoCubeDocument::CreateAppUiL()
|
|
85 // Constructs CreateAppUi.
|
|
86 // ---------------------------------------------------------------------------
|
|
87 //
|
|
88 CEikAppUi* CDemoCubeDocument::CreateAppUiL()
|
|
89 {
|
|
90 // Create the application user interface, and return a pointer to it;
|
|
91 // the framework takes ownership of this object
|
|
92 return ( static_cast <CEikAppUi*> ( new ( ELeave )
|
|
93 CDemoCubeAppUi ) );
|
|
94 }
|
|
95
|
|
96 // End of File
|