drm_plat/drm_utility_api/inc/drmasyncobserver.h
changeset 0 95b198f216e5
equal deleted inserted replaced
-1:000000000000 0:95b198f216e5
       
     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:  Generic interface class for Asynchronous callbacks from
       
    15  *                asynchronous functions in the DRM Utility API
       
    16  *
       
    17  *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef MDRMASYNCOBSERVER_H
       
    22 #define MDRMASYNCOBSERVER_H
       
    23 
       
    24 #include <e32def.h>
       
    25 
       
    26 namespace DRM
       
    27     {
       
    28     /**
       
    29      *  Observer class for Asynchronous operations in DRM Utility
       
    30      *
       
    31      *  Provides callback(s) to the the observer when the asynchronous operations
       
    32      *  complete
       
    33      *  @code
       
    34      *   ?good_class_usage_example(s)
       
    35      *  @endcode
       
    36      *
       
    37      *  @since S60 v5.0
       
    38      */
       
    39 class MDrmAsyncObserver
       
    40     {
       
    41 public:
       
    42 
       
    43     /**
       
    44      * A callback function which tells when the asynchronous operation has been
       
    45      * completed
       
    46      *
       
    47      * @since S60 v5.0
       
    48      * @param[in] aOperationId          Identifier of the asynchronous operation
       
    49      *                                  which was returned when the asynchronous
       
    50      *                                  operation was initiated
       
    51      * @param[in] aOperationStatus      The final status of the operation
       
    52      * @return None
       
    53      * @leave None
       
    54      */
       
    55     virtual void OperationCompleted( TInt aOperationId, TInt aOperationStatus ) = 0;
       
    56     };
       
    57 
       
    58     }
       
    59 #endif // MDRMASYNCOBSERVER_H