phonebookui/Phonebook2/inc/Pbk2UIControls.hrh
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     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 UI control definitions.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef PBK2UICONTROLS_HRH
       
    20 #define PBK2UICONTROLS_HRH
       
    21 
       
    22 // --------------------------------------------------------------------------
       
    23 // CPbk2ContactViewListControl flags
       
    24 // --------------------------------------------------------------------------
       
    25 //
       
    26 /// CPbk2ContactViewListControl flag: null flags (nothing set)
       
    27 #define KPbk2ContactViewListControlFlagsNull                    0x00000000
       
    28 
       
    29 /// CPbk2ContactViewListControl flag: updates context pane if set
       
    30 #define KPbk2ContactViewListControlUpdateContextPane            0x00000001
       
    31 
       
    32 /// CPbk2ContactViewListControl flag: control includes a find box if set
       
    33 #define KPbk2ContactViewListControlFindBox                      0x00000002
       
    34 
       
    35 /// CPbk2ContactViewListControl flag: control is double row list if set
       
    36 #define KPbk2ContactViewListControlDoubleRow                    0x00000004
       
    37 
       
    38 
       
    39 // --------------------------------------------------------------------------
       
    40 // CPbk2ContactInfoControl flags
       
    41 // --------------------------------------------------------------------------
       
    42 //
       
    43 /// CPbk2ContactInfoControl flag: null flags (nothing set)
       
    44 #define KPbk2ContactInfoControlFlagsNull                        0x00000000
       
    45 
       
    46 /// CPbk2ContactInfoControl flag: updates context pane if set
       
    47 #define KPbk2ContactInfoControlUpdateContextPane                0x00000001
       
    48 
       
    49 /// CPbk2ContactInfoControl flag: updates title pane if set
       
    50 #define KPbk2ContactInfoControlUpdateTitlePane                  0x00000002
       
    51 
       
    52 /// CPbk2ContactInfoControl flag: updates status pane if set
       
    53 #define KPbk2ContactInfoControlUpdateStatusPane ( KPbk2ContactInfoControlUpdateContextPane | \
       
    54                                                   KPbk2ContactInfoControlUpdateTitlePane)
       
    55 
       
    56 /// CPbk2ContactInfoControl flag: shows name fields in the list if set
       
    57 #define KPbk2ContactInfoControlShowNameFields                   0x00000004
       
    58 
       
    59 /// CPbk2ContactInfoControl flag: shows image fields in the list if set
       
    60 #define KPbk2ContactInfoControlShowImageFields                  0x00000008
       
    61 
       
    62 
       
    63 // --------------------------------------------------------------------------
       
    64 // Fetch dialog flags
       
    65 // --------------------------------------------------------------------------
       
    66 //
       
    67 #define PBK2_FETCHDIALOG_FLAGS ( EEikDialogFlagNotifyEsc | \
       
    68                                 EEikDialogFlagNoDrag | \
       
    69                                 EEikDialogFlagCbaButtons | \
       
    70                                 EEikDialogFlagNoTitleBar | \
       
    71                                 EEikDialogFlagFillAppClientRect )
       
    72 
       
    73 // --------------------------------------------------------------------------
       
    74 // Definitions for minimum and maximum date values
       
    75 // --------------------------------------------------------------------------
       
    76 //
       
    77 #define KPbk2DateMinDay     0       // from 0 to 27/28/29/30 inclusive
       
    78 #define KPbk2DateMinMonth   0       // from 0 to 11 inclusive
       
    79 #define KPbk2DateMinYear    0001
       
    80 #define KPbk2DateMaxDay     30      // from 0 to 27/28/29/30 inclusive
       
    81 #define KPbk2DateMaxMonth   11      // from 0 to 11 inclusive
       
    82 #define KPbk2DateMaxYear    2100
       
    83 
       
    84 // --------------------------------------------------------------------------
       
    85 // Command ids for Pbk2UIControls.dll
       
    86 // --------------------------------------------------------------------------
       
    87  enum TPbk2UIControlsCommand
       
    88     {
       
    89     /// new/edit memory entry dialog menu items
       
    90     EPbk2CmdSave,
       
    91     EPbk2CmdAddItem,
       
    92     EPbk2CmdDeleteItem,
       
    93     EPbk2CmdEditItemLabel,
       
    94     EPbk2CmdEditorChangeRingtone,
       
    95     EPbk2CmdEditorRemoveRingtone,
       
    96     //EPbk2CmdEditorImage,  //no submenu currently    
       
    97     EPbk2CmdEditorAddImage,
       
    98     EPbk2CmdEditorChangeImage,    
       
    99     EPbk2CmdEditorViewImage,       
       
   100     EPbk2CmdEditorRemoveImage,
       
   101     EPbk2CmdEditorChangeSync,
       
   102     //Custom field items
       
   103     EPbk2CmdEditorHandleCustomSelect,
       
   104     EPbk2CmdEditorHandleCustomRemove,    
       
   105     // Settings list commands
       
   106     EPbk2CmdEditSetting,
       
   107     //Address commands
       
   108     EPbk2CmdEditorSelectAddress,
       
   109     EPbk2CmdEditorSelectAddressHome,
       
   110     EPbk2CmdEditorSelectAddressOffice,
       
   111     EPbk2CmdEditorSelectAssignFromMaps,
       
   112     EPbk2CmdEditorOpen,
       
   113     EPbk2CmdEditorContextMenu
       
   114     };
       
   115 
       
   116 // --------------------------------------------------------------------------
       
   117 // Phonebook 2 control class IDs
       
   118 // These should be different from EIKON and AVKON IDs
       
   119 // --------------------------------------------------------------------------
       
   120 enum
       
   121     {
       
   122     /// IDs start here
       
   123     EPbk2CtStart = 6000,
       
   124     /// Entry list control
       
   125     EPbk2CtEntryList,
       
   126     /// Contact list control
       
   127     EPbk2CtContactList,
       
   128     /// Contact view list control
       
   129     EPbk2CtContactViewList,
       
   130     /// Names contact list
       
   131     EPbk2CtNamesContactViewList,
       
   132     /// Groups contact list
       
   133     EPbk2CtGroupsContactViewList
       
   134     };
       
   135 
       
   136 // --------------------------------------------------------------------------
       
   137 // Control IDs in fetch dialog
       
   138 // --------------------------------------------------------------------------
       
   139 enum
       
   140     {
       
   141     /// Names list control in fetch dialog
       
   142     ECtrlFetchNamesList = 1,
       
   143     /// Groups list control fetch dialog
       
   144     ECtrlFetchGroupsList
       
   145     };
       
   146 
       
   147 // --------------------------------------------------------------------------
       
   148 // Phonebook 2 settings list items.
       
   149 // --------------------------------------------------------------------------
       
   150 enum
       
   151     {
       
   152     EPbk2SettingMemorySelection,
       
   153     EPbk2SettingDefaultSavingStorage,
       
   154     EPbk2SettingNameOrder,
       
   155     EPbk2SettingPredictiveSearch
       
   156     };
       
   157 
       
   158 #endif // PBK2UICONTROLS_HRH
       
   159 
       
   160 // End of File