cellular/SSSettings/src/CSSSettingsRefreshContainer.cpp
changeset 46 2fa1fa551b0b
parent 42 35488577e233
child 48 78df25012fda
equal deleted inserted replaced
42:35488577e233 46:2fa1fa551b0b
     1 /*
       
     2 * Copyright (c) 2004 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:  Container class for refresh related implementation..
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include    <csssettingsrefreshcontainer.h> 
       
    22 #include    "csssettingsrefreshhandler.h" 
       
    23 
       
    24 
       
    25 // ============================ MEMBER FUNCTIONS ===============================
       
    26 
       
    27 
       
    28 // -----------------------------------------------------------------------------
       
    29 // CSSSettingsRefreshContainer::CSSSettingsRefreshContainer
       
    30 // -----------------------------------------------------------------------------
       
    31 //
       
    32 CSSSettingsRefreshContainer::CSSSettingsRefreshContainer()
       
    33     {
       
    34     }
       
    35 
       
    36 // -----------------------------------------------------------------------------
       
    37 // CSSSettingsRefreshContainer::ConstructL
       
    38 // -----------------------------------------------------------------------------
       
    39 //
       
    40 void CSSSettingsRefreshContainer::ConstructL()
       
    41     {
       
    42     iRefreshHandler = CSSSettingsRefreshHandler::NewL(); 
       
    43     }
       
    44 
       
    45 // -----------------------------------------------------------------------------
       
    46 // CSSSettingsRefreshContainer::NewL
       
    47 // -----------------------------------------------------------------------------
       
    48 //
       
    49 EXPORT_C CSSSettingsRefreshContainer* CSSSettingsRefreshContainer::NewL()
       
    50     {
       
    51     CSSSettingsRefreshContainer* self = 
       
    52         new( ELeave ) CSSSettingsRefreshContainer;
       
    53     
       
    54     CleanupStack::PushL( self );
       
    55     self->ConstructL();
       
    56     CleanupStack::Pop();
       
    57 
       
    58     return self;
       
    59     }
       
    60 
       
    61 // -----------------------------------------------------------------------------
       
    62 // CSSSettingsRefreshContainer::~CSSSettingsRefreshContainer
       
    63 // -----------------------------------------------------------------------------
       
    64 //
       
    65 EXPORT_C CSSSettingsRefreshContainer::~CSSSettingsRefreshContainer()
       
    66     {
       
    67     delete iRefreshHandler;
       
    68     iRefreshHandler = NULL;
       
    69     }
       
    70 
       
    71 // -----------------------------------------------------------------------------
       
    72 // CSSSettingsRefreshContainer::RefreshHandler
       
    73 // -----------------------------------------------------------------------------
       
    74 //
       
    75 EXPORT_C MSSSettingsRefreshHandler& 
       
    76     CSSSettingsRefreshContainer::RefreshHandler()
       
    77     {
       
    78     return *iRefreshHandler;
       
    79     }
       
    80 
       
    81 
       
    82 //  End of File