sbsv2/raptor/test/smoke_suite/test_resources/simple_gui/HelloWorld_Document.cpp
author Richard Taylor <richard.i.taylor@nokia.com>
Wed, 14 Jul 2010 14:50:01 +0100
changeset 616 24e4ef208cca
parent 591 22486c9c7b15
permissions -rw-r--r--
sbs version 2.14.2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
591
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     1
/*
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     2
* Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies).
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     3
* All rights reserved.
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     4
* This component and the accompanying materials are made available
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     5
* under the terms of the License "Eclipse Public License v1.0"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     6
* which accompanies this distribution, and is available
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     8
*
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     9
* Initial Contributors:
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    11
*
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    12
* Contributors:
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    13
*
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    14
* Description: 
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    15
* HelloWorld_CExampleDocument.cpp
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    16
*
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    17
*/
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    18
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    19
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    20
#include "HelloWorld.h"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    21
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    22
//             The constructor of the document class just passes the
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    23
//             supplied reference to the constructor initialisation list.
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    24
//             The document has no real work to do in this application.
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    25
//
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    26
CExampleDocument::CExampleDocument(CEikApplication& aApp)
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    27
		: CEikDocument(aApp)
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    28
	{
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    29
	}
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    30
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    31
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    32
//             This is called by the UI framework as soon as the 
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    33
//             document has been created. It creates an instance
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    34
//             of the ApplicationUI. The Application UI class is
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    35
//             an instance of a CEikAppUi derived class.
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    36
//
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    37
CEikAppUi* CExampleDocument::CreateAppUiL()
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    38
	{
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    39
    return new(ELeave) CExampleAppUi;
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    40
	}