locationsystemui/locationsysui/locsysuiview/inc/locsettingsuiparams.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 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 CLocSettingsUiParams
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // System Include 
       
    20 #include <aknViewAppUi.h>
       
    21 
       
    22 // User Includes
       
    23 #include "locsettingsuiobserver.h"
       
    24 
       
    25 // ============================ MEMBER FUNCTIONS ===============================
       
    26 
       
    27 // -----------------------------------------------------------------------------
       
    28 // CLocSettingsUiParams::CLocSettingsUiParams
       
    29 // C++ default constructor can NOT contain any code, that
       
    30 // might leave.
       
    31 // -----------------------------------------------------------------------------
       
    32 //
       
    33 inline CLocSettingsUiParams::CLocSettingsUiParams( MLocSettingsUiObserver&	aSettingsUiObserver,
       
    34 					 			 			       CAknViewAppUi&			aAppUi )
       
    35     :iSettingsUiObserver( aSettingsUiObserver ),
       
    36      iAppUi( aAppUi )
       
    37     {
       
    38     }
       
    39 
       
    40 // -----------------------------------------------------------------------------
       
    41 // CLocSettingsUiParams::~CLocSettingsUiParams
       
    42 // Destructor.
       
    43 // -----------------------------------------------------------------------------
       
    44 //
       
    45 inline CLocSettingsUiParams::~CLocSettingsUiParams()
       
    46     {
       
    47     }
       
    48 
       
    49 // -----------------------------------------------------------------------------
       
    50 // CLocSettingsUiParams* CLocSettingsUiParams::NewL
       
    51 // Two-phased constructor.
       
    52 // -----------------------------------------------------------------------------
       
    53 //
       
    54 inline CLocSettingsUiParams* CLocSettingsUiParams::NewL( MLocSettingsUiObserver& aObserver,
       
    55 									 	 		         CAknViewAppUi&		     aAppUi )
       
    56     {
       
    57    	CLocSettingsUiParams* self = new(ELeave) CLocSettingsUiParams( aObserver,
       
    58     													 	       aAppUi );
       
    59 	CleanupStack::PushL(self);
       
    60 	self->ConstructL();
       
    61 	CleanupStack::Pop(self);
       
    62 	return self;
       
    63     }
       
    64   
       
    65 // -----------------------------------------------------------------------------
       
    66 // CLocSettingsUiParams* CLocSettingsUiParams::NewLC
       
    67 // Two-phased constructor.
       
    68 // -----------------------------------------------------------------------------
       
    69 //
       
    70 inline CLocSettingsUiParams* CLocSettingsUiParams::NewLC( MLocSettingsUiObserver&	aObserver,
       
    71 									 	 			      CAknViewAppUi&			aAppUi )
       
    72     {
       
    73    	CLocSettingsUiParams* self = new(ELeave) CLocSettingsUiParams( aObserver,
       
    74     													 	       aAppUi );
       
    75 	CleanupStack::PushL(self);
       
    76 	self->ConstructL();
       
    77 	return self;
       
    78     }
       
    79 
       
    80 // -----------------------------------------------------------------------------
       
    81 // void CLocSettingsUiParams::ConstructL
       
    82 // Second phase of Construction
       
    83 // -----------------------------------------------------------------------------
       
    84 //
       
    85 inline void CLocSettingsUiParams::ConstructL()
       
    86 	{
       
    87 	}
       
    88 		       
       
    89 // -----------------------------------------------------------------------------
       
    90 // SettingsUIObserver Accessor function
       
    91 //
       
    92 // @return MSettingsUIObserver&	Reference to the Settings UI Observer
       
    93 // -----------------------------------------------------------------------------
       
    94 //
       
    95  inline MLocSettingsUiObserver& CLocSettingsUiParams::SettingsUiObserver()
       
    96  	{
       
    97  	return iSettingsUiObserver;
       
    98  	}
       
    99 
       
   100 // -----------------------------------------------------------------------------
       
   101 // CAknViewAppUi Accessor function
       
   102 //
       
   103 // @return CAknViewAppUi&	Reference to the AppUi Object
       
   104 // -----------------------------------------------------------------------------
       
   105 //
       
   106  inline CAknViewAppUi&	CLocSettingsUiParams::AppUi()
       
   107  	{
       
   108  	return iAppUi;
       
   109  	}
       
   110 		 
       
   111 // End of File
       
   112