satui/satapp/SATUISrc/CSatUiDocument.cpp
branchRCL_3
changeset 20 987c9837762f
parent 0 ff3b6d0fd310
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
       
     1 /*
       
     2 * Copyright (c) 2002-2007 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 *    Defines CSatUiDocument class
       
    16 *
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 // INCLUDE
       
    22 #include    <apgwgnam.h>
       
    23 #include    <aknnotedialog.h>
       
    24 #include    <aknstaticnotedialog.h>
       
    25 #include    "CSatUiViewAppUi.h"
       
    26 #include    "CSatUiActionPerformer.h"
       
    27 #include    "CSatUiDocument.h"
       
    28 #include    "tflogger.h"
       
    29 
       
    30 // ================= MEMBER FUNCTIONS =======================
       
    31 
       
    32 // Symbian OS default constructor can leave.
       
    33 void CSatUiDocument::ConstructL()
       
    34     {
       
    35     TFLOGSTRING( "CSatUiDocument::ConstructL() called" )
       
    36     iActionPerformer = CSatUiActionPerformer::NewL();
       
    37     TFLOGSTRING( "CSatUiDocument::ConstructL() exit" )
       
    38     }
       
    39 
       
    40 // Destructor.
       
    41 CSatUiDocument::~CSatUiDocument()
       
    42     {
       
    43     TFLOGSTRING( "CSatUiDocument::~CSatUiDocument called" )
       
    44     delete iActionPerformer;
       
    45     TFLOGSTRING( "CSatUiDocument::~CSatUiDocument exit" )
       
    46     }
       
    47 
       
    48 // ---------------------------------------------------------
       
    49 // CSatUiDocument::CreateAppUiL
       
    50 // Constructs App Ui object.
       
    51 // (other items were commented in a header).
       
    52 // ---------------------------------------------------------
       
    53 //
       
    54 CEikAppUi* CSatUiDocument::CreateAppUiL()
       
    55     {
       
    56     TFLOGSTRING( "CSatUiDocument::CreateAppUiL called" )
       
    57     iApplicationUi = new (ELeave) CSatUiViewAppUi;
       
    58     // Set adapter into SetUpMenu view.
       
    59     iApplicationUi->SetAdapter( iActionPerformer->Adapter() ); 
       
    60 
       
    61     iActionPerformer->SetImplementer( iApplicationUi );
       
    62     TFLOGSTRING( "CSatUiDocument::CreateAppUiL exit" )
       
    63     return iApplicationUi;
       
    64     }
       
    65 
       
    66 //  End of File