locationsystemui/locationsysui/locsysuiview/inc/locsettingsui.inl
branchRCL_3
changeset 44 2b4ea9893b66
parent 42 02ba3f1733c6
child 45 6b6920c56e2f
equal deleted inserted replaced
42:02ba3f1733c6 44:2b4ea9893b66
     1 /*
       
     2 * Copyright (c) 2005-2009 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:  Inline functions for CLocSettingsUi
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // System Include 
       
    20 #include <aknViewAppUi.h>
       
    21 
       
    22 // User Includes
       
    23 #include "locsettingsuiobserver.h"
       
    24 #include "locsettingsuiparams.h"
       
    25 
       
    26 // ============================ MEMBER FUNCTIONS ===============================
       
    27 
       
    28 // -----------------------------------------------------------------------------
       
    29 // CLocSettingsUi::CLocSettingsUi
       
    30 // C++ default constructor can NOT contain any code, that
       
    31 // might leave.
       
    32 // -----------------------------------------------------------------------------
       
    33 //
       
    34 inline CLocSettingsUi::CLocSettingsUi( MLocSettingsUiObserver&		aSettingsUiObserver,
       
    35 					 			       CAknViewAppUi&				aAppUi )
       
    36     :iSettingsUiObserver( aSettingsUiObserver ),
       
    37      iAppUi( aAppUi )
       
    38     {
       
    39     }
       
    40 
       
    41 // -----------------------------------------------------------------------------
       
    42 // CLocSettingsUi::~CLocSettingsUi
       
    43 // Destructor.
       
    44 // -----------------------------------------------------------------------------
       
    45 //
       
    46 inline CLocSettingsUi::~CLocSettingsUi()
       
    47     {
       
    48     // Call ECom Session Destroy function to delete the object
       
    49     REComSession::DestroyedImplementation( iDtor_ID_Key );
       
    50     }
       
    51 
       
    52 // -----------------------------------------------------------------------------
       
    53 // CLocSettingsUi* CLocSettingsUi::NewL
       
    54 // Two-phased constructor.
       
    55 // -----------------------------------------------------------------------------
       
    56 //
       
    57 inline CLocSettingsUi* CLocSettingsUi::NewL( const TUid					aImplementationUid,
       
    58 										 	 CLocSettingsUiParams&		aInitParams )
       
    59     {
       
    60     TAny* ptr;
       
    61     TInt32 keyOffset = _FOFF( CLocSettingsUi, iDtor_ID_Key );
       
    62     ptr = REComSession::CreateImplementationL( aImplementationUid, keyOffset, &aInitParams);
       
    63     return reinterpret_cast<CLocSettingsUi*>( ptr );
       
    64     }
       
    65     
       
    66 // -----------------------------------------------------------------------------
       
    67 // TInt CLocSettingsUi::CLocSettingsUi
       
    68 //
       
    69 // -----------------------------------------------------------------------------
       
    70 //
       
    71 inline TUid CLocSettingsUi::GetSettingsUiID()
       
    72     {
       
    73     return iDtor_ID_Key;
       
    74     }
       
    75     
       
    76 // -----------------------------------------------------------------------------
       
    77 // TInt CLocSettingsUi::LaunchL
       
    78 //
       
    79 // -----------------------------------------------------------------------------
       
    80 //
       
    81 inline void CLocSettingsUi::LaunchL( const TDesC&		/*aUiLaunchParams*/ )
       
    82     {
       
    83     User::Leave( KErrNotSupported );
       
    84     }
       
    85     
       
    86 // End of File
       
    87