1 cpbkemailaddressselect.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 * Email address selection dialog. This dialog implements the email |
|
16 * address selection logic of Phonebook. |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef __CPbkEmailAddressSelect_H__ |
|
22 #define __CPbkEmailAddressSelect_H__ |
|
23 |
|
24 // INCLUDES |
|
25 #include "CPbkAddressSelect.h" |
|
26 |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * Email address selection dialog. This dialog implements the email |
|
32 * address selection logic of Phonebook. |
|
33 */ |
|
34 class CPbkEmailAddressSelect : public CPbkAddressSelect |
|
35 { |
|
36 public: // Interface |
|
37 /** |
|
38 * Constructor. |
|
39 */ |
|
40 IMPORT_C CPbkEmailAddressSelect(); |
|
41 |
|
42 /** |
|
43 * Parameters for ExecuteLD(TParams&). |
|
44 * |
|
45 * @see CPbkAddressSelect::TBaseParams |
|
46 * @see ExecuteLD(TParams&) |
|
47 */ |
|
48 class TParams : public CPbkAddressSelect::TBaseParams |
|
49 { |
|
50 public: |
|
51 /** |
|
52 * Constructor. |
|
53 * @param aContactItem Contact where to select an email |
|
54 * address. |
|
55 */ |
|
56 IMPORT_C TParams(const CPbkContactItem& aContact); |
|
57 |
|
58 private: // Spare data |
|
59 TInt32 iSpare1; |
|
60 }; |
|
61 |
|
62 /** |
|
63 * Runs the email address selection query (if necessary). |
|
64 * |
|
65 * @param aParams Parameters and return values of the query. |
|
66 * @return ETrue if query was accepted, EFalse if canceled. |
|
67 * @see TParams |
|
68 */ |
|
69 IMPORT_C TBool ExecuteLD(TParams& aParams); |
|
70 |
|
71 /** |
|
72 * Destructor. |
|
73 */ |
|
74 IMPORT_C ~CPbkEmailAddressSelect(); |
|
75 |
|
76 private: // from CPbkAddressSelect |
|
77 IMPORT_C TBool AddressField(const TPbkContactItemField& aField) const; |
|
78 IMPORT_C void NoAddressesL(); |
|
79 IMPORT_C const TDesC& QueryTitleL(); |
|
80 IMPORT_C TInt QuerySoftkeysResource() const; |
|
81 |
|
82 private: // data members |
|
83 /// Own: Title for email address selection list |
|
84 HBufC* iQueryTitle; |
|
85 // Spare data |
|
86 TInt32 iSpare1; |
|
87 }; |
|
88 |
|
89 #endif // __CPbkEmailAddressSelect_H__ |
|
90 |
|
91 // End of File |