iaupdate/IAD/ui/inc/iaupdaterequestobserver.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     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:   MIAUpdateRequestObserver interface
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef IA_UPDATE_REQUEST_OBSERVER_H
       
    21 #define IA_UPDATE_REQUEST_OBSERVER_H
       
    22 
       
    23 class CIAUpdateResult;
       
    24 
       
    25 /**
       
    26  * MIAUpdateRequestObserver interface is used to observe
       
    27  * when the requested operation has been completed.
       
    28  *
       
    29  * @since 3.2
       
    30  */
       
    31 class MIAUpdateRequestObserver
       
    32     {
       
    33     
       
    34 public:
       
    35 
       
    36     /**
       
    37      * Called when an outstanding request is completed
       
    38      *
       
    39      * @param aResult Contains information about 
       
    40      * available updates or about success of performed updates.
       
    41      * Ownership is transferred.
       
    42      * @param aUpdateNow True value if an user answered yes to update query
       
    43      * @param aCountOfAvailableUpdates Count of available updates
       
    44      * @param aError Error code that informs the result 
       
    45      * of the requested operation. KErrNone if operation was
       
    46      * succesfull.
       
    47      *
       
    48      * @since 3.2
       
    49      */
       
    50     virtual void RequestCompleted( CIAUpdateResult* aResult, 
       
    51                                    TInt aCountOfAvailableUpdates,  
       
    52                                    TBool aUpdateNow,
       
    53                                    TInt aError ) = 0;
       
    54 
       
    55 
       
    56 protected:
       
    57 
       
    58     /**
       
    59      * Protected destructor prevents unwanted deletion of
       
    60      * this class object. 
       
    61      *
       
    62      * @since 3.2
       
    63      */
       
    64     virtual ~MIAUpdateRequestObserver() { }
       
    65     
       
    66     };
       
    67 
       
    68 #endif // IA_UPDATE_REQUEST_OBSERVER_H