wmdrm/camese/wmdrmdlaapp/inc/wmdrmdlaappservicesession.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 15:29:38 +0300
branchRCL_3
changeset 71 1221b68b8a5f
parent 18 8a03a285ab14
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
* Copyright (c) 2008 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:  Interface class for WMDRM DLA App Service Session
*
*/


#ifndef C_WMDRMDLAAPPSERVICESESSION_H
#define C_WMDRMDLAAPPSERVICESESSION_H

// INCLUDES
#include <AknServerApp.h>
#include "wmdrmdlaappui.h"
#include "wmdrmdlabrowserview.h"

/**
* WMDRM DLA Application.
*/
class CWmDrmDlaAppServiceSession : public CAknAppServiceBase,
                                   public MBrowserViewLicenseReceivedCallback
    {

    public:

        CWmDrmDlaAppServiceSession();
        virtual ~CWmDrmDlaAppServiceSession();

    public: // from MBrowserViewLicenseReceivedCallback

        /**
         * Called when license is received
         */
        void LicenseReceived();

    protected: // from CSession2

        /**
         * Override of CSession2::ServiceL().
         * If further overridden, this function must be base-called.
         * @param aMessage The client message
         */
        void ServiceL( const RMessage2& aMessage );

    private:

        void SetIapL( const RMessage2& aMessage );
        void PostL( const RMessage2& aMessage );
        void LicenseResponseSizeL( const RMessage2& aMessage );
        void LicenseResponseL( const RMessage2& aMessage );
        void CompleteMessage( const RMessage2& aMessage, TInt aError );
        CWmDrmDlaBrowserView* BrowserView();

    private: //data

        CActiveSchedulerWait* iWait;

    };

#endif // C_WMDRMDLAAPPSERVICESESSION_H