locationlandmarksrefappfors60/Inc/LandmarksOperationObserver.h
branchRCL_3
changeset 17 1fc85118c3ae
parent 16 8173571d354e
child 18 870918037e16
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
     1 /*
       
     2 * Copyright (c) 2004-2005 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:  
       
    15 *     See class description below
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __LANDMARKS_OPERATION_OBSERVER_H__
       
    21 #define __LANDMARKS_OPERATION_OBSERVER_H__
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 // CONSTANTS
       
    27 const TInt KOperationReady = 100;
       
    28 const TInt KOperationNotReady = 0;
       
    29 
       
    30 // DATA TYPES
       
    31 /**
       
    32 * TOperation indicates which operation type has been processed
       
    33 */
       
    34 enum TOperation
       
    35     {
       
    36     ENoOperation,
       
    37     EInitializeDb,
       
    38     ELandmarkSearch,
       
    39     ECategorySearch,
       
    40     ELandmarkRead,
       
    41     ECategoryRead,
       
    42     EAcquiringLocation
       
    43     };
       
    44 
       
    45 // CLASS DECLARATION
       
    46 
       
    47 /**
       
    48 *  An observer interface used for notifying the execution progress of 
       
    49 *  asynchronous opearations. 
       
    50 *  Typically used by objects deriving from other classes than CActive.
       
    51 */
       
    52 class MLandmarksOperationObserver
       
    53     {
       
    54     public: // New functions
       
    55 
       
    56         /**
       
    57         * NotifyOperationProgressL notifies the progress and status of an
       
    58         * asynchronous operation.
       
    59         *  
       
    60         * @param aOperation the type of operation that is reported.
       
    61         * @param aProgress the progress of the operation.
       
    62         * @param aErrorCode the status of the operation.
       
    63         */
       
    64         virtual void NotifyOperationProgressL(
       
    65             TOperation aOperation, 
       
    66             TInt aProgress, 
       
    67             TInt aErrorCode) = 0;
       
    68 
       
    69     };
       
    70 
       
    71 #endif // __LANDMARKS_OPERATION_OBSERVER_H__
       
    72 
       
    73 // End of File