2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * Email address selection dialog. This dialog implements the email
16 * address selection logic of Phonebook.
21 #ifndef __CPbkEmailAddressSelect_H__
22 #define __CPbkEmailAddressSelect_H__
25 #include "CPbkAddressSelect.h"
31 * Email address selection dialog. This dialog implements the email
32 * address selection logic of Phonebook.
34 class CPbkEmailAddressSelect : public CPbkAddressSelect
40 IMPORT_C CPbkEmailAddressSelect();
43 * Parameters for ExecuteLD(TParams&).
45 * @see CPbkAddressSelect::TBaseParams
46 * @see ExecuteLD(TParams&)
48 class TParams : public CPbkAddressSelect::TBaseParams
53 * @param aContactItem Contact where to select an email
56 IMPORT_C TParams(const CPbkContactItem& aContact);
58 private: // Spare data
63 * Runs the email address selection query (if necessary).
65 * @param aParams Parameters and return values of the query.
66 * @return ETrue if query was accepted, EFalse if canceled.
69 IMPORT_C TBool ExecuteLD(TParams& aParams);
74 IMPORT_C ~CPbkEmailAddressSelect();
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;
82 private: // data members
83 /// Own: Title for email address selection list
89 #endif // __CPbkEmailAddressSelect_H__