taskswitcher/testapplications/generator/generator/common/src/helloworldbasicdocument.cpp
changeset 117 c63ee96dbe5f
equal deleted inserted replaced
115:3ab5c078b490 117:c63ee96dbe5f
       
     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:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 // INCLUDE FILES
       
    19 #include "HelloWorldBasicAppUi.h"
       
    20 #include "HelloWorldBasicDocument.h"
       
    21 
       
    22 // ============================ MEMBER FUNCTIONS ===============================
       
    23 
       
    24 // -----------------------------------------------------------------------------
       
    25 // CHelloWorldBasicDocument::NewL()
       
    26 // Two-phased constructor.
       
    27 // -----------------------------------------------------------------------------
       
    28 //
       
    29 CHelloWorldBasicDocument* CHelloWorldBasicDocument::NewL( CEikApplication&
       
    30                                                           aApp )
       
    31     {
       
    32     CHelloWorldBasicDocument* self = NewLC( aApp );
       
    33     CleanupStack::Pop( self );
       
    34     return self;
       
    35     }
       
    36 
       
    37 // -----------------------------------------------------------------------------
       
    38 // CHelloWorldBasicDocument::NewLC()
       
    39 // Two-phased constructor.
       
    40 // -----------------------------------------------------------------------------
       
    41 //
       
    42 CHelloWorldBasicDocument* CHelloWorldBasicDocument::NewLC( CEikApplication&
       
    43                                                            aApp )
       
    44     {
       
    45     CHelloWorldBasicDocument* self =
       
    46         new ( ELeave ) CHelloWorldBasicDocument( aApp );
       
    47 
       
    48     CleanupStack::PushL( self );
       
    49     self->ConstructL();
       
    50     return self;
       
    51     }
       
    52 
       
    53 // -----------------------------------------------------------------------------
       
    54 // CHelloWorldBasicDocument::ConstructL()
       
    55 // Symbian 2nd phase constructor can leave.
       
    56 // -----------------------------------------------------------------------------
       
    57 //
       
    58 void CHelloWorldBasicDocument::ConstructL()
       
    59     {
       
    60     // No implementation required
       
    61     }
       
    62 
       
    63 // -----------------------------------------------------------------------------
       
    64 // CHelloWorldBasicDocument::CHelloWorldBasicDocument()
       
    65 // C++ default constructor can NOT contain any code, that might leave.
       
    66 // -----------------------------------------------------------------------------
       
    67 //
       
    68 CHelloWorldBasicDocument::CHelloWorldBasicDocument( CEikApplication& aApp )
       
    69     : CAknDocument( aApp )
       
    70     {
       
    71     // No implementation required
       
    72     }
       
    73 
       
    74 // ---------------------------------------------------------------------------
       
    75 // CHelloWorldBasicDocument::~CHelloWorldBasicDocument()
       
    76 // Destructor.
       
    77 // ---------------------------------------------------------------------------
       
    78 //
       
    79 CHelloWorldBasicDocument::~CHelloWorldBasicDocument()
       
    80     {
       
    81     // No implementation required
       
    82     }
       
    83 
       
    84 // ---------------------------------------------------------------------------
       
    85 // CHelloWorldBasicDocument::CreateAppUiL()
       
    86 // Constructs CreateAppUi.
       
    87 // ---------------------------------------------------------------------------
       
    88 //
       
    89 CEikAppUi* CHelloWorldBasicDocument::CreateAppUiL()
       
    90     {
       
    91     // Create the application user interface, and return a pointer to it;
       
    92     // the framework takes ownership of this object
       
    93     return ( static_cast <CEikAppUi*> ( new ( ELeave )
       
    94                                         CHelloWorldBasicAppUi ) );
       
    95     }
       
    96 
       
    97 // End of File
       
    98