|
1 /* |
|
2 * Copyright (c) 2002-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: A dialog for asking fixed dialling phone number. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CPSU2NUMBERQUERYDLG_H |
|
21 #define CPSU2NUMBERQUERYDLG_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <AknQueryDialog.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * A dialog for asking phone number. |
|
32 * |
|
33 */ |
|
34 class CPsu2NumberQueryDlg : public CAknTextQueryDialog |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 |
|
38 /** |
|
39 * Two-phased constructor. |
|
40 * @param aSourceNumber A source number |
|
41 * @param aNumberBuffer an enough big buffer for number |
|
42 * @return a new CPsu2NumberQueryDlg instance. |
|
43 */ |
|
44 static CPsu2NumberQueryDlg* NewL( const TDesC& aSourceNumber, |
|
45 TDes& aNumberBuffer ); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 virtual ~CPsu2NumberQueryDlg(); |
|
51 |
|
52 TBool ExecuteLD(); |
|
53 |
|
54 protected: // Functions from base classes |
|
55 |
|
56 /** |
|
57 * From CAknTextQueryDialog |
|
58 */ |
|
59 void UpdateLeftSoftKeyL(); |
|
60 |
|
61 /** |
|
62 * From CAknTextQueryDialog |
|
63 */ |
|
64 TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, |
|
65 TEventCode aType ); |
|
66 |
|
67 |
|
68 private: |
|
69 |
|
70 /** |
|
71 * C++ default constructor. |
|
72 */ |
|
73 CPsu2NumberQueryDlg( TDes& aNumberBuffer ); |
|
74 |
|
75 /** |
|
76 * By default Symbian 2nd phase constructor is private. |
|
77 */ |
|
78 void ConstructL( const TDesC& aSourceNumber ); |
|
79 |
|
80 void MakeMiddleSoftkeyVisibleL( TBool aVisible ); |
|
81 |
|
82 private: // Data |
|
83 // ETrue if number is ok. |
|
84 TBool iNumberAccepted; |
|
85 }; |
|
86 |
|
87 #endif // CPSU2NUMBERQUERYDLG_H |
|
88 |
|
89 // End of File |