ipsservices/ipssossettings/inc/ipssetutilsconsts.hrh
changeset 0 8466d47a6819
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 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:  Id's and constants used in the settings UI.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef IPSSETUTILSCONSTS_HRH
       
    20 #define IPSSETUTILSCONSTS_HRH
       
    21 
       
    22 /**
       
    23  * Dialog Id's
       
    24  */
       
    25 enum TIpsSetUiSettingId
       
    26     {
       
    27     EIpsSetUiIdListBox = 0x666,
       
    28     EIpsSetUiIdFolderListBox
       
    29     };
       
    30 
       
    31 /**
       
    32  * Definitions for list item types.
       
    33  */
       
    34 enum TIpsSetUiSettingsType
       
    35     {
       
    36     /** The item is defined dynamically. */
       
    37     EIpsSetUiUndefined = 0x00,
       
    38     /** Menuarray, which contains subitems. */
       
    39     EIpsSetUiMenuArray,
       
    40     /** Multiline item. */
       
    41     EIpsSetUiItemMultiLine,
       
    42     /** Radiobutton editor. */
       
    43     EIpsSetUiRadioButtonArray,
       
    44     /** Checkbox editor. */
       
    45     EIpsSetUiCheckBoxArray,
       
    46     /** Text editor. */
       
    47     EIpsSetUiItemText,
       
    48     /** Number editor. */
       
    49     EIpsSetUiItemValue,
       
    50     /** Number editor, which content is stored in text format. */
       
    51     EIpsSetUiItemScValue,
       
    52     /** Time editor. */
       
    53     EIpsSetUiItemTime,
       
    54     /** Checkbox item. */
       
    55     EIpsSetUiItemCheckBox,
       
    56     /** Radiobutton item. */
       
    57     EIpsSetUiItemRadioButton,
       
    58     /** Access point editor. */
       
    59     EIpsSetUiItemAccessPoint,
       
    60 
       
    61     /** Keep this last. */
       
    62     EIpsSetUiItemLastUnusedItem
       
    63     };
       
    64 
       
    65 /**
       
    66  * Button id's for folder subscription.
       
    67  */
       
    68 enum TIpsSetUiSubscriptionDialogButtons
       
    69     {
       
    70     /** Subscribe option. */
       
    71     EIpsSetUiFolderSubscribe = 1,
       
    72     /** Unsubscribe option. */
       
    73     EIpsSetUiFolderUnsubscribe,
       
    74     /** Open folder option. */
       
    75     EIpsSetUiFolderOpenFolder,
       
    76     /** Close folder option. */
       
    77     EIpsSetUiFolderCloseFolder,
       
    78     /** Refresh folder list option. */
       
    79     EIpsSetUiRefreshFolderList
       
    80     };
       
    81 
       
    82 // Item Flags
       
    83 
       
    84 // Indicates if the item is checked or not (Radiobutton/Checkbox)
       
    85 #define KIpsSetUiFlagChecked                     0x00000001 // << 32
       
    86 // Allows drawing the item but not editing
       
    87 #define KIpsSetUiFlagReadOnly                    0x00000002 // << 33
       
    88 // Determines if item is drawn or not (for dynamic hiding)
       
    89 #define KIpsSetUiFlagHidden                      0x00000004 // << 34
       
    90 // Determines if item is drawn or not (can be used with variation)
       
    91 #define KIpsSetUiFlagPermanentlyHidden           0x00000008 // << 35
       
    92 // Allows changing the state between two values without editor
       
    93 #define KIpsSetUiFlagEnterPressed                0x00000010 // << 36
       
    94 // Item is critical setting
       
    95 #define KIpsSetUiFlagCompulsory                  0x00000020 // << 37
       
    96 // Setting has to be filled before exiting the settings
       
    97 #define KIpsSetUiFlagMustFill                    0x00000040 // << 38
       
    98 // When set, the ok button is hidden from the page, when field is empty
       
    99 #define KIpsSetUiFlagForceMustFill               0x00000080 // << 39
       
   100 // Use text editor instead of number editor to edit value
       
   101 #define KIpsSetUiFlagTextEditorToValue           0x00000100 // << 40
       
   102 // Should number conversion be used with item
       
   103 #define KIpsSetUiFlagLangSpecificNumConv         0x00000200 // << 41
       
   104 // The text written in field should be masked with special character
       
   105 #define KIpsSetUiFlagPassword                    0x00000400 // << 42
       
   106 // Determines, does the changing value automatically update the setting
       
   107 #define KIpsSetUiFlagUpdateOnChange              0x00000800 // << 43
       
   108 // Item status is approved, when the flag is set
       
   109 #define KIpsSetUiFlagValidated                   0x00001000 // << 44
       
   110 // Flag to prevent selection of the text, when starting edit
       
   111 #define KIpsSetUiFlagNoInitialSelection          0x00002000 // << 45
       
   112 // Flag to move the cursor in the beginning of the line
       
   113 #define KIpsSetUiFlagEditorCursorAtBeginning     0x00004000 // << 46
       
   114 // Flag to inform that the page should be acquired from the client
       
   115 #define KIpsSetUiFlagAcquireCustomPage           0x00008000 // << 47
       
   116 // One time flag to indicate, if the view needs to be opened
       
   117 #define KIpsSetUiFlagOneTimeForceViewOpen        0x00010000 // << 48
       
   118 // Indicates the current initialization state of the item
       
   119 #define KIpsSetUiFlagIsInitialized               0x00020000 // << 49
       
   120 // Indicates that the typing language needs to be restricted to latin
       
   121 #define KIpsSetUiFlagLatinOnly                   0x00040000 // << 50
       
   122 // The item is only visible for Imap4 protocol
       
   123 #define KIpsSetUiFlagImap4Only                   0x00080000 // << 51
       
   124 // The item is only visible for Pop3 protocol
       
   125 #define KIpsSetUiFlagPop3Only                    0x00100000 // << 52
       
   126 // Another editor should be tried to be opened after this
       
   127 #define KIpsSetUiFlagFindEditor                  0x00200000 // << 53
       
   128 
       
   129 // Common constants
       
   130 
       
   131 #define KIpsSetUiSettingsTextLengthDefault  20
       
   132 #define KIpsSetUiMaxSettingsTextWidth       12
       
   133 #define KIpsSetUiMaxSettingsLongTextLength  500
       
   134 #define KIpsSetUiMaxSettingsSignatureLength 4096
       
   135 #define KIpsSetUiMaxSettingsTextLength      100
       
   136 #define KIPsSetUiMaxSettingsUsrNameLength   1024
       
   137 #define KIpsSetUiMaxSettingsValueLength     3
       
   138 #define KIpsSetUiMaxSettingsTimeLength      4
       
   139 #define KIpsSetUiArrayGranularity           5
       
   140 #define KIpsSetUiMaxPasswordLength          50
       
   141 #define KIpsSetUiNumberMinValue             1
       
   142 #define KIpsSetUiNumberMaxValue             999
       
   143 #define KIpsSetUiNumberMaxPortValue         65535
       
   144 #define KIpsSetUiMaxPortValueLength         5
       
   145 
       
   146 
       
   147 #endif /* IPSSETUTILSCONSTS_HRH */
       
   148 
       
   149 // End of file