lbs/lbsclient/src/ctlbsclientpostp274.cpp
branchSymbian2
changeset 1 8758140453c0
child 6 c108117318cb
equal deleted inserted replaced
0:e8c1ea2c6496 1:8758140453c0
       
     1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Symbian Foundation License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 
       
    17 
       
    18 //  INCLUDES
       
    19 #include "ctlbsclientpostp274.h"
       
    20 
       
    21 #include <EPos_CPosModules.h>
       
    22 #include <EPos_CPosModuleUpdate.h>
       
    23 
       
    24 // ================= MEMBER FUNCTIONS =======================
       
    25 
       
    26 
       
    27 // ---------------------------------------------------------
       
    28 // Constructor.
       
    29 // ---------------------------------------------------------
       
    30 CT_LbsClientPosTp274::CT_LbsClientPosTp274(CT_LbsServer& aParent): CT_LbsPortedStepBase(aParent)
       
    31 	{  
       
    32 	_LIT(KTestName, "Tp274-Disable PSY, Epos server crash (ESLI-649HQH)");
       
    33 	SetTestStepName(KTestName); 
       
    34 	}
       
    35 
       
    36 // ---------------------------------------------------------
       
    37 // Destructor.
       
    38 // ---------------------------------------------------------
       
    39 CT_LbsClientPosTp274::~CT_LbsClientPosTp274()
       
    40 	{
       
    41 	}
       
    42 
       
    43 // ---------------------------------------------------------
       
    44 // CT_LbsClientPosTp274::StartL
       
    45 //
       
    46 // (other items were commented in a header).
       
    47 // ---------------------------------------------------------
       
    48 //
       
    49 void CT_LbsClientPosTp274::StartL()
       
    50     {
       
    51     ConnectL();
       
    52 
       
    53     SetupPsyL(iUidMultiPsy);
       
    54 
       
    55     User::LeaveIfError(OpenPositionerByName(iUidMultiPsy));
       
    56 
       
    57     RPositioner positioner;
       
    58     User::LeaveIfError(positioner.Open(iPosServer, iUidMultiPsy));
       
    59     CleanupClosePushL(positioner);    
       
    60 
       
    61     iPositioner.Close();
       
    62     
       
    63     CPosModules* modulesDb = CPosModules::OpenL();
       
    64     CleanupStack::PushL(modulesDb);
       
    65     CPosModuleUpdate* moduleUpdate = CPosModuleUpdate::NewLC(); 
       
    66     moduleUpdate->SetUpdateAvailability(EFalse);
       
    67     modulesDb->UpdateModuleL(iUidMultiPsy, *moduleUpdate);
       
    68     CleanupStack::PopAndDestroy(2, modulesDb);
       
    69 
       
    70     CleanupStack::PopAndDestroy(&positioner);
       
    71     
       
    72     iPosServer.Close();
       
    73 
       
    74     }
       
    75 
       
    76 // ---------------------------------------------------------
       
    77 // CT_LbsClientPosTp274::CloseTest
       
    78 //
       
    79 // (other items were commented in a header).
       
    80 // ---------------------------------------------------------
       
    81 //
       
    82 void CT_LbsClientPosTp274::CloseTest()
       
    83     {
       
    84     iPositioner.Close();
       
    85     iPosServer.Close();
       
    86     }
       
    87 
       
    88 //  End of File