phonebookui/Phonebook/View/src/CPbkSmsAddressSelect.cpp
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     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 *       Provides methods for generic phonebook address selection dialog.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 
       
    22 #include    "CPbkSmsAddressSelect.h"
       
    23 #include    <avkon.rsg> // AVKON softkey resources
       
    24 #include    <StringLoader.h>        // StringLoader
       
    25 #include    <CPbkContactItem.h>
       
    26 
       
    27 
       
    28 // ================= MEMBER FUNCTIONS =======================
       
    29 
       
    30 EXPORT_C CPbkSmsAddressSelect::CPbkSmsAddressSelect()
       
    31     {
       
    32     }
       
    33 
       
    34 EXPORT_C CPbkSmsAddressSelect::TParams::TParams
       
    35         (const CPbkContactItem& aContact) :
       
    36     TBaseParams(aContact, aContact.DefaultSmsField())
       
    37     {
       
    38     }
       
    39 
       
    40 EXPORT_C CPbkSmsAddressSelect::~CPbkSmsAddressSelect()
       
    41 	{
       
    42     delete iQueryTitle;
       
    43 	}
       
    44 
       
    45 EXPORT_C const TDesC& CPbkSmsAddressSelect::QueryTitleL()
       
    46     {
       
    47     if (!iQueryTitle)
       
    48         {
       
    49         iQueryTitle = ContactItem().GetContactTitleL();
       
    50         }
       
    51     return *iQueryTitle;
       
    52     }
       
    53 
       
    54 EXPORT_C TInt CPbkSmsAddressSelect::QuerySoftkeysResource() const
       
    55     {
       
    56     return R_AVKON_SOFTKEYS_SELECT_CANCEL__SELECT;
       
    57     }
       
    58 
       
    59 
       
    60 //  End of File