locationtriggering/ltstrategyengine/inc/lbtstatusmanager.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 of Status Manager
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_CLBTSTATUSMANAGER_H
       
    21 #define C_CLBTSTATUSMANAGER_H
       
    22 
       
    23 
       
    24 #include <e32property.h>
       
    25 
       
    26 
       
    27 typedef TInt16 TAcquisitionStatus;
       
    28 
       
    29 
       
    30 /**
       
    31  * This class defines the methods used by CLbtStrategyEngine to report 
       
    32  * location acquisition status. This class uses Location Triggering Status 
       
    33  * Information API. 
       
    34  */
       
    35 NONSHARABLE_CLASS( CLbtStatusManager ) : public CBase
       
    36 
       
    37 	{
       
    38 	
       
    39 public:
       
    40 
       
    41     /**
       
    42      * Factory function that instantiates an object of CLbtStatusManager
       
    43      */
       
    44 	static CLbtStatusManager* NewL();
       
    45 	
       
    46 	/**
       
    47 	 * Destructor
       
    48 	 */
       
    49 	~CLbtStatusManager();
       
    50 	
       
    51 	/**
       
    52 	 * This method is invoked by an instance of CLbtStrategyEngine to report
       
    53 	 * location acquisition status.
       
    54 	 */
       
    55 	void ReportLocationAcquisitionStatus( TAcquisitionStatus aStatus );
       
    56 	
       
    57 	/**
       
    58 	 * This method checks the status of last location acquisition operation.
       
    59 	 * TRUE if successful, otherwise FALSE
       
    60 	 */
       
    61 	TBool LocationAcqSuccess();
       
    62 
       
    63 private:
       
    64 
       
    65 	/**
       
    66 	 * Default constructor
       
    67 	 */
       
    68 	CLbtStatusManager();
       
    69 	
       
    70 	/**
       
    71 	 * 2nd phase constuctor for instantiating member variables
       
    72 	 */
       
    73 	void ConstructL();
       
    74 	
       
    75 private:
       
    76 
       
    77 	RProperty	            iStatusInfo;
       
    78 	
       
    79 	TAcquisitionStatus      iLastLocAcqStatus;
       
    80 	
       
    81 	};
       
    82 
       
    83 #endif	// C_CLBTSTATUSMANAGER_H