ncdengine/inc/ncdsubscriptionoperationobserver.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     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:   Definition of MNcdSubscriptionOperationObserver interface
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef M_NCDSUBSCRIPTIONOPERATIONOBSERVER_H
       
    20 #define M_NCDSUBSCRIPTIONOPERATIONOBSERVER_H
       
    21 
       
    22 class MNcdSubscriptionOperation;
       
    23 class TNcdProgress;
       
    24 class MNcdQuery;
       
    25 
       
    26 /**
       
    27  *  Observer interface for subscription operations.
       
    28  *
       
    29  *  Subscription operation users should implement this interface to be able to
       
    30  *  receive callbacks.
       
    31  */
       
    32 class MNcdSubscriptionOperationObserver
       
    33     {
       
    34     
       
    35 public:
       
    36 
       
    37     /**
       
    38      * Called when a subscription operation has progressed.
       
    39      *
       
    40      * @param aOperation The operation that sent the event.
       
    41      * @param aProgress Progress of the operation.
       
    42      */
       
    43     virtual void SubscriptionProgress( MNcdSubscriptionOperation& aOperation,
       
    44         TNcdProgress aProgress ) = 0;
       
    45 
       
    46     /**
       
    47      * Called when a query has been received for an operation.
       
    48      *
       
    49      * @param aOperation The operation that sent the event.
       
    50      * @param aQuery Pointer to the query object. Counted, Release() must be
       
    51      *  called after use.
       
    52      */
       
    53     virtual void QueryReceived( MNcdSubscriptionOperation& aOperation,
       
    54         MNcdQuery* aQuery ) = 0;
       
    55 
       
    56     /**
       
    57      * Called when an operation has been completed.
       
    58      *
       
    59      * @param aOperation The operation that sent the event.
       
    60      * @param aError Error code for operation completion. KErrNone for
       
    61      * successful completion, otherwise a system wide error code.
       
    62      */
       
    63     virtual void OperationComplete( MNcdSubscriptionOperation& aOperation,
       
    64         TInt aError ) = 0;
       
    65     };
       
    66     
       
    67 #endif // M_NCDSUBSCRIPTIONOPERATIONOBSERVER_H