phonebookui/Phonebook2/UIControls/inc/CPbk2NameOrderSettingItem.h
branchRCL_3
changeset 20 f4a778e096c2
parent 0 e686773b3f54
equal deleted inserted replaced
19:5b6f26637ad3 20:f4a778e096c2
       
     1 /*
       
     2 * Copyright (c) 2002-2007 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 *     Name Order settings item for Phonebook 2.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CPBK2NAMEORDERSETTINGITEM_H
       
    21 #define CPBK2NAMEORDERSETTINGITEM_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <aknsettingitemlist.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CPbk2SortOrderManager;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32  * Name Order settings item.
       
    33  */
       
    34 NONSHARABLE_CLASS(CPbk2NameOrderSettingItem) : 
       
    35 		public CAknEnumeratedTextPopupSettingItem
       
    36     {
       
    37     public:  // interface
       
    38 		/**
       
    39          * Constructor.
       
    40 		 * @see CAknEnumeratedTextPopupSettingItem
       
    41          */
       
    42         CPbk2NameOrderSettingItem(
       
    43                 CPbk2SortOrderManager& aSortOrderManager, 
       
    44                 TInt aResourceId, 
       
    45                 TInt& aValue);
       
    46 
       
    47         /**
       
    48 		 * Returns the value of the setting.
       
    49 		 *
       
    50 		 * @return selected value
       
    51 		 */
       
    52 		 TInt Value();
       
    53 		 
       
    54     public: // From CAknEnumeratedTextPopupSettingItem
       
    55         void CompleteConstructionL();
       
    56         void StoreL();
       
    57     
       
    58     private: // implementation
       
    59         TPtrC Separator();
       
    60         
       
    61         
       
    62     private: // Data
       
    63         /// Ref: Sort order manager
       
    64         CPbk2SortOrderManager& iSortOrderManager;
       
    65     };
       
    66 
       
    67 #endif // CPBK2NAMEORDERSETTINGITEM_H
       
    68 
       
    69 // End of File