|
1 /* |
|
2 * Copyright (c) 2002 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: It is dialer class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPHCLTDIALERDLG_H |
|
20 #define CPHCLTDIALERDLG_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <eikdialg.h> |
|
24 #include "MPhCltExtPhoneObserver.h" |
|
25 #include "CPhCltExtPhoneBase.h" |
|
26 #include <CPhCltExtPhoneDialData.h> |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CPhCltExtPhoneBase; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * It is dialer class. |
|
35 * |
|
36 * @lib phoneclient.lib |
|
37 * @since 1.0 |
|
38 */ |
|
39 NONSHARABLE_CLASS( CPhCltDialerDlg ) |
|
40 : public CEikDialog, |
|
41 private MPhCltExtPhoneObserver |
|
42 { |
|
43 public: // Constructors and destructor |
|
44 |
|
45 /** |
|
46 * Destructor. |
|
47 */ |
|
48 ~CPhCltDialerDlg(); |
|
49 |
|
50 |
|
51 public: // New functions |
|
52 |
|
53 /** |
|
54 * Dial parameters. |
|
55 * |
|
56 * @returns Returns dial data. |
|
57 */ |
|
58 CPhCltExtPhoneDialData& DialData(); |
|
59 |
|
60 /** |
|
61 * Dial using given information. |
|
62 */ |
|
63 void ExecuteDialLD(); |
|
64 |
|
65 |
|
66 private: |
|
67 |
|
68 /** |
|
69 * From CEikDialog, called before layout. |
|
70 */ |
|
71 void PreLayoutDynInitL(); |
|
72 |
|
73 /** |
|
74 * From CEikDialog, called after layout. |
|
75 */ |
|
76 void PostLayoutDynInitL(); |
|
77 |
|
78 /** |
|
79 * Check if it's ok to exit. |
|
80 */ |
|
81 TBool OkToExitL( TInt aButtonId ); |
|
82 |
|
83 /** |
|
84 * From CEikDialog, draw. |
|
85 */ |
|
86 void Draw( const TRect& aRect ) const; |
|
87 |
|
88 /** |
|
89 * From MPhCltExtPhoneObserver, handles status of dial. |
|
90 * |
|
91 * @param aStatus status. |
|
92 */ |
|
93 void HandleDialL( const TInt aStatus ); |
|
94 |
|
95 |
|
96 private: // Data |
|
97 |
|
98 // Pointer to error. |
|
99 TInt* iError; |
|
100 |
|
101 // Reference to dial data. |
|
102 CPhCltExtPhoneDialData* iData; |
|
103 |
|
104 // Instance of phone client. |
|
105 CPhCltExtPhoneBase* iPhoneClient; |
|
106 |
|
107 }; |
|
108 |
|
109 #endif // CPHCLTDIALERDLG_H |
|
110 |
|
111 // End of File |