apicompatanamdw/bcdrivers/os/lbs/LocAcquisition/inc/testposition.h
author Maciej Seroka <maciejs@symbian.org>
Thu, 11 Nov 2010 14:03:20 +0000
changeset 26 26ffa9d5444d
parent 2 0cb2248d0edc
permissions -rw-r--r--
Updated knownissues.xml - wk_45_2010

/*
* Copyright (c) 2007 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:  Helper class for TPosition class
*
*/


#ifndef CLBSPOSITION_H
#define CLBSPOSITION_H

// System Includes
#include <StifLogger.h>
#include <StifParser.h>
#include <lbs.h>
#include <LbsPositionInfo.h>
#include <LbsCommon.h>
#include <LbsRequestor.h>
#include <lbssatellite.h>
#include <lbsclasstypes.h>
#include <LbsPosition.h>

// Constants


// CLASS DECLARATION
/**
 *  
 *
 *  This class is a helper class used to handle the functions of TPosition
 *  class. 
 *
 *  @lib tlbslocacquisition.lib
 *  @since S60 v3.2
 */

class TTestPosition
    {
    public:  // Constructors and destructor

        /**
        * C++ default constructor.
        */
        TTestPosition(CStifLogger* aLog);

        /**
        * Destructor. 
        */
        ~TTestPosition();

    public:         
        
                   
		  
        // New functions  
	    /**
	     * Test Case for constructors of TPosition class
	     *
	     * @since S60 v3.2
	     * Returns KErrNone if successful. 
	     *
	     */        
		  TInt CreatePosition(CStifItemParser& aItem);
		  /**
		  * Test case for setting & getting the time
		  * Returns KErrNone if successful. 
		  */
		  TInt SetGetTime(CStifItemParser& aItem);
		  /**
		  * Test case for setting current time
		  * Returns KErrNone if successful. 
		  */
		  TInt SettingTime();
		  /**
		  * Test case for checking Speed method
		  * Returns KErrNone if successful. 
		  */
		  TInt GetSpeed(CStifItemParser& aItem);
		  /**
		  * Test case for checking Speed method with accuracy
		  * Returns KErrNone if successful. 
		  */
		  TInt GetSpeed1(CStifItemParser& aItem);
		  
		 
		  
	private:
	    /**
	     * Test case for Default Constructor of TPosition
	     * Returns KErrNone if successful
	     */
	    TInt DefaultConstructor();
	    /**
	    * Test case for constructor of TPosition with locality object 
	    * & time as parameters
	    * Returns KErrNone if successful
	    */
	    TInt Position1(TLocality& locality,TTime time);
	    
	   
	    
    private:  //data
	   
	    /**
	     * Pointer to Stif Logger - Does not Own
	     */           
        CStifLogger* 			iLog;
        
     };     

#endif      //  CLBSPOSITION_H

// End of File