phoneengine/PhoneCntFinder/ContactService/inc/mphcntaiwservice.h
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Inteface for fetching contact links from AIW.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MPHCNTAIWSERVICE_H
       
    20 #define MPHCNTAIWSERVICE_H
       
    21 
       
    22 class MPhCntServiceRequestParam;
       
    23 class MPhCntServiceResult;
       
    24 
       
    25 NONSHARABLE_CLASS( MPhCntAiwServiceObserver )
       
    26     {
       
    27 public:
       
    28     
       
    29     /**
       
    30      * Indicates that AIW service request is complete.
       
    31      * 
       
    32      * @since S60 v3.2
       
    33      * @param aError Possible error code.
       
    34      */
       
    35     virtual void RequestComplete( TInt aError ) = 0;
       
    36     };
       
    37 
       
    38 /**
       
    39  * AIW service wrapper interface.
       
    40  *
       
    41  * @lib PhoneCntFinder.lib
       
    42  * @since S60 v3.2
       
    43  */
       
    44 NONSHARABLE_CLASS( MPhCntAiwService )
       
    45     {
       
    46 public:
       
    47 
       
    48     /**
       
    49      * Destructor.
       
    50      *
       
    51      * @since S60 v3.2
       
    52      */
       
    53     virtual ~MPhCntAiwService() {};
       
    54     
       
    55     /**
       
    56      * Cancels the possible outstanding request.
       
    57      * @since S60 v3.2
       
    58      */
       
    59     virtual void Cancel() = 0;
       
    60     
       
    61     /**
       
    62      * Determines if request is active.
       
    63      * @since S60 v3.2
       
    64      */
       
    65     virtual TBool IsRequestActive() const = 0;
       
    66          
       
    67     /**
       
    68      * Makes AIW service request
       
    69      *
       
    70      * @since S60 v3.2
       
    71      * @param aService Parameters used with AIW.
       
    72      * @param aResult Result of the request.
       
    73      * @param aObserver Observer, which is notified when request has completed.
       
    74      */
       
    75     virtual void ExecuteRequestL( 
       
    76         MPhCntServiceRequestParam& aServiceRequestParams, 
       
    77         MPhCntServiceResult& aResult,
       
    78         MPhCntAiwServiceObserver& aObserver) = 0;
       
    79     
       
    80     };
       
    81 
       
    82 #endif // MPHCNTAIWSERVICE_H