locationtriggering/tsrc/lbtengine_test/CellbasedtriggerOperations/inc/LbtAppCellInfo.h
changeset 0 667063e416a2
equal deleted inserted replaced
-1:000000000000 0:667063e416a2
       
     1 /*
       
     2 * Copyright (c) 2006, 2007 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:  Class definition for Time Manager 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_LBTAPPCELLINFO_H
       
    21 #define C_LBTAPPCELLINFO_H
       
    22 
       
    23 
       
    24 #include <e32base.h>
       
    25 #include <flogger.h>
       
    26 #include <Etel3rdParty.h>
       
    27 #include <etelmm.h>
       
    28 
       
    29 
       
    30 
       
    31 /**
       
    32  * This is a helper class that is utilized by strategy engine to initiate 
       
    33  * requests for notification once a designated interval of time has elapsed.
       
    34  * This class also provides the interface to determine elapsed time 
       
    35  * (in microseconds). 
       
    36  */
       
    37 NONSHARABLE_CLASS( CLbtAppCgiRequestor ) : public CActive
       
    38     {
       
    39 public:
       
    40 
       
    41     /**
       
    42      * Factory function that instantiates an object of CLbtStrategyTimeManager
       
    43      */
       
    44     static CLbtAppCgiRequestor* NewL(RFileLogger &aLog);
       
    45     
       
    46     /**
       
    47      * Destructor
       
    48      */
       
    49     ~CLbtAppCgiRequestor();
       
    50     
       
    51 public:
       
    52 
       
    53     /**
       
    54      * Initiates a request for notification after the specified time interval
       
    55      * has elapsed
       
    56      */
       
    57      void Start(CActiveSchedulerWait* aWait);
       
    58      
       
    59      CTelephony::TNetworkInfoV1Pckg CurrentCGI();
       
    60      
       
    61      /**
       
    62       * Cancels an outstanding request for notifications
       
    63       */
       
    64      void DoCancel();
       
    65      
       
    66 private:
       
    67 
       
    68     /**
       
    69      * Default constructor
       
    70      */
       
    71     CLbtAppCgiRequestor(RFileLogger &aLog);
       
    72     
       
    73     /**
       
    74      * 2nd phase constuctor for instantiating member variables
       
    75      */
       
    76     void ConstructL();
       
    77     
       
    78     void RunL();
       
    79 private:
       
    80 
       
    81     CTelephony::TNetworkInfoV1Pckg iNwInfoPckg;
       
    82     CTelephony::TNetworkInfoV1 iNwInfo;
       
    83     
       
    84     CTelephony  *iTelephony;
       
    85      
       
    86      RFileLogger &iLog;
       
    87      CActiveSchedulerWait* iWait;   
       
    88      
       
    89     };
       
    90 
       
    91 #endif  // C_LBTSTRATEGYTIMER_H