inc/DrmUdtObserver.h
changeset 0 95b198f216e5
equal deleted inserted replaced
-1:000000000000 0:95b198f216e5
       
     1 /*
       
     2 * Copyright (c) 2002-2004 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:  ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef DRM_UDT_OBSERVER_H
       
    20 #define DRM_UDT_OBSERVER_H
       
    21 
       
    22 // INCLUDES
       
    23 // CLASS DECLARATION
       
    24 
       
    25 class TUdtStateInfo
       
    26     {
       
    27     public:
       
    28     
       
    29     enum TUdtState
       
    30         {
       
    31         EUdtNotStarted,
       
    32         EUdtReguest,
       
    33         EUdtStatusNotification,
       
    34         EUdtRegistration,
       
    35         EUdtDeleteConfirmation,
       
    36         EUdtKeyRestore,
       
    37         EUdtComplete
       
    38         };
       
    39         
       
    40     TUdtState iState;
       
    41     
       
    42     TInt iProgress; // 0 - 100
       
    43     
       
    44     TInt iError;
       
    45     };
       
    46 
       
    47 class MDrmUdtObserver
       
    48     {
       
    49     public:
       
    50     
       
    51     /**
       
    52     * ConnectionStartedL
       
    53     * 
       
    54     * The function is called by DrmUdtModule when a network connection is to
       
    55     * be established.
       
    56     * 
       
    57     * @since  3.0
       
    58     *
       
    59     * @leave  System wide error code */
       
    60     virtual void ConnectionStartedL() = 0;
       
    61 
       
    62     /**
       
    63     * UdtProgressInfoL
       
    64     * 
       
    65     * The function is called by DrmUdtModule to provide UDT state information to the caller
       
    66     * 
       
    67     * @since  3.0
       
    68     *
       
    69     * @leave  System wide error code */
       
    70     virtual void UdtProgressInfoL( TUdtStateInfo& aProgress ) = 0;
       
    71     
       
    72     };
       
    73     
       
    74 #endif /* DRM_UDT_OBSERVER_H */