epoc32/include/app/cpbksmsaddressselect.h
branchSymbian2
changeset 2 2fe1408b6811
parent 1 666f914201fb
child 4 837f303aceeb
equal deleted inserted replaced
1:666f914201fb 2:2fe1408b6811
     1 cpbksmsaddressselect.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 SMS address selection dialog.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __CPbkSmsAddressSelect_H__
       
    21 #define __CPbkSmsAddressSelect_H__
       
    22 
       
    23 //  INCLUDES
       
    24 #include "CPbkPhoneNumberSelectBase.h"
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29  * Phonebook SMS address selection dialog.
       
    30  */
       
    31 class CPbkSmsAddressSelect : public CPbkPhoneNumberSelectBase
       
    32     {
       
    33     public:  // Interface
       
    34         /**
       
    35          * Constructor.
       
    36          */
       
    37         IMPORT_C CPbkSmsAddressSelect();
       
    38 
       
    39         /**
       
    40          * Parameters for ExecuteLD(TParams&).
       
    41          *
       
    42          * @see CPbkAddressSelect::TBaseParams
       
    43          * @see ExecuteLD(TParams&)
       
    44          */
       
    45         class TParams : public CPbkAddressSelect::TBaseParams
       
    46             {
       
    47             public:
       
    48                 /**
       
    49                  * Constructor.
       
    50                  * @param aContact  Contact from which to select a phone number.
       
    51                  */
       
    52                 IMPORT_C TParams(const CPbkContactItem& aContact);
       
    53             };
       
    54 
       
    55         /**
       
    56          * Runs the SMS address selection query (if necessary).
       
    57          *
       
    58          * @param aParams   Parameters and return values of the query.
       
    59          * @return  ETrue if query was accepted, EFalse if canceled.
       
    60          * @see TParams
       
    61          */
       
    62         inline TBool ExecuteLD(TParams& aParams);
       
    63 
       
    64         /**
       
    65          * Destructor.
       
    66          */
       
    67         IMPORT_C ~CPbkSmsAddressSelect();
       
    68 
       
    69     private:  // from CPbkAddressSelect
       
    70         IMPORT_C const TDesC& QueryTitleL();
       
    71         IMPORT_C TInt QuerySoftkeysResource() const;
       
    72 
       
    73     private: // Data
       
    74         /// Own: Title for phonenumber selection list
       
    75         HBufC* iQueryTitle;
       
    76     }; 
       
    77 
       
    78 
       
    79 // INLINE FUNCTIONS
       
    80 inline TBool CPbkSmsAddressSelect::ExecuteLD(TParams& aParams)
       
    81     {
       
    82     return CPbkAddressSelect::ExecuteLD(aParams);
       
    83     }
       
    84 
       
    85 #endif // __CPbkSmsAddressSelect_H__
       
    86             
       
    87 // End of File