diff -r e8c1ea2c6496 -r 8758140453c0 lbs/lbsclient/src/ctlbsclientpostp274.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lbs/lbsclient/src/ctlbsclientpostp274.cpp Thu Jan 21 12:53:44 2010 +0000 @@ -0,0 +1,88 @@ +// Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of the License "Symbian Foundation License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + + + +// INCLUDES +#include "ctlbsclientpostp274.h" + +#include +#include + +// ================= MEMBER FUNCTIONS ======================= + + +// --------------------------------------------------------- +// Constructor. +// --------------------------------------------------------- +CT_LbsClientPosTp274::CT_LbsClientPosTp274(CT_LbsServer& aParent): CT_LbsPortedStepBase(aParent) + { + _LIT(KTestName, "Tp274-Disable PSY, Epos server crash (ESLI-649HQH)"); + SetTestStepName(KTestName); + } + +// --------------------------------------------------------- +// Destructor. +// --------------------------------------------------------- +CT_LbsClientPosTp274::~CT_LbsClientPosTp274() + { + } + +// --------------------------------------------------------- +// CT_LbsClientPosTp274::StartL +// +// (other items were commented in a header). +// --------------------------------------------------------- +// +void CT_LbsClientPosTp274::StartL() + { + ConnectL(); + + SetupPsyL(iUidMultiPsy); + + User::LeaveIfError(OpenPositionerByName(iUidMultiPsy)); + + RPositioner positioner; + User::LeaveIfError(positioner.Open(iPosServer, iUidMultiPsy)); + CleanupClosePushL(positioner); + + iPositioner.Close(); + + CPosModules* modulesDb = CPosModules::OpenL(); + CleanupStack::PushL(modulesDb); + CPosModuleUpdate* moduleUpdate = CPosModuleUpdate::NewLC(); + moduleUpdate->SetUpdateAvailability(EFalse); + modulesDb->UpdateModuleL(iUidMultiPsy, *moduleUpdate); + CleanupStack::PopAndDestroy(2, modulesDb); + + CleanupStack::PopAndDestroy(&positioner); + + iPosServer.Close(); + + } + +// --------------------------------------------------------- +// CT_LbsClientPosTp274::CloseTest +// +// (other items were commented in a header). +// --------------------------------------------------------- +// +void CT_LbsClientPosTp274::CloseTest() + { + iPositioner.Close(); + iPosServer.Close(); + } + +// End of File