inc/wmdrmclientwrapper.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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CWMDRMCLIENTWRAPPER_H
       
    20 #define CWMDRMCLIENTWRAPPER_H
       
    21 
       
    22 #include "wmdrmclient.h"
       
    23 
       
    24 /**
       
    25  * Environment gate function
       
    26  *
       
    27  * @since S60 3.2
       
    28  * @return pointer to DMgr handler
       
    29  */
       
    30 IMPORT_C TAny* GateFunctionWmDrmClientWrapper();
       
    31 
       
    32 class MWmDrmClientWrapper
       
    33     {
       
    34 public:
       
    35     virtual TInt Connect() = 0;
       
    36     };
       
    37 
       
    38 
       
    39 
       
    40 /**
       
    41  *  Class for connecting to the WmDrmServer
       
    42  *
       
    43  *  @lib WmDrmClientWrapper
       
    44  *  @since S60 3.2
       
    45  */
       
    46 NONSHARABLE_CLASS( CWmDrmClientWrapper ): public CBase,
       
    47                                           public MWmDrmClientWrapper
       
    48     {
       
    49 
       
    50 public:
       
    51 
       
    52     static CWmDrmClientWrapper* NewL();
       
    53 
       
    54     static CWmDrmClientWrapper* NewLC();
       
    55 
       
    56     virtual ~CWmDrmClientWrapper();
       
    57 
       
    58     /**
       
    59      * Start up the WmDrmServer
       
    60      */
       
    61     virtual TInt Connect();
       
    62     
       
    63 protected:
       
    64 
       
    65 private:
       
    66 
       
    67     /**
       
    68     * C++ default constructor.
       
    69     */
       
    70     CWmDrmClientWrapper();
       
    71 
       
    72     void ConstructL();
       
    73 
       
    74 
       
    75 private: // data
       
    76 
       
    77     /**
       
    78      * Download manager session
       
    79      */
       
    80     RWmDrmClient iClient;
       
    81     
       
    82     };
       
    83 
       
    84 #endif // CWMDRMCLIENTWRAPPER_H