inc/wmdrmclientwrapper.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 19 Feb 2010 23:05:49 +0200
branchRCL_3
changeset 10 89a1f2bd800d
parent 0 95b198f216e5
permissions -rw-r--r--
Revision: 201003 Kit: 201007

/*
* Copyright (c) 2007 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:  
*
*/


#ifndef CWMDRMCLIENTWRAPPER_H
#define CWMDRMCLIENTWRAPPER_H

#include "wmdrmclient.h"

/**
 * Environment gate function
 *
 * @since S60 3.2
 * @return pointer to DMgr handler
 */
IMPORT_C TAny* GateFunctionWmDrmClientWrapper();

class MWmDrmClientWrapper
    {
public:
    virtual TInt Connect() = 0;
    };



/**
 *  Class for connecting to the WmDrmServer
 *
 *  @lib WmDrmClientWrapper
 *  @since S60 3.2
 */
NONSHARABLE_CLASS( CWmDrmClientWrapper ): public CBase,
                                          public MWmDrmClientWrapper
    {

public:

    static CWmDrmClientWrapper* NewL();

    static CWmDrmClientWrapper* NewLC();

    virtual ~CWmDrmClientWrapper();

    /**
     * Start up the WmDrmServer
     */
    virtual TInt Connect();
    
protected:

private:

    /**
    * C++ default constructor.
    */
    CWmDrmClientWrapper();

    void ConstructL();


private: // data

    /**
     * Download manager session
     */
    RWmDrmClient iClient;
    
    };

#endif // CWMDRMCLIENTWRAPPER_H