1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. |
|
3 * |
|
4 * This library is free software; you can redistribute it and/or |
|
5 * modify it under the terms of the GNU Lesser General Public |
|
6 * License as published by the Free Software Foundation; either |
|
7 * version 2 of the License, or (at your option) any later version. |
|
8 * |
|
9 * This library is distributed in the hope that it will be useful, |
|
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
12 * Lesser General Public License for more details. |
|
13 * |
|
14 * You should have received a copy of the GNU Lesser General Public |
|
15 * License along with this library; if not, write to the |
|
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
|
17 * Boston, MA 02111-1307, USA. |
|
18 * |
|
19 * Description: |
|
20 * |
|
21 */ |
|
22 /* |
|
23 * ============================================================================== |
|
24 * Name : gstplayerdocument.h |
|
25 * Part of : gstplayer |
|
26 * Interface : |
|
27 * Description : |
|
28 * Version : |
|
29 * |
|
30 |
|
31 * ============================================================================== |
|
32 */ |
|
33 |
|
34 #ifndef __GSTPLAYERDOCUMENT_H__ |
|
35 #define __GSTPLAYERDOCUMENT_H__ |
|
36 |
|
37 // INCLUDES |
|
38 #include <AknDoc.h> |
|
39 |
|
40 // FORWARD DECLARATIONS |
|
41 class CGSTPlayerAppUi; |
|
42 class CEikApplication; |
|
43 |
|
44 |
|
45 // CLASS DECLARATION |
|
46 |
|
47 /** |
|
48 * CGSTPlayerDocument application class. |
|
49 * An instance of class CGSTPlayerDocument is the Document part of the |
|
50 * AVKON application framework for the GSTPlayer example application. |
|
51 */ |
|
52 class CGSTPlayerDocument : public CAknDocument |
|
53 { |
|
54 public: // Constructors and destructor |
|
55 |
|
56 /** |
|
57 * NewL. |
|
58 * Two-phased constructor. |
|
59 * Construct a CGSTPlayerDocument for the AVKON application aApp |
|
60 * using two phase construction, and return a pointer |
|
61 * to the created object. |
|
62 * @param aApp Application creating this document. |
|
63 * @return A pointer to the created instance of CGSTPlayerDocument. |
|
64 */ |
|
65 static CGSTPlayerDocument* NewL( CEikApplication& aApp ); |
|
66 |
|
67 /** |
|
68 * NewLC. |
|
69 * Two-phased constructor. |
|
70 * Construct a CGSTPlayerDocument for the AVKON application aApp |
|
71 * using two phase construction, and return a pointer |
|
72 * to the created object. |
|
73 * @param aApp Application creating this document. |
|
74 * @return A pointer to the created instance of CGSTPlayerDocument. |
|
75 */ |
|
76 static CGSTPlayerDocument* NewLC( CEikApplication& aApp ); |
|
77 |
|
78 /** |
|
79 * ~CGSTPlayerDocument |
|
80 * Virtual Destructor. |
|
81 */ |
|
82 virtual ~CGSTPlayerDocument(); |
|
83 |
|
84 public: // Functions from base classes |
|
85 |
|
86 /** |
|
87 * CreateAppUiL |
|
88 * From CEikDocument, CreateAppUiL. |
|
89 * Create a CGSTPlayerAppUi object and return a pointer to it. |
|
90 * The object returned is owned by the Uikon framework. |
|
91 * @return Pointer to created instance of AppUi. |
|
92 */ |
|
93 CEikAppUi* CreateAppUiL(); |
|
94 |
|
95 private: // Constructors |
|
96 |
|
97 /** |
|
98 * ConstructL |
|
99 * 2nd phase constructor. |
|
100 */ |
|
101 void ConstructL(); |
|
102 |
|
103 /** |
|
104 * CGSTPlayerDocument. |
|
105 * C++ default constructor. |
|
106 * @param aApp Application creating this document. |
|
107 */ |
|
108 CGSTPlayerDocument( CEikApplication& aApp ); |
|
109 |
|
110 }; |
|
111 |
|
112 #endif // __GSTPLAYERDOCUMENT_H__ |
|
113 |
|
114 // End of File |
|
115 |
|