common/tools/ats/smoketest/lbs/lbsclient/src/ctlbsclientpostp275.cpp
changeset 748 e13acd883fbe
child 872 17498133d9ad
equal deleted inserted replaced
747:76f9aaeefbab 748:e13acd883fbe
       
     1 // Copyright (c) 2001-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 "ctlbsclientpostp275.h"
       
    20 #include <babackup.h>
       
    21 
       
    22 // CONSTANTS
       
    23 
       
    24 // ================= MEMBER FUNCTIONS =======================
       
    25 
       
    26 
       
    27 // ---------------------------------------------------------
       
    28 // Constructor.
       
    29 // ---------------------------------------------------------
       
    30 CT_LbsClientPosTp275::CT_LbsClientPosTp275(CT_LbsServer& aParent): CT_LbsPortedStepBase(aParent)
       
    31 	{ 
       
    32 	_LIT(KTestName, "TP275 - BackUpTest");
       
    33 	SetTestStepName(KTestName); 
       
    34 	}
       
    35 
       
    36 // ---------------------------------------------------------
       
    37 // Destructor.
       
    38 // ---------------------------------------------------------
       
    39 CT_LbsClientPosTp275::~CT_LbsClientPosTp275()
       
    40 	{
       
    41 	}
       
    42 
       
    43 // ---------------------------------------------------------
       
    44 // CT_LbsClientPosTp275::CloseTest
       
    45 //
       
    46 // (other items were commented in a header).
       
    47 // ---------------------------------------------------------
       
    48 //
       
    49 void CT_LbsClientPosTp275::CloseTest()
       
    50     {
       
    51     }
       
    52 
       
    53 // ---------------------------------------------------------
       
    54 // CT_LbsClientPosTp275::StartL
       
    55 //
       
    56 // (other items were commented in a header).
       
    57 // ---------------------------------------------------------
       
    58 //
       
    59 void CT_LbsClientPosTp275::StartL()
       
    60     {
       
    61     ///////////////////////////////
       
    62     CBaBackupSessionWrapper* backupWrapper = CBaBackupSessionWrapper::NewL();
       
    63     CleanupStack::PushL(backupWrapper);
       
    64     TBackupOperationAttributes backStart(MBackupObserver::EReleaseLockReadOnly,
       
    65         MBackupOperationObserver::EStart);
       
    66     backupWrapper->NotifyBackupOperationL(backStart);	
       
    67     RPositionServer server;
       
    68     CleanupClosePushL(server);
       
    69     User::LeaveIfError(server.Connect());
       
    70     User::After(2000000);
       
    71 
       
    72     CleanupStack::PopAndDestroy(2, backupWrapper);    
       
    73     }
       
    74 
       
    75 //  End of File