inc/DrmUdtObserver.h
author Pat Downey <patd@symbian.org>
Tue, 26 Oct 2010 15:52:41 +0100
branchRCL_3
changeset 89 c38f396e1cd0
parent 0 95b198f216e5
permissions -rw-r--r--
Re-merge foundation certs(Bug 1993) and fix for Bug 2121.

/*
* Copyright (c) 2002-2004 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  ?Description
*
*/


#ifndef DRM_UDT_OBSERVER_H
#define DRM_UDT_OBSERVER_H

// INCLUDES
// CLASS DECLARATION

class TUdtStateInfo
    {
    public:
    
    enum TUdtState
        {
        EUdtNotStarted,
        EUdtReguest,
        EUdtStatusNotification,
        EUdtRegistration,
        EUdtDeleteConfirmation,
        EUdtKeyRestore,
        EUdtComplete
        };
        
    TUdtState iState;
    
    TInt iProgress; // 0 - 100
    
    TInt iError;
    };

class MDrmUdtObserver
    {
    public:
    
    /**
    * ConnectionStartedL
    * 
    * The function is called by DrmUdtModule when a network connection is to
    * be established.
    * 
    * @since  3.0
    *
    * @leave  System wide error code */
    virtual void ConnectionStartedL() = 0;

    /**
    * UdtProgressInfoL
    * 
    * The function is called by DrmUdtModule to provide UDT state information to the caller
    * 
    * @since  3.0
    *
    * @leave  System wide error code */
    virtual void UdtProgressInfoL( TUdtStateInfo& aProgress ) = 0;
    
    };
    
#endif /* DRM_UDT_OBSERVER_H */