epoc32/include/app/cpbksmsaddressselect.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
     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 "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.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