locationdataharvester/mylocationsengine/inc/mylocationgeotagtimerao.h
changeset 26 f3533f6eae3f
child 30 96df3ab41000
equal deleted inserted replaced
24:ccec19943943 26:f3533f6eae3f
       
     1 /*
       
     2 * Copyright (c) 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 "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:  3AM geo tagger handler
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __MYLOCATIONGEOTAGTIMERAO_H__
       
    19 #define __MYLOCATIONGEOTAGTIMERAO_H__
       
    20 
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32std.h>
       
    24 #include <e32base.h>
       
    25 
       
    26 /*
       
    27  * MyLocationTimerObserver class
       
    28  * observer class to notify the mylocation engine about the 3AM timer expiry.
       
    29  */
       
    30 class MyLocationTimerObserver
       
    31 {
       
    32 public:
       
    33    virtual void MyLocationThreeAMTimerExpiredL() = 0; 
       
    34 };
       
    35 
       
    36 /*
       
    37  * CLocationGeoTagTimerAO class
       
    38  * Class to handle 3AM timer expiry.
       
    39  */
       
    40 class CLocationGeoTagTimerAO : public CTimer
       
    41 {
       
    42     
       
    43 public:
       
    44      /**
       
    45       * 1st phase constructor.
       
    46       * @param aObserver, 3AM timer observer
       
    47       */
       
    48      static CLocationGeoTagTimerAO* NewL(
       
    49              MyLocationTimerObserver& aObserver ); 
       
    50 
       
    51      /**
       
    52       * Destructor
       
    53       */
       
    54      ~CLocationGeoTagTimerAO();
       
    55 
       
    56      /**
       
    57       * Start 3AM timer
       
    58       */
       
    59      void StartTimer();
       
    60 
       
    61      
       
    62 protected:
       
    63      /*
       
    64       * @see CActive::RunL()
       
    65       */
       
    66      void RunL();
       
    67     
       
    68      /**
       
    69       * 2nd Phase constructor
       
    70       */
       
    71      void ConstructL();
       
    72     
       
    73      /**
       
    74 	  * CLocationGeoTagTimerAO
       
    75 	  * Constructor
       
    76 	  * @param aObserver, 3AM timer observer
       
    77 	  */
       
    78      CLocationGeoTagTimerAO( MyLocationTimerObserver& aObserver );
       
    79       
       
    80 private:      
       
    81       MyLocationTimerObserver* iTimerObserver;
       
    82 };
       
    83 
       
    84 
       
    85 #endif /*__MYLOCATIONGEOTAGTIMERAO_H__*/
       
    86 
       
    87 // End of file