|
1 /* |
|
2 * Copyright (c) 2003-2009 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: Declares document for application. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef DRMRIGHTSMGRDOCUMENT_H |
|
21 #define DRMRIGHTSMGRDOCUMENT_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <akndoc.h> |
|
25 |
|
26 #include <genericparamconsumer.h> |
|
27 |
|
28 #include "drmrightsmanager.hrh" |
|
29 |
|
30 |
|
31 // FORWARD DECLARATIONS |
|
32 class CEikAppUi; |
|
33 |
|
34 // CLASS DECLARATION |
|
35 |
|
36 /** |
|
37 * CDRMRightsMgrDocument application class. |
|
38 */ |
|
39 class CDRMRightsMgrDocument : public CAiwGenericParamConsumer |
|
40 { |
|
41 private: |
|
42 /** |
|
43 * Symbian default constructor. |
|
44 * @param aApp The application instance with which the new document is |
|
45 * associated. |
|
46 */ |
|
47 CDRMRightsMgrDocument( CEikApplication& aApp ); |
|
48 |
|
49 /** |
|
50 * Symbian default constructor. |
|
51 */ |
|
52 void ConstructL(); |
|
53 |
|
54 |
|
55 public: // Constructors and destructor |
|
56 |
|
57 /** |
|
58 * Two-phased constructor. |
|
59 * @param aApp The application instance with which the new document is |
|
60 * associated. |
|
61 * @return The document |
|
62 */ |
|
63 static CDRMRightsMgrDocument* NewL( CEikApplication& aApp ); |
|
64 |
|
65 /** |
|
66 * Destructor. |
|
67 */ |
|
68 virtual ~CDRMRightsMgrDocument(); |
|
69 |
|
70 |
|
71 public: // Functions from base classes |
|
72 /** |
|
73 * This function is called when UI has to be opened embedded |
|
74 * @param aDoOpen Normally ETrue |
|
75 * @param aParams Not used |
|
76 * @param aFs Not used |
|
77 * @return Always NULL |
|
78 */ |
|
79 CFileStore* OpenFileL( TBool aDoOpen, const TDesC& aParams, RFs& aFs ); |
|
80 |
|
81 |
|
82 private: |
|
83 /** |
|
84 * From CEikDocument, create CDRMRightsMgrAppUi "App UI" object. |
|
85 * @return The AppUi object |
|
86 */ |
|
87 CEikAppUi* CreateAppUiL(); |
|
88 }; |
|
89 |
|
90 #endif |
|
91 |
|
92 // End of File |