psmservices/psmserver/src/client/psmsettings.cpp
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 /*
       
     2 * Copyright (c) 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:  Power save mode client class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "psmsettings.h"
       
    20 #include "psmsettingsimpl.h"
       
    21 #include "psmtrace.h"
       
    22 
       
    23 // -----------------------------------------------------------------------------
       
    24 // CPsmSettings::NewL
       
    25 // Two-phased constructor.
       
    26 // -----------------------------------------------------------------------------
       
    27 //
       
    28 EXPORT_C CPsmSettings* CPsmSettings::NewL()
       
    29     {
       
    30     COMPONENT_TRACE( ( _L( "PSM Client - CPsmSettings::NewL()" ) ) );
       
    31     CPsmSettings* self = CPsmSettings::NewLC();
       
    32     CleanupStack::Pop( self );
       
    33     COMPONENT_TRACE( ( _L( "PSM Client - CPsmSettings::NewL - return 0x%x" ), self ) );
       
    34     return self;
       
    35     }
       
    36 
       
    37 // -----------------------------------------------------------------------------
       
    38 // CPsmSettings::NewLC
       
    39 // Two-phased constructor.
       
    40 // -----------------------------------------------------------------------------
       
    41 //
       
    42 EXPORT_C CPsmSettings* CPsmSettings::NewLC()
       
    43     {
       
    44     COMPONENT_TRACE( ( _L( "PSM Client - CPsmSettings::NewLC()" ) ) );
       
    45     CPsmSettingsImpl* self = new ( ELeave ) CPsmSettingsImpl;
       
    46     CleanupStack::PushL( self );
       
    47     self->ConstructL();
       
    48 
       
    49     COMPONENT_TRACE( ( _L( "PSM Client - CPsmSettings::NewLC - return 0x%x" ), self ) );
       
    50     return self;
       
    51     }
       
    52 
       
    53 // End of file