landmarks/locationlandmarks/tsrc/LandmarkTestModule/inc/FT_CPosTp106.h
branchRCL_3
changeset 44 2b4ea9893b66
equal deleted inserted replaced
42:02ba3f1733c6 44:2b4ea9893b66
       
     1 /*
       
     2 * Copyright (c) 2005 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 CPOSTp106_H
       
    21 #define CPOSTp106_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include "FT_CLandmarkTestProcedureBase.h"
       
    25 
       
    26 #include <e32base.h>
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 /**
       
    31 *  Test procedure 50
       
    32 */
       
    33 class CPosTp106 : public CLandmarkTestProcedureBase
       
    34     {
       
    35     public:  // Constructors and destructor
       
    36         
       
    37         /**
       
    38         * C++ default constructor.
       
    39         */
       
    40         CPosTp106(TInt tpno, CStifLogger* aLog) : CLandmarkTestProcedureBase(tpno, aLog) {};
       
    41         
       
    42         /**
       
    43         * Destructor.
       
    44         */
       
    45         ~CPosTp106() {};
       
    46 
       
    47     public: // Functions from base classes
       
    48 
       
    49         /**
       
    50         * From CLandmarkTestProcedureBase
       
    51         * Runs the test in the module
       
    52         */
       
    53         void StartL();
       
    54 
       
    55         /**
       
    56         * From CLandmarkTestProcedureBase
       
    57         * Always called, even if the test leaves
       
    58         */
       
    59         void CloseTest();
       
    60 
       
    61         static void RunTestL(TAny* aData);
       
    62         
       
    63         void CreateAndListDatabasesL(TInt index);
       
    64         
       
    65         void CopyDatabasesL(TInt index);
       
    66         
       
    67         void DeleteDatabasesL();
       
    68         
       
    69         void SetAndGetUriL(TInt index);
       
    70         
       
    71         void GetDisplayNameL();
       
    72         
       
    73         void CheckIfExistL(TInt index);
       
    74 
       
    75     private: // Functions
       
    76       
       
    77         void StartMultipleClientsL(TUint aNoClients);
       
    78 
       
    79         void CreateThreadsL(const TUint aNoThreads);
       
    80 
       
    81     private: // data
       
    82          
       
    83          TTime iStart;
       
    84          TTime iStop;
       
    85          	
       
    86         enum TTestStep
       
    87 			{
       
    88             Step1               =0,	
       
    89             Step2               =1,	
       
    90             Step3      			=2,
       
    91             Step4    			=3,
       
    92             Step5    			=4,
       
    93             Step6    			=5
       
    94 			};
       
    95         
       
    96         TInt                iTestStep;
       
    97         
       
    98         RArray<RThread>	    iThreads; 
       
    99         TInt                iThreadIndex;
       
   100         TInt                iThreadNum;
       
   101     };
       
   102 
       
   103 
       
   104 
       
   105 #endif      // CPOSTp106_H
       
   106             
       
   107 // End of File