commonuisupport/uilaf/loadlafshutdown/src/loadlafshutdown.cpp
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description: Used by lafshutdowneventobserveradaptor for creating shutdown manager.
       
    14 //
       
    15 
       
    16 #include "loadlafshutdown.h"
       
    17 EXPORT_C MSsmLoadLafShut * CLoadLafShutdown::NewL()
       
    18     {
       
    19     CLoadLafShutdown* loadLafShutdown = new (ELeave) CLoadLafShutdown();
       
    20     return loadLafShutdown ;
       
    21     }
       
    22 
       
    23 CLoadLafShutdown::CLoadLafShutdown()
       
    24     {
       
    25     }
       
    26 
       
    27 CLoadLafShutdown::~CLoadLafShutdown()
       
    28     {
       
    29     delete iLafShutdown;
       
    30     }
       
    31 
       
    32 void CLoadLafShutdown::CreateShutdownManager(MShutdownEventObserver& aObserver)
       
    33     {
       
    34     ASSERT(!iLafShutdown);
       
    35     iLafShutdown = LafShutdown::CreateShutdownManager(aObserver);
       
    36     }
       
    37 
       
    38 void CLoadLafShutdown::DeleteShutdownManager()
       
    39     {
       
    40     delete this;
       
    41     }