loc_plat/location_centre_api/inc/lcappexitobserver.h
branchRCL_3
changeset 16 4721bd00d3da
parent 14 3a25f69541ff
child 21 e15b7f06eba6
equal deleted inserted replaced
14:3a25f69541ff 16:4721bd00d3da
     1 /*
       
     2 * Copyright (c) 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:  Observer class defintion to notify the termination of
       
    15 *                Chained Location Applications.
       
    16 *
       
    17 */
       
    18 #ifndef M_LCAPPEXITOBSERVER_H
       
    19 #define M_LCAPPEXITOBSERVER_H
       
    20 
       
    21 /**
       
    22  *  @file lcappexitobserver.h
       
    23  *
       
    24  *  This file provides the definitions for the observer class which is used
       
    25  *  by Location Centre to notify the termination of a Chained Location based
       
    26  *  Application.
       
    27  *
       
    28  *  @lib lcservice.lib
       
    29  *  @since S60 v5.0 
       
    30  */
       
    31 
       
    32 // SYSTEM INCLUDES
       
    33 #include <e32base.h>
       
    34 
       
    35 /**
       
    36  *  @class MLcAppExitObserver
       
    37  *  Observer class to notify the termination of a launched Location based
       
    38  *  Application.
       
    39  *
       
    40  *  This observer will provide the notification only when the Location based
       
    41  *  Application is launched as a Chained application. This client
       
    42  *  application needs to pass an instance of this class when calling 
       
    43  *  @ref CLcService::LaunchLocationApplicationL if it wants to be notified
       
    44  *  of a Location Application exit event incase the Location based 
       
    45  *  Application is launched as a Chained application. 
       
    46  *
       
    47  *  @lib lcservice.lib
       
    48  *  @since S60 v5.0
       
    49  */
       
    50 class MLcAppExitObserver
       
    51     {
       
    52 public:
       
    53     /**
       
    54      * Notification for the termination of the chained Location based 
       
    55      * Application.
       
    56      *
       
    57      * @since S60 v5.0
       
    58      * @param[in] aReason The reason that the Location based Application exited.
       
    59      *                    This will either be an error code, or the command
       
    60      *                    id that caused the Location based Application to exit.
       
    61      */
       
    62     virtual void HandleChainedLocationAppExitL( TInt aReason ) = 0;
       
    63     };
       
    64 
       
    65 #endif // M_LCAPPEXITOBSERVER_H