commondrm/drmrightsmanagerui/inc/DRMRightsMgrDocument.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 17 Dec 2009 08:52:27 +0200
changeset 0 95b198f216e5
child 18 8a03a285ab14
permissions -rw-r--r--
Revision: 200949 Kit: 200951

/*
* Copyright (c) 2003-2009 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:  Declares document for application.
*
*/



#ifndef DRMRIGHTSMGRDOCUMENT_H
#define DRMRIGHTSMGRDOCUMENT_H

// INCLUDES
#include <akndoc.h>

#include <genericparamconsumer.h>

#include "drmrightsmanager.hrh"


// FORWARD DECLARATIONS
class CEikAppUi;

// CLASS DECLARATION

/**
*  CDRMRightsMgrDocument application class.
*/
class CDRMRightsMgrDocument : public CAiwGenericParamConsumer
    {
    private:
        /**
        * Symbian default constructor.
        * @param aApp The application instance with which the new document is
        * associated.
        */
        CDRMRightsMgrDocument( CEikApplication& aApp );

        /**
        * Symbian default constructor.
        */
        void ConstructL();


    public: // Constructors and destructor

        /**
        * Two-phased constructor.
        * @param aApp   The application instance with which the new document is
        *               associated.
        * @return       The document
        */
        static CDRMRightsMgrDocument* NewL( CEikApplication& aApp );

        /**
        * Destructor.
        */
        virtual ~CDRMRightsMgrDocument();


    public:     // Functions from base classes
        /**
        * This function is called when UI has to be opened embedded
        * @param aDoOpen    Normally ETrue
        * @param aParams    Not used
        * @param aFs        Not used
        * @return           Always NULL
        */
        CFileStore* OpenFileL( TBool aDoOpen, const TDesC& aParams, RFs& aFs );


    private:
        /**
        * From CEikDocument, create CDRMRightsMgrAppUi "App UI" object.
        * @return The AppUi object
        */
        CEikAppUi* CreateAppUiL();
    };

#endif

// End of File