wmdrm/camese/wmdrmdlaapp/inc/wmdrmdlaappservicesession.h
changeset 0 95b198f216e5
child 12 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 Service Session
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_WMDRMDLAAPPSERVICESESSION_H
       
    20 #define C_WMDRMDLAAPPSERVICESESSION_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <aknserverapp.h>
       
    24 #include "wmdrmdlaappui.h"
       
    25 #include "wmdrmdlabrowserview.h"
       
    26 
       
    27 /**
       
    28 * WMDRM DLA Application.
       
    29 */
       
    30 class CWmDrmDlaAppServiceSession : public CAknAppServiceBase, 
       
    31                                    public MBrowserViewLicenseReceivedCallback
       
    32     {
       
    33     
       
    34     public:
       
    35     
       
    36         CWmDrmDlaAppServiceSession();
       
    37         virtual ~CWmDrmDlaAppServiceSession();
       
    38     
       
    39     public: // from MBrowserViewLicenseReceivedCallback
       
    40         
       
    41         /**
       
    42          * Called when license is received
       
    43          */
       
    44         void LicenseReceived();
       
    45     
       
    46     protected: // from CSession2
       
    47 
       
    48         /**
       
    49          * Override of CSession2::ServiceL().
       
    50          * If further overridden, this function must be base-called.
       
    51          * @param aMessage The client message
       
    52          */
       
    53         void ServiceL( const RMessage2& aMessage );
       
    54 
       
    55     private:
       
    56         
       
    57         void SetIapL( const RMessage2& aMessage );
       
    58         void PostL( const RMessage2& aMessage );
       
    59         void LicenseResponseSizeL( const RMessage2& aMessage );
       
    60         void LicenseResponseL( const RMessage2& aMessage );
       
    61         void CompleteMessage( const RMessage2& aMessage, TInt aError );
       
    62         CWmDrmDlaBrowserView* BrowserView();
       
    63     
       
    64     private: //data
       
    65         
       
    66         CActiveSchedulerWait* iWait;
       
    67         
       
    68     };
       
    69 
       
    70 #endif // C_WMDRMDLAAPPSERVICESESSION_H