epoc32/include/app/cpbkemailaddressselect.h
branchSymbian2
changeset 2 2fe1408b6811
parent 1 666f914201fb
child 4 837f303aceeb
     1.1 --- a/epoc32/include/app/cpbkemailaddressselect.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/app/cpbkemailaddressselect.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,91 @@
     1.4 -cpbkemailaddressselect.h
     1.5 +/*
     1.6 +* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
     1.7 +* All rights reserved.
     1.8 +* This component and the accompanying materials are made available
     1.9 +* 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
    1.10 +* which accompanies this distribution, and is available
    1.11 +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.12 +*
    1.13 +* Initial Contributors:
    1.14 +* Nokia Corporation - initial contribution.
    1.15 +*
    1.16 +* Contributors:
    1.17 +*
    1.18 +* Description: 
    1.19 +*       Email address selection dialog. This dialog implements the email
    1.20 +*       address selection logic of Phonebook.
    1.21 +*
    1.22 +*/
    1.23 +
    1.24 +
    1.25 +#ifndef __CPbkEmailAddressSelect_H__
    1.26 +#define __CPbkEmailAddressSelect_H__
    1.27 +
    1.28 +//  INCLUDES
    1.29 +#include    "CPbkAddressSelect.h"
    1.30 +
    1.31 +
    1.32 +// CLASS DECLARATION
    1.33 +
    1.34 +/**
    1.35 + * Email address selection dialog. This dialog implements the email
    1.36 + * address selection logic of Phonebook.
    1.37 + */
    1.38 +class CPbkEmailAddressSelect : public CPbkAddressSelect
    1.39 +    {
    1.40 +    public:  // Interface
    1.41 +        /**
    1.42 +         * Constructor.
    1.43 +         */
    1.44 +        IMPORT_C CPbkEmailAddressSelect();
    1.45 +
    1.46 +        /**
    1.47 +         * Parameters for ExecuteLD(TParams&).
    1.48 +         *
    1.49 +         * @see CPbkAddressSelect::TBaseParams
    1.50 +         * @see ExecuteLD(TParams&)
    1.51 +         */
    1.52 +        class TParams : public CPbkAddressSelect::TBaseParams
    1.53 +            {
    1.54 +            public:
    1.55 +                /**
    1.56 +                 * Constructor.
    1.57 +                 * @param aContactItem  Contact where to select an email 
    1.58 +                 *                      address.
    1.59 +                 */
    1.60 +                IMPORT_C TParams(const CPbkContactItem& aContact);
    1.61 +
    1.62 +            private:  // Spare data
    1.63 +                TInt32 iSpare1;
    1.64 +            };
    1.65 +
    1.66 +        /**
    1.67 +         * Runs the email address selection query (if necessary).
    1.68 +         *
    1.69 +         * @param aParams   Parameters and return values of the query.
    1.70 +         * @return  ETrue if query was accepted, EFalse if canceled.
    1.71 +         * @see TParams
    1.72 +         */
    1.73 +        IMPORT_C TBool ExecuteLD(TParams& aParams);
    1.74 +
    1.75 +        /**
    1.76 +         * Destructor.
    1.77 +         */
    1.78 +        IMPORT_C ~CPbkEmailAddressSelect();
    1.79 +
    1.80 +    private:  // from CPbkAddressSelect
    1.81 +        IMPORT_C TBool AddressField(const TPbkContactItemField& aField) const;
    1.82 +        IMPORT_C void NoAddressesL();
    1.83 +        IMPORT_C const TDesC& QueryTitleL();
    1.84 +        IMPORT_C TInt QuerySoftkeysResource() const;
    1.85 +
    1.86 +    private: // data members
    1.87 +        /// Own: Title for email address selection list
    1.88 +        HBufC* iQueryTitle;
    1.89 +        // Spare data
    1.90 +        TInt32 iSpare1;
    1.91 +    }; 
    1.92 +
    1.93 +#endif // __CPbkEmailAddressSelect_H__
    1.94 +            
    1.95 +// End of File