diff -r 000000000000 -r 667063e416a2 locationsystemui/locationsysui/locsysuiview/src/locpossettings.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/locationsystemui/locationsysui/locsysuiview/src/locpossettings.cpp Tue Feb 02 01:06:48 2010 +0200 @@ -0,0 +1,129 @@ +/* +* Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Positioning Settings implementation of Location UIs. +* +*/ + + +// System Include +#include +#include + +// User Include +#include "locpossettings.h" +#include "locsysuiview.h" + +// --------------------------------------------------------------------------- +// CLocPosSettings::CLocPosSettings +// Overloaded Constructor +// +// --------------------------------------------------------------------------- +// +CLocPosSettings::CLocPosSettings() + { + } + +// --------------------------------------------------------------------------- +// CLocPosSettings::~CLocPosSettings +// Destructor +// +// --------------------------------------------------------------------------- +// +CLocPosSettings::~CLocPosSettings() + { + } + +// --------------------------------------------------------------------------- +// CLocPosSettings* CLocPosSettings::NewL +// Two phase constructor +// +// --------------------------------------------------------------------------- +// +EXPORT_C CLocPosSettings* CLocPosSettings::NewL() + { + CLocPosSettings* self = CLocPosSettings::NewLC(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// CLocPosSettings* CLocPosSettings::NewL +// Two phase constructor +// +// --------------------------------------------------------------------------- +// +EXPORT_C CLocPosSettings* CLocPosSettings::NewLC() + { + CLocPosSettings* self = new(ELeave) CLocPosSettings(); + CleanupStack::PushL( self ); + self->ConstructL(); + return self; + } + +// --------------------------------------------------------------------------- +// void CLocPosSettings::ConstructL +// +// --------------------------------------------------------------------------- +// +void CLocPosSettings::ConstructL() + { + // Create the Positioning Specfic view and set its observer + iView = CLocSysUiView::NewL(); + + CEikonEnv* env = CEikonEnv::Static(); + + // Transferring the view's control to AppUi + (static_cast( env->EikAppUi()))->AddViewL( iView ); + } + +// --------------------------------------------------------------------------- +// void CLocPosSettings::LaunchLocationUIL +// +// --------------------------------------------------------------------------- +// +void CLocPosSettings::LaunchLocationUIL( TInt /* aUiInputParams */, + MLocationUIObserver* aObserver ) + { + // Set the call back observer for this Launch call + iView->SetObserver( aObserver ); + + // Activate the Positoning Settings View + iView->ActivateViewL(); + } + +// --------------------------------------------------------------------------- +// void CLocPosSettings::LaunchLocationUIL +// +// --------------------------------------------------------------------------- +// +void CLocPosSettings::LaunchLocationUIL( const TDesC& /* aUiInputParams */, + MLocationUIObserver* aObserver ) + { + // Set the call back observer for this Launch call + iView->SetObserver( aObserver ); + + // Activate the Positoning Settings View + iView->ActivateViewL(); + } + +// --------------------------------------------------------------------------- +// void CLocPosSettings::Close +// +// --------------------------------------------------------------------------- +// +void CLocPosSettings::Close() + { + // Deactivate the Postioning Settings view. + iView->DeActivateView(); + }