wmdrm/camese/wmdrmdlautils/inc/wmdrmdlaappclient.h
changeset 0 95b198f216e5
child 18 8a03a285ab14
equal deleted inserted replaced
-1:000000000000 0:95b198f216e5
       
     1 /*
       
     2 * Copyright (c) 2008 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:  Interface class for WMDRM DLA App Client
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef R_WMDRMDLAAPPCLIENT_H
       
    20 #define R_WMDRMDLAAPPCLIENT_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <aknserverapp.h>
       
    24 
       
    25 /**
       
    26  *  WMDRM DLA App Client Interface
       
    27  *
       
    28  *  @lib wmdrmdlautils.lib
       
    29  *  @since S60 v9.1
       
    30  */
       
    31 NONSHARABLE_CLASS( RWmDrmDlaAppClient ) : public RAknAppServiceBase
       
    32     {
       
    33 
       
    34     public:
       
    35 
       
    36         virtual ~RWmDrmDlaAppClient();
       
    37         
       
    38         /**
       
    39          * Sets IAP to browser view
       
    40          *
       
    41          * @param aIap IAP ID to be used in browser view
       
    42          * @return Error code
       
    43          */
       
    44         TInt SetIAP( TInt aIap );
       
    45         
       
    46         /**
       
    47          * Makes a POST request to browser view
       
    48          *
       
    49          * @param aPostUrl URL, where POST request is done
       
    50          * @param aPostContentType Content type of the POST operation
       
    51          * @param aPostData POST data
       
    52          * @param aPostContentBoundary Boundary of the POST content
       
    53          * @return Error code
       
    54          */
       
    55         TInt Post( const TDesC& aPostUrl,
       
    56                    const TDesC8& aPostContentType,
       
    57                    const TDesC8& aPostData,
       
    58                    const TDesC8& aPostContentBoundary );
       
    59         
       
    60         /**
       
    61          * Gets the license response from the browser view
       
    62          *
       
    63          * @param aLicenseResponse Pointer, where license response is saved.
       
    64          *                         Must be NULL.
       
    65          * @return Error code
       
    66          */
       
    67         TInt LicenseResponse( HBufC8*& aLicenseResponse );
       
    68         
       
    69     private: // from RApaAppServiceBase
       
    70     
       
    71         TUid ServiceUid() const;
       
    72 
       
    73     private: // data
       
    74 
       
    75     };
       
    76 
       
    77 #endif // R_WMDRMDLAAPPCLIENT_H