landmarks/locationlandmarks/tsrc/LandmarkTestModule/inc/FT_CPosTP27.h
branchRCL_3
changeset 44 2b4ea9893b66
equal deleted inserted replaced
42:02ba3f1733c6 44:2b4ea9893b66
       
     1 /*
       
     2 * Copyright (c) 2004 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 "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *   ?description_line
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CPOSTp27_H
       
    21 #define CPOSTp27_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include "FT_CLandmarkTestProcedureBase.h"
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29 *  Test procedure 27
       
    30 */
       
    31 class CPosTp27 :public CLandmarkTestProcedureBase
       
    32     {
       
    33     public:  // Constructors and destructor
       
    34         
       
    35         /**
       
    36         * C++ default constructor.
       
    37         */
       
    38         CPosTp27(TInt tpno, CStifLogger* aLog) : CLandmarkTestProcedureBase(tpno, aLog) 
       
    39             {iGlobalErr = KErrNone;iNrSearchRounds=0;iBreakSearch=-1;
       
    40              iCancelOrDelete = EFalse;iHandleOperationDisabled=EFalse;
       
    41              iDebug=ETrue;iProgress=100;};
       
    42         
       
    43         /**
       
    44         * Destructor.
       
    45         */
       
    46         ~CPosTp27() {};
       
    47 
       
    48     public: // Functions from base classes
       
    49 
       
    50         /**
       
    51         * From CUtfwTestBase
       
    52         * Retrieves the test module name
       
    53         * @param aName The name of the test module.
       
    54         */
       
    55         void GetName(
       
    56             TDes&   aName
       
    57             ) const;
       
    58 
       
    59         /**
       
    60         * From CUtfwTestBase
       
    61         */
       
    62         void CloseTest();
       
    63 
       
    64         /**
       
    65         * From CPosTestProcedureBase
       
    66         * Runs the test in the module
       
    67         */
       
    68         void StartL();
       
    69 
       
    70         /**
       
    71         * From MPosLmAsyncObserver
       
    72         * Called to report progress of an asynchronous landmarko peration.
       
    73         * @param aOperation The object which handles the asyncronous operation.
       
    74         */
       
    75         void HandleOperationProgress(CPosLmOperation*  aOperation);
       
    76 
       
    77 
       
    78         static TInt StopActiveSchedulerWait(TAny* aSelf);
       
    79 
       
    80     private:    // New functions
       
    81 
       
    82         /**
       
    83         * Test to cancel a landmark category search
       
    84         * 
       
    85         */
       
    86         void CancelLandmarkCategorySearch();
       
    87 
       
    88         /**
       
    89         * Test to cancel a landmark search
       
    90         * 
       
    91         */
       
    92         void CancelLandmarkSearch();
       
    93 
       
    94     private:    // Data
       
    95 
       
    96         RFs     iFileServer;
       
    97         RFile   iFile;
       
    98         TInt    iGlobalErr;
       
    99         TInt    iNrSearchRounds;
       
   100         TInt    iBreakSearch;
       
   101         TBool   iCancelOrDelete;
       
   102         TBool   iHandleOperationDisabled;
       
   103         TBool   iDebug;
       
   104         CPeriodic* iPeriodicTimer;
       
   105         TReal32 iProgress;
       
   106 
       
   107     };
       
   108 
       
   109 #endif      // CPOSTp27_H
       
   110             
       
   111 // End of File