locationtriggering/ltcellidmovementdetector/inc/lbtcellidmvmtdetgetcelldata.h
changeset 0 667063e416a2
equal deleted inserted replaced
-1:000000000000 0:667063e416a2
       
     1 /*
       
     2 * Copyright (c) 2008 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:  Definition of CLbtCellIdMvmtDetGetCellData class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_LBTCELLIDMVMTDETGETCELLDATA_H
       
    21 #define C_LBTCELLIDMVMTDETGETCELLDATA_H
       
    22 
       
    23 
       
    24 // INCLUDE FILES
       
    25 #include <e32base.h>
       
    26 #include <rmmcustomapi.h>
       
    27 
       
    28 #include "lbtcellidmvmtdetcelloberserver.h"
       
    29 
       
    30 
       
    31 class CLbtCellIdMvmtDetGetCellData : public CActive
       
    32 	{
       
    33 	
       
    34 public:		
       
    35 
       
    36     /**
       
    37 	 * Instantiates a new object ofCLbtCellIdMvmtDetGetCellData
       
    38 	 */
       
    39 	static CLbtCellIdMvmtDetGetCellData* NewL(
       
    40 	                    MLbtCellIdMvmtDetCellOberserver& aObserver,
       
    41 	  					RMmCustomAPI& aMnCustomApi);
       
    42 		
       
    43 	/**
       
    44 	 * Destructor
       
    45 	 */
       
    46     virtual ~CLbtCellIdMvmtDetGetCellData();
       
    47 
       
    48     /**
       
    49      * Initiates operation to acquire NW measurements at 1s intervals
       
    50      */
       
    51     void Start();
       
    52     
       
    53 	/**
       
    54 	 * Gets the information regarding ARFCN,BSIC,timing advance
       
    55 	 * for the mobile at that instance.
       
    56 	 */
       
    57 	void GetCellInfo();
       
    58 	  
       
    59     /**
       
    60      * Terminates NW measurement acquisition
       
    61      */
       
    62 	void Stop();
       
    63 	     
       
    64 protected : // From CActive
       
    65 
       
    66     /**
       
    67      *
       
    68      */    
       
    69     void RunL();
       
    70       
       
    71     /**
       
    72      *
       
    73      */    
       
    74     void DoCancel();   
       
    75     
       
    76 private:
       
    77 
       
    78     /**
       
    79 	 * Default C++ Constructor
       
    80 	 */
       
    81 	CLbtCellIdMvmtDetGetCellData(MLbtCellIdMvmtDetCellOberserver& aObserver,
       
    82 	  									RMmCustomAPI& aMnCustomApi);  
       
    83 	/**
       
    84 	 * 2nd phase constuctor for instantiating member variables
       
    85 	 */ 
       
    86 	void ConstructL();
       
    87 	  
       
    88 	/**
       
    89 	 *
       
    90 	 */
       
    91 	enum TState
       
    92         {
       
    93         EIdle = 1,
       
    94         ETimerOperation,
       
    95         EProcessCellInfo
       
    96         };
       
    97 	  
       
    98 private: // data
       
    99 	
       
   100 	/**
       
   101 	 * Reference to MLbtCellIdMvmtDetCellOberserver class.
       
   102 	 */ 
       
   103 	MLbtCellIdMvmtDetCellOberserver& iObserver;
       
   104 
       
   105 	/**
       
   106 	 * 
       
   107 	 */ 
       
   108     TInt                            iReqID;
       
   109     
       
   110 	/**
       
   111 	 * 
       
   112 	 */ 
       
   113     TState                          iState;
       
   114 
       
   115 	/**
       
   116 	 * 
       
   117 	 */ 
       
   118     RMmCustomAPI&                   iCApi;
       
   119 
       
   120 	/**
       
   121 	 * 
       
   122 	 */ 
       
   123     RMmCustomAPI::TMmCellInfo       iCellInfo;
       
   124 
       
   125 	/**
       
   126 	 * 
       
   127 	 */ 
       
   128     RMmCustomAPI::TMmCellInfoPckg   iCellPckg;
       
   129 
       
   130 	/**
       
   131 	 * 
       
   132 	 */ 
       
   133     RTimer                          iTimer;
       
   134 
       
   135 	/**
       
   136 	 * 
       
   137 	 */ 
       
   138     TBool                           iStopNotification;
       
   139 
       
   140 	};
       
   141     
       
   142 #endif // C_LBTCELLIDMVMTDETGETCELLDATA_H