0
|
1 |
/*
|
|
2 |
* Copyright (c) 2003 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:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#include "EcmtGuiApplication.h"
|
|
20 |
#include "EcmtGuiAppUi.h"
|
|
21 |
#include "EcmtGuiDocument.h"
|
|
22 |
|
|
23 |
CEcmtGuiDocument* CEcmtGuiDocument::NewL(CEikApplication& aApp, TUid aUid)
|
|
24 |
{
|
|
25 |
CEcmtGuiDocument* self = NewLC(aApp, aUid);
|
|
26 |
CleanupStack::Pop(self);
|
|
27 |
return self;
|
|
28 |
}
|
|
29 |
|
|
30 |
CEcmtGuiDocument* CEcmtGuiDocument::NewLC(CEikApplication& aApp, TUid aUid)
|
|
31 |
{
|
|
32 |
CEcmtGuiDocument* self = new (ELeave) CEcmtGuiDocument(aApp, aUid);
|
|
33 |
CleanupStack::PushL(self);
|
|
34 |
self->ConstructL();
|
|
35 |
return self;
|
|
36 |
}
|
|
37 |
|
|
38 |
void CEcmtGuiDocument::ConstructL()
|
|
39 |
{
|
|
40 |
// No implementation required
|
|
41 |
}
|
|
42 |
|
|
43 |
CEcmtGuiDocument::CEcmtGuiDocument(CEikApplication& aApp, TUid aUid) : CAknDocument(aApp), iUid( aUid )
|
|
44 |
{
|
|
45 |
// No implementation required
|
|
46 |
}
|
|
47 |
|
|
48 |
CEcmtGuiDocument::~CEcmtGuiDocument()
|
|
49 |
{
|
|
50 |
// No implementation required
|
|
51 |
}
|
|
52 |
|
|
53 |
TUid CEcmtGuiDocument::GetUid()
|
|
54 |
{
|
|
55 |
return iUid;
|
|
56 |
}
|
|
57 |
|
|
58 |
CEikAppUi* CEcmtGuiDocument::CreateAppUiL()
|
|
59 |
{
|
|
60 |
// Create the application user interface, and return a pointer to it;
|
|
61 |
// the framework takes ownership of this object
|
|
62 |
return (static_cast <CEikAppUi*> (new (ELeave) CEcmtGuiAppUi));
|
|
63 |
}
|
|
64 |
|