3
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 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: Juha Kauppinen, Mika Hokkanen
|
|
13 |
*
|
|
14 |
* Description: Photo Browser
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
// INCLUDE FILES
|
|
19 |
#include "ImagicDocument.h"
|
|
20 |
#include "ImagicAppUi.h"
|
|
21 |
|
|
22 |
// ================= MEMBER FUNCTIONS =======================
|
|
23 |
|
|
24 |
// constructor
|
|
25 |
CImagicDocument::CImagicDocument(CEikApplication& aApp)
|
|
26 |
: CAknDocument(aApp)
|
|
27 |
{
|
|
28 |
|
|
29 |
}
|
|
30 |
|
|
31 |
// destructor
|
|
32 |
CImagicDocument::~CImagicDocument()
|
|
33 |
{
|
|
34 |
|
|
35 |
}
|
|
36 |
|
|
37 |
// EPOC default constructor can leave.
|
|
38 |
void CImagicDocument::ConstructL()
|
|
39 |
{
|
|
40 |
|
|
41 |
}
|
|
42 |
|
|
43 |
// Two-phased constructor.
|
|
44 |
CImagicDocument* CImagicDocument::NewL(CEikApplication& aApp) // CImagicApp reference
|
|
45 |
{
|
|
46 |
|
|
47 |
CImagicDocument* self = new (ELeave) CImagicDocument( aApp );
|
|
48 |
CleanupStack::PushL( self );
|
|
49 |
self->ConstructL();
|
|
50 |
CleanupStack::Pop( self );
|
|
51 |
|
|
52 |
return self;
|
|
53 |
}
|
|
54 |
|
|
55 |
// ----------------------------------------------------
|
|
56 |
// CImagicDocument::CreateAppUiL()
|
|
57 |
// constructs CImagicAppUi
|
|
58 |
// ----------------------------------------------------
|
|
59 |
//
|
|
60 |
CEikAppUi* CImagicDocument::CreateAppUiL()
|
|
61 |
{
|
|
62 |
|
|
63 |
|
|
64 |
// Create the application user interface, and return a pointer to it;
|
|
65 |
// the framework takes ownership of this object
|
|
66 |
return ( static_cast <CEikAppUi*> ( new ( ELeave ) CImagicAppUi ) );
|
|
67 |
|
|
68 |
}
|
|
69 |
|
|
70 |
// End of File
|