commondrm/drmrightsmanagerui/inc/DRMRightsMgrDocument.h
changeset 0 95b198f216e5
child 18 8a03a285ab14
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/commondrm/drmrightsmanagerui/inc/DRMRightsMgrDocument.h	Thu Dec 17 08:52:27 2009 +0200
@@ -0,0 +1,92 @@
+/*
+* 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