phonebookui/Phonebook2/UIControls/inc/CPbk2UIField.h
branchRCL_3
changeset 20 f4a778e096c2
parent 0 e686773b3f54
equal deleted inserted replaced
19:5b6f26637ad3 20:f4a778e096c2
       
     1 /*
       
     2 * Copyright (c) 2005-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:  Phonebook 2 contact editor dialog UI field.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CPBK2UIFIELD_H_
       
    19 #define CPBK2UIFIELD_H_
       
    20 
       
    21 // INCLUDE FILES
       
    22 #include "MPbk2UIField.h"
       
    23 
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class TResourceReader;
       
    27 
       
    28 /**
       
    29  * Phonebook 2 UI field interface.
       
    30  *
       
    31  */
       
    32 class CPbk2UIField : public CBase,
       
    33 					 public MPbk2UIField
       
    34     {
       
    35     public: // Interface
       
    36     	/**
       
    37          * Creates a new instance of this class.
       
    38          *
       
    39          * @param aReader                   Resource reader pointed to a
       
    40          *                                  PHONEBOOK2_UI_FIELD_PROPERTY
       
    41          *                                  structure.
       
    42          * @return  A new instance of this class.
       
    43          */
       
    44         static CPbk2UIField* NewL( TResourceReader& aReader );
       
    45     	
       
    46         TPbk2FieldMultiplicity Multiplicity() const;
       
    47         TInt MaxLength() const;
       
    48         TPbk2FieldEditMode EditMode() const;
       
    49         TPbk2FieldDefaultCase DefaultCase() const;
       
    50         const TPbk2IconId& IconId() const;
       
    51         TPbk2FieldCtrlTypeExt CtrlType() const;
       
    52         TUint Flags() const;
       
    53         const TDesC& DefaultLabel() const;
       
    54         TPbk2FieldOrder Order() const;
       
    55         
       
    56         ~CPbk2UIField();
       
    57     private:
       
    58     	CPbk2UIField();
       
    59     	void ConstructL( TResourceReader& aReader );
       
    60     	
       
    61     	/// Own: Assorted flags for the field type
       
    62         TUint iFlags;					        // LONG flags
       
    63         /// Own: Default label for the field
       
    64         HBufC* iDefaultLabel;                   // LTEXT defaultLabel
       
    65         /// Own: Maximum length in characters
       
    66         TInt16 iMaxLength;					    // WORD maxLength
       
    67         /// Own: Allowed multiplicity (one/many)
       
    68         TInt8 iMultiplicity;                    // BYTE multiplicity
       
    69         /// Own: Default editing mode
       
    70         TInt8 iEditMode;		                // BYTE editMode
       
    71         /// Own: Order
       
    72         TInt8 iOrder;                    		// BYTE order
       
    73         /// Own: Default character case
       
    74         TInt8 iDefaultCase;                     // BYTE defaultCase
       
    75         /// Own: Index of an icon
       
    76         TPbk2IconId iIconId;                    // STRUCT iconId
       
    77         /// Own: Editor UI control type
       
    78         TInt8 iCtrlType;                        // BYTE ctrlType        
       
    79     };
       
    80 
       
    81 #endif /*MPBK2UIFIELD_H_*/
       
    82 
       
    83 // End of File
       
    84