email/imum/Utils/Inc/MuiuDynamicSettingsArray.hrh
branchRCL_3
changeset 60 7fdbb852d323
parent 0 72b543305e3a
equal deleted inserted replaced
57:ebe688cedc25 60:7fdbb852d323
       
     1 /*
       
     2 * Copyright (c) 2006 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 *     This file contains defines for CMuiuSettingsArray.
       
    16 *
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 #ifndef __MUIUDYNSETTINGSARRAY_HRH__
       
    23 #define __MUIUDYNSETTINGSARRAY_HRH__
       
    24 
       
    25 // DATA TYPES
       
    26 enum TMuiuDynSettingsType
       
    27     {
       
    28     EMuiuDynSetUndefined = 0x00,
       
    29     EMuiuDynSetMenuArray,
       
    30     EMuiuDynSetItemMultiLine,
       
    31     EMuiuDynSetRadioButtonArray,
       
    32     EMuiuDynSetCheckBoxArray,
       
    33     EMuiuDynSetItemEditText,
       
    34     EMuiuDynSetItemEditValue,
       
    35     EMuiuDynSetItemEditScValue,
       
    36     EMuiuDynSetItemEditTime,
       
    37     EMuiuDynSetItemCheckBox,
       
    38     EMuiuDynSetItemRadioButton,
       
    39     EMuiuDynSetItemLastUnusedItem
       
    40     };
       
    41 
       
    42 // Do note that these flags are index number and not directly flags
       
    43 enum TMuiuItemFlags
       
    44     {
       
    45     // Indicates if the item is checked or not (Radiobutton/Checkbox)
       
    46     EMuiuDynItemChecked = 32,
       
    47     // Allows drawing the item but not editing
       
    48     EMuiuDynItemReadOnly,
       
    49     // Determines if item is drawn or not (for dynamic hiding)
       
    50     EMuiuDynItemHidden,
       
    51     // Determines if item is drawn or not (can be used with variation)
       
    52     EMuiuDynItemPermanentlyHidden,
       
    53     // Allows changing the state between two values without editor
       
    54     EMuiuDynItemEnterPressed,
       
    55     // Item is critical setting
       
    56     EMuiuDynItemCompulsory,
       
    57     // Setting has to be filled before exiting the settings
       
    58     EMuiuDynItemMustFill,
       
    59     // When set, the ok button is hidden from the page, when field is empty
       
    60     EMuiuDynItemForceMustFill,
       
    61     // Use text editor instead of number editor to edit value
       
    62     EMuiuDynItemTextEditorToValue,
       
    63     // Should number conversion be used with item
       
    64     EMuiuDynItemLangSpecificNumConv,
       
    65     // The text written in field should be masked with special character
       
    66     EMuiuDynItemPassword,
       
    67     // Determines, does the changing value automatically update the setting
       
    68     EMuiuDynItemUpdateOnChange,
       
    69     // Item status is approved, when the flag is set
       
    70     EMuiuDynItemValidated,
       
    71     // Flag to prevent selection of the text, when starting edit
       
    72     EMuiuDynItemNoInitialSelection,
       
    73     // Flag to move the cursor in the beginning of the line
       
    74     EMuiuDynItemEditorCursorAtBeginning,
       
    75     // Flag to inform that the page should be acquired from the client
       
    76     EMuiuDynItemAcquireCustomPage,
       
    77     // One time flag to indicate, if the view needs to be opened
       
    78     EMuiuDynItemOneTimeForceViewOpen,
       
    79     // Indicates the current initialization state of the item
       
    80     EMuiuDynItemIsInitialized,
       
    81     // Indicates that the typing language needs to be restricted to latin
       
    82     EMuiuDynItemLatinOnly,
       
    83     // Indicates that settings item can be locked
       
    84     EMuiuDynItemLockableSetting
       
    85     };
       
    86 
       
    87 // This should match with above enumeration
       
    88 #define KMuiuDynItemChecked                     0x00000001 // << 32
       
    89 #define KMuiuDynItemReadOnly                    0x00000002 // << 33
       
    90 #define KMuiuDynItemHidden                      0x00000004 // << 34
       
    91 #define KMuiuDynItemPermanentlyHidden           0x00000008 // << 35
       
    92 #define KMuiuDynItemEnterPressed                0x00000010 // << 36
       
    93 #define KMuiuDynItemCompulsory                  0x00000020 // << 37
       
    94 #define KMuiuDynItemMustFill                    0x00000040 // << 38
       
    95 #define KMuiuDynItemForceMustFill               0x00000080 // << 39
       
    96 #define KMuiuDynItemTextEditorToValue           0x00000100 // << 40
       
    97 #define KMuiuDynItemLangSpecificNumConv         0x00000200 // << 41
       
    98 #define KMuiuDynItemPassword                    0x00000400 // << 42
       
    99 #define KMuiuDynItemUpdateOnChange              0x00000800 // << 43
       
   100 #define KMuiuDynItemValidated                   0x00001000 // << 44
       
   101 #define KMuiuDynItemNoInitialSelection          0x00002000 // << 45
       
   102 #define KMuiuDynItemEditorCursorAtBeginning     0x00004000 // << 46
       
   103 #define KMuiuDynItemAcquireCustomPage           0x00008000 // << 47
       
   104 #define KMuiuDynItemOneTimeForceViewOpen        0x00010000 // << 48
       
   105 #define KMuiuDynItemIsInitialized               0x00020000 // << 49
       
   106 #define KMuiuDynItemLatinOnly                   0x00040000 // << 50
       
   107 #define KMuiuDynItemLockableSetting             0x00080000 // << 51
       
   108 
       
   109 #define KMuiuDynSettingsTextLengthDefault 20
       
   110 #define KMuiuDynMaxSettingsTextWidth 12
       
   111 #define KMuiuDynMaxSettingsLongTextLength 1600
       
   112 #define KMuiuDynMaxSettingsTextLength 100
       
   113 #define KMuiuDynMaxSettingsValueLength 3
       
   114 #define KMuiuDynMaxSettingsTimeLength 4
       
   115 #define KMuiuDynArrayGranularity 5
       
   116 #define KMuiuDynMaxPasswordLength 50
       
   117 
       
   118 
       
   119 // FUNCTION PROTOTYPES
       
   120 // FORWARD DECLARATIONS
       
   121 // CLASS DECLARATION
       
   122 
       
   123 #endif //__MUIUDYNSETTINGSARRAY_HRH__
       
   124 
       
   125 // End of file