phoneapp/phoneui/src/cphonedocument.cpp
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2005 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:  Document class implementation.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include <apgwgnam.h>
       
    21 #include "cphonedocument.h"
       
    22 #include "cphoneappui.h"
       
    23 
       
    24 // ================= MEMBER FUNCTIONS =======================
       
    25 
       
    26 // C++ default constructor can NOT contain any code, that
       
    27 // might leave.
       
    28 //
       
    29 CPhoneDocument::CPhoneDocument( CEikApplication& aApp ) :
       
    30     CAknDocument( aApp )
       
    31     {
       
    32     }
       
    33 
       
    34 // ---------------------------------------------------------
       
    35 // CPhoneDocument::NewL
       
    36 // ---------------------------------------------------------
       
    37 //
       
    38 CPhoneDocument* CPhoneDocument::NewL( CEikApplication& aApp )
       
    39     {
       
    40     CPhoneDocument* self = new (ELeave) CPhoneDocument( aApp );
       
    41     
       
    42     return self;
       
    43     }
       
    44 
       
    45 // Destructor
       
    46 CPhoneDocument::~CPhoneDocument()
       
    47     {
       
    48     }
       
    49 
       
    50 // ---------------------------------------------------------
       
    51 // CPhoneDocument::CreateAppUiL
       
    52 //
       
    53 // Creates an instance of CPhoneAppUi and returns it.
       
    54 // ---------------------------------------------------------
       
    55 //
       
    56 CEikAppUi* CPhoneDocument::CreateAppUiL()
       
    57     {
       
    58     return new (ELeave) CPhoneAppUI;
       
    59     }
       
    60 
       
    61 // ---------------------------------------------------------
       
    62 // CPhoneDocument::UpdateTaskNameL
       
    63 // ---------------------------------------------------------
       
    64 //
       
    65 void CPhoneDocument::UpdateTaskNameL( CApaWindowGroupName* aWgName )
       
    66     {
       
    67     CAknDocument::UpdateTaskNameL( aWgName );
       
    68     aWgName->SetHidden( ETrue );
       
    69     }
       
    70 
       
    71 //  End of File