|
1 /* |
|
2 * Copyright (c) 2008-2008 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: Application document class for Analog Dialer example application, which |
|
15 * implements rotating dial pad. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef ANALOGDIALER_DOCUMENT_H |
|
22 #define ANALOGDIALER_DOCUMENT_H |
|
23 |
|
24 #include <akndoc.h> |
|
25 |
|
26 // Forward references |
|
27 class CAlfExAnalogDialerAppUi; |
|
28 class CEikApplication; |
|
29 |
|
30 /** |
|
31 * Document class for Analog Dialer |
|
32 * |
|
33 * @since S60 5.0 |
|
34 */ |
|
35 class CAlfExAnalogDialerDocument : public CAknDocument |
|
36 { |
|
37 public: |
|
38 |
|
39 |
|
40 /* Constructors and destructor. */ |
|
41 |
|
42 /** |
|
43 * First phase constructor of CAlfExAnalogDialerDocument. |
|
44 * Construct a CAlfExAnalogDialerDocument for the AVKON application aApp |
|
45 * using two phase construction, and return a pointer to the created object |
|
46 * |
|
47 * @since S60 5.0 |
|
48 * @param aApp application creating this document |
|
49 * @result a pointer to the created instance of CAlfExAnalogDialerDocument |
|
50 */ |
|
51 static CAlfExAnalogDialerDocument* NewL(CEikApplication& aApp); |
|
52 |
|
53 /** |
|
54 * First phase constructor of CAlfExAnalogDialerDocument. |
|
55 * Construct a CAlfExAnalogDialerDocument for the AVKON application aApp |
|
56 * using two phase construction, and return a pointer to the created object |
|
57 * |
|
58 * @since S60 5.0 |
|
59 * @param aApp application creating this document |
|
60 * @result a pointer to the created instance of CAlfExAnalogDialerDocument |
|
61 */ |
|
62 static CAlfExAnalogDialerDocument* NewLC(CEikApplication& aApp); |
|
63 |
|
64 /** |
|
65 * Destructor of CAlfExAnalogDialerDocument |
|
66 * |
|
67 * @since S60 5.0 |
|
68 */ |
|
69 ~CAlfExAnalogDialerDocument(); |
|
70 |
|
71 |
|
72 /* Methods */ |
|
73 |
|
74 // from base class CAknDocument |
|
75 |
|
76 /** |
|
77 * From CAknDocument |
|
78 * Create a CAlfExAnalogDialerAppUi object and return a pointer to it |
|
79 * |
|
80 * @since S60 5.0 |
|
81 * @result a pointer to the created instance of the AppUi created |
|
82 */ |
|
83 CEikAppUi* CreateAppUiL(); |
|
84 |
|
85 private: |
|
86 |
|
87 |
|
88 /* Constructors and destructor. */ |
|
89 |
|
90 /** |
|
91 * Constructor of CAlfExAnalogDialerDocument. |
|
92 * Private as this object must be constructed via NewL() or NewLC() |
|
93 * |
|
94 * @since S60 5.0 |
|
95 */ |
|
96 CAlfExAnalogDialerDocument(CEikApplication& aApp); |
|
97 |
|
98 /** |
|
99 * Second phase constructor of CAlfExAnalogDialerDocument. |
|
100 * Private as this object must be constructed via NewL() or NewLC() |
|
101 * |
|
102 * @since S60 5.0 |
|
103 */ |
|
104 void ConstructL(); |
|
105 |
|
106 private: |
|
107 /** |
|
108 * Not yet member data |
|
109 */ |
|
110 |
|
111 }; |
|
112 |
|
113 |
|
114 #endif // ANALOGDIALER_DOCUMENT_H |