lbstest/lbstestproduct/lbsclient/src/ctlbsclientpostp275.cpp
changeset 0 9cfd9a3ee49c
equal deleted inserted replaced
-1:000000000000 0:9cfd9a3ee49c
       
     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 "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-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     TBackupOperationAttributes backEnd(MBackupObserver::ETakeLock,
       
    73     MBackupOperationObserver::EEnd);
       
    74     backupWrapper->NotifyBackupOperationL(backEnd);
       
    75     CleanupStack::PopAndDestroy(2, backupWrapper);    
       
    76     }
       
    77 
       
    78 //  End of File