common/tools/ats/smoketest/lbs/lbsclient/inc/ctlbsclientpostp27.h
changeset 748 e13acd883fbe
child 872 17498133d9ad
equal deleted inserted replaced
747:76f9aaeefbab 748:e13acd883fbe
       
     1 /*
       
     2 * Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Symbian Foundation License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __CT_LBS_CLIENT_POS_TP27_H__
       
    21 #define __CT_LBS_CLIENT_POS_TP27_H__
       
    22 
       
    23 //  INCLUDES
       
    24 #include "ctlbsportedstepbase.h"
       
    25 
       
    26 // CONSTANTS
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33 *  Test procedure 27
       
    34 *
       
    35 */
       
    36 class CT_LbsClientPosTp27 :public CT_LbsPortedStepBase
       
    37     {
       
    38     public:  // Constructors and destructor
       
    39         
       
    40         /**
       
    41         * C++ default constructor.
       
    42         */
       
    43         CT_LbsClientPosTp27(CT_LbsServer& aParent);
       
    44         
       
    45         /**
       
    46         * Destructor.
       
    47         */
       
    48         ~CT_LbsClientPosTp27();
       
    49 
       
    50     public: // Functions from base classes
       
    51 
       
    52         /**
       
    53         * From CT_LbsPortedStepBase
       
    54         * Called after the tests
       
    55         */
       
    56         void CloseTest();
       
    57 
       
    58         /**
       
    59         * From CT_LbsPortedStepBase
       
    60         * Runs the test in the module
       
    61         */
       
    62         void StartL();
       
    63         
       
    64 	private:
       
    65 
       
    66 		/**
       
    67 		* Cancel a position request using the dialog plugin
       
    68 		* (The request does not reach the PSY since the dialog plugin waits for a cancell call
       
    69 		*/
       
    70 		void MakeCancelRequestL(TTimeIntervalMicroSeconds32 aCancelTime, TTimeIntervalMicroSeconds aTimeLimit);
       
    71 
       
    72 		/**
       
    73 		* Perform a position request while cancelling two other 
       
    74 		* notification requests and make sure that Epos does not hang!
       
    75 		* Using a "slow" psy assures that the position request has reached the Psy
       
    76 		*/
       
    77 		void MakeCancelRequest2L(TTimeIntervalMicroSeconds32 aCancelTime, TTimeIntervalMicroSeconds aTimeLimit);
       
    78 
       
    79 		/**
       
    80 		* Check that a request that is cancelled when
       
    81 		* the request has reached the PSY is logged in the requestlog.
       
    82 		*/ 
       
    83 		void CheckCancelRequestL();
       
    84 
       
    85         /**
       
    86         * Enables the specified PSY, does NOT disable any
       
    87         */
       
    88         void EnablePsyL(const TUid aPsyUid);
       
    89 
       
    90         /**
       
    91         * Disables all Psys
       
    92         */
       
    93         void DisableAllPsyL();
       
    94     };
       
    95 
       
    96 #endif      // __CT_LBS_CLIENT_POS_TP27_H__
       
    97             
       
    98 // End of File