1 /* |
|
2 * Copyright (c) 2007 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: Document class for Camera* |
|
15 */ |
|
16 |
|
17 |
|
18 #ifndef CAMDOCUMENT_H |
|
19 #define CAMDOCUMENT_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <AknDoc.h> |
|
23 |
|
24 // FORWARD DECLARATIONS |
|
25 class CCamAppUi; |
|
26 class CEikApplication; |
|
27 class CCamAppController; |
|
28 |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * Document class for the Camera application |
|
34 * |
|
35 * @since 2.8 |
|
36 */ |
|
37 class CCamDocument : public CAknDocument |
|
38 { |
|
39 public: // Constructors and destructor |
|
40 |
|
41 /** |
|
42 * Two-phased constructor. |
|
43 * @since 2.8 |
|
44 * @param aApp reference to the CCamApp |
|
45 * @return pointer to the created CCamDocument |
|
46 */ |
|
47 static CCamDocument* NewL( CEikApplication& aApp ); |
|
48 |
|
49 /** |
|
50 * Two-phased constructor. |
|
51 * @since 2.8 |
|
52 * @param aApp reference to the CCamApp |
|
53 * @return pointer to the created CCamDocument |
|
54 */ |
|
55 static CCamDocument* NewLC( CEikApplication& aApp ); |
|
56 |
|
57 /** |
|
58 * Destructor. |
|
59 * @since 2.8 |
|
60 */ |
|
61 ~CCamDocument(); |
|
62 |
|
63 public: // Functions from base classes |
|
64 |
|
65 /** |
|
66 * From CAknDocument Create a CCamAppUi object and return a pointer to it. |
|
67 * @since 2.8 |
|
68 * @return A pointer to the instance of the AppUi created |
|
69 */ |
|
70 CEikAppUi* CreateAppUiL(); |
|
71 |
|
72 private: |
|
73 |
|
74 /** |
|
75 * C++ default constructor. |
|
76 * @since 2.8 |
|
77 * @param aApp reference to the CCamApp |
|
78 */ |
|
79 CCamDocument(CEikApplication& aApp); |
|
80 |
|
81 |
|
82 /** |
|
83 * Symbian 2nd phase constructor |
|
84 * @since 2.8 |
|
85 */ |
|
86 void ConstructL(); |
|
87 |
|
88 private: // Data |
|
89 // For communication between the UI and engine. |
|
90 CCamAppController* iController; |
|
91 }; |
|
92 |
|
93 #endif // CAMDOCUMENT_H |
|
94 |
|
95 // End of File |
|