securitydialogs/Autolock/src/AutolockDocument.cpp
branchRCL_3
changeset 49 09b1ac925e3f
parent 47 63339781d179
child 50 03674e5abf46
equal deleted inserted replaced
47:63339781d179 49:09b1ac925e3f
     1 /*
       
     2 * Copyright (c) 2002 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 FILES
       
    20 #include <apgwgnam.h>
       
    21 #include "AutolockDocument.h"
       
    22 #include "AutolockAppUiPS.h"
       
    23 
       
    24 // ================= MEMBER FUNCTIONS =======================
       
    25 //
       
    26 // ----------------------------------------------------
       
    27 // CAutolockDocument::ConstructL()
       
    28 // destructor.
       
    29 // ----------------------------------------------------
       
    30 //
       
    31 CAutolockDocument::~CAutolockDocument()
       
    32     {
       
    33     }
       
    34 // ----------------------------------------------------
       
    35 // CAutolockDocument::ConstructL()
       
    36 // Symbian OS default constructor can leave..
       
    37 // ----------------------------------------------------
       
    38 //
       
    39 void CAutolockDocument::ConstructL()
       
    40     {
       
    41     }
       
    42 // ----------------------------------------------------
       
    43 // CAutolockDocument::NewL()
       
    44 // Two-phased constructor.
       
    45 // ----------------------------------------------------
       
    46 //
       
    47 CAutolockDocument* CAutolockDocument::NewL(CEikApplication& aApp)     
       
    48     {
       
    49     CAutolockDocument* self = new (ELeave) CAutolockDocument( aApp );
       
    50     CleanupStack::PushL( self );
       
    51     self->ConstructL();
       
    52     CleanupStack::Pop();
       
    53     return self;
       
    54     }
       
    55 // ----------------------------------------------------
       
    56 // CAutolockDocument::CreateAppUiL()
       
    57 // constructs CAutolockAppUi
       
    58 // ----------------------------------------------------
       
    59 //
       
    60 CEikAppUi* CAutolockDocument::CreateAppUiL()
       
    61     {
       
    62     return new (ELeave) CAutolockAppUi;
       
    63     }
       
    64 
       
    65 // ----------------------------------------------------
       
    66 // CAutolockDocument::UpdateTaskNameL()
       
    67 // Sets app hidden...
       
    68 // ----------------------------------------------------
       
    69 //
       
    70 void CAutolockDocument::UpdateTaskNameL( CApaWindowGroupName* aWgName )
       
    71 	{
       
    72 	CEikDocument::UpdateTaskNameL( aWgName );
       
    73 	aWgName->SetHidden( ETrue );
       
    74 	}
       
    75 // End of File