1 cpbkphonenumberselect.h |
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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Phonebook call number selection dialog. This dialog implements the call |
|
16 * number selection logic of Phonebook. |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef __CPbkPhoneNumberSelect_H__ |
|
22 #define __CPbkPhoneNumberSelect_H__ |
|
23 |
|
24 // INCLUDES |
|
25 #include "CPbkPhoneNumberSelectBase.h" |
|
26 |
|
27 // CLASS DECLARATION |
|
28 |
|
29 /** |
|
30 * Phonebook call number selection dialog. This dialog implements the call |
|
31 * number selection logic of Phonebook. |
|
32 */ |
|
33 class CPbkPhoneNumberSelect : public CPbkPhoneNumberSelectBase |
|
34 { |
|
35 public: // Interface |
|
36 /** |
|
37 * Constructor. |
|
38 */ |
|
39 IMPORT_C CPbkPhoneNumberSelect(); |
|
40 |
|
41 /** |
|
42 * Parameters for ExecuteLD(TParams&). |
|
43 * |
|
44 * @see CPbkAddressSelect::TBaseParams |
|
45 * @see ExecuteLD(TParams&) |
|
46 */ |
|
47 class TParams : public CPbkAddressSelect::TBaseParams |
|
48 { |
|
49 public: |
|
50 /** |
|
51 * Constructor. |
|
52 * @param aContact Contact from which to select a phone number. |
|
53 */ |
|
54 IMPORT_C TParams(const CPbkContactItem& aContact); |
|
55 |
|
56 private: // data |
|
57 /// Own: spare data |
|
58 TInt32 iSpare1; |
|
59 }; |
|
60 |
|
61 /** |
|
62 * Runs the phone number selection query (if necessary). |
|
63 * |
|
64 * @param aParams Parameters and return values of the query. |
|
65 * @return ETrue if query was accepted, EFalse if canceled. |
|
66 * @see TParams |
|
67 */ |
|
68 IMPORT_C TBool ExecuteLD(TParams& aParams); |
|
69 |
|
70 /** |
|
71 * Destructor. |
|
72 */ |
|
73 IMPORT_C ~CPbkPhoneNumberSelect(); |
|
74 |
|
75 private: // from CPbkAddressSelect |
|
76 IMPORT_C const TDesC& QueryTitleL(); |
|
77 IMPORT_C TInt QuerySoftkeysResource() const; |
|
78 IMPORT_C TKeyResponse PbkControlKeyEventL |
|
79 (const TKeyEvent& aKeyEvent,TEventCode aType); |
|
80 |
|
81 private: // data members |
|
82 /// Own: Title for phonenumber selection list |
|
83 HBufC* iQueryTitle; |
|
84 // Spare data |
|
85 TInt32 iSpare1; |
|
86 }; |
|
87 |
|
88 #endif // __CPbkPhoneNumberSelect_H__ |
|
89 |
|
90 // End of File |