phonebookui/Phonebook2/USIMExtension/rss/Pbk2USimFixedDialingView.rss
branchRCL_3
changeset 63 f4a778e096c2
child 64 c1e8ba0c2b16
child 74 6b5524b4f673
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/phonebookui/Phonebook2/USIMExtension/rss/Pbk2USimFixedDialingView.rss	Wed Sep 01 12:29:52 2010 +0100
@@ -0,0 +1,414 @@
+/*
+* Copyright (c) 2005-2007 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:  Phonebook 2 touchable fixed dialing view definition.
+*
+*/
+
+
+// --------------------------------------------------------------------------
+// FDN contact view
+// --------------------------------------------------------------------------
+//
+RESOURCE VPBK_CONTACT_VIEW r_psu2_fdn_contacts_view
+    {
+    uri = KVPBK_SIM_GLOBAL_FDN_URI;
+    flags = EVPbkContactViewFlagsNone;
+    subViews = {};
+    }
+
+// --------------------------------------------------------------------------
+// Avkon view definition
+// --------------------------------------------------------------------------
+//
+RESOURCE AVKON_VIEW r_psu2_fixed_dialing_appview
+    {
+    menubar = r_psu2_fixed_dialing_menubar;
+    cba = R_AVKON_SOFTKEYS_BACK;
+    }
+
+// --------------------------------------------------------------------------
+// Menu bar
+// --------------------------------------------------------------------------
+//
+RESOURCE MENU_BAR r_psu2_fixed_dialing_menubar
+    {
+    titles =
+        {
+        MENU_TITLE
+            {
+            menu_pane = R_PHONEBOOK2_SYSTEM_MENU;
+            },
+        MENU_TITLE
+            {
+            menu_pane = r_psu2_fixed_dialing_copy_menupane;
+            },
+        MENU_TITLE
+            {
+            menu_pane = R_AVKON_MENUPANE_MARKABLE_LIST;
+            },
+        MENU_TITLE
+            {
+            menu_pane = r_psu2_fixed_dialing_menupane;
+            },
+        MENU_TITLE
+            {
+            menu_pane = R_PHONEBOOK2_STYLUS_CALL_MENU;
+            },
+        MENU_TITLE
+            {
+            menu_pane = r_psu2_fixed_dialing_open_menupane;
+            }
+        };
+    }
+
+// --------------------------------------------------------------------------
+// Context menu bar
+// --------------------------------------------------------------------------
+//
+RESOURCE MENU_BAR r_psu2_fixed_dialing_context_menubar
+    {
+    titles =
+        {
+        MENU_TITLE
+            {
+            menu_pane = R_PHONEBOOK2_MARKABLE_LIST_CONTEXT_MENU;
+            },                
+        MENU_TITLE
+            {
+            menu_pane = r_psu2_fixed_dialing_copy_context_menupane;
+            },
+        MENU_TITLE
+            {
+            menu_pane = r_psu2_fixed_dialing_newcontact_menupane;
+            },
+        MENU_TITLE
+            {
+            menu_pane = r_psu2_fixed_dialing_delete_menupane;
+            }
+        };
+    }
+
+// --------------------------------------------------------------------------
+// Menu pane
+// --------------------------------------------------------------------------
+//
+RESOURCE MENU_PANE r_psu2_fixed_dialing_menupane
+    {
+    items=
+        {
+        MENU_ITEM
+            {
+            command = EPsu2CmdActivateFDN;
+            txt = qtn_fdn_activate_fdn;
+            },
+        MENU_ITEM
+            {
+            command = EPsu2CmdDeactivateFDN;
+            txt = qtn_fdn_deactivate_fdn;
+            },
+        MENU_ITEM
+            {
+            command = EPsu2CmdNewContact;
+            txt = qtn_simp_opt_entry_create;
+            },
+        MENU_ITEM
+            {
+            command = EPbk2CmdEditMe;
+            txt = qtn_phob_opt_entry_edit;
+            flags = EEikMenuItemSpecific;
+            },
+        MENU_ITEM
+            {
+            command = EPbk2CmdDeleteMe;
+            txt = qtn_phob_opt_entry_delete;
+            flags = EEikMenuItemSpecific;
+            }
+        };
+    }
+
+// --------------------------------------------------------------------------
+// Open menu pane
+// --------------------------------------------------------------------------
+//
+RESOURCE MENU_PANE r_psu2_fixed_dialing_open_menupane
+    {
+    items=
+        {
+        MENU_ITEM
+            {
+            command = EPsu2CmdOpenFixedDialingInfoView;
+            txt = qtn_simp_opt_entry_view;
+            flags = EEikMenuItemAction; 
+            }
+        };
+    }
+
+// --------------------------------------------------------------------------
+// Delete menu pane
+// --------------------------------------------------------------------------
+//
+RESOURCE MENU_PANE r_psu2_fixed_dialing_delete_menupane
+    {
+    items=
+        {
+        MENU_ITEM
+            {
+            command = EPbk2CmdDeleteMe;
+            txt = qtn_phob_opt_entry_delete;
+            }
+        };
+    }
+
+// --------------------------------------------------------------------------
+// New contact menu pane
+// --------------------------------------------------------------------------
+//
+RESOURCE MENU_PANE r_psu2_fixed_dialing_newcontact_menupane
+    {
+    items=
+        {
+        MENU_ITEM
+            {
+            command = EPsu2CmdNewContact;
+            txt = qtn_simp_opt_entry_create;
+            }
+        };
+    }
+
+// --------------------------------------------------------------------------
+// Copy menu pane
+// --------------------------------------------------------------------------
+//
+RESOURCE MENU_PANE r_psu2_fixed_dialing_copy_menupane
+    {
+    items=
+        {
+        MENU_ITEM
+            {
+            command = EPbk2CmdCopy;
+            txt = qtn_simp_opt_copy_to_pb;
+            flags = EEikMenuItemSpecific;
+            },
+        MENU_ITEM
+            {
+            command = EPsu2CmdCopyFromContacts;
+            txt = qtn_fdn_opt_copy_from_pb;
+            }
+        };
+    }
+
+// --------------------------------------------------------------------------
+// Copy context menu pane
+// --------------------------------------------------------------------------
+//
+RESOURCE MENU_PANE r_psu2_fixed_dialing_copy_context_menupane
+    {
+    items=
+        {
+        MENU_ITEM
+            {
+            command = EPbk2CmdCopy;
+            txt = qtn_simp_opt_copy_to_pb;
+            },
+        MENU_ITEM
+            {
+            command = EPsu2CmdCopyFromContacts;
+            txt = qtn_fdn_opt_copy_from_pb;
+            }
+        };
+    }
+// --------------------------------------------------------------------------
+// Names list control
+// --------------------------------------------------------------------------
+//
+RESOURCE PBK2_CONTACT_CONTROL r_psu2_fixed_dialing_name_list_control
+    {
+    // Flags
+    flags = KPbk2ContactViewListControlUpdateContextPane | KPbk2ContactViewListControlFindBox;
+    // Listbox resource
+    listbox = LISTBOX
+        {
+        flags = EAknListBoxStylusMarkableList|EAknListBoxLoopScrolling;
+        };
+    // Optional link to an icon array resource, see PBK2_ICON_ARRAY
+    iconArray = R_PBK2_FIELDTYPE_ICONS;
+    // Empty icon id in iconArray(s)
+    emptyIconId = PHONEBOOK2_ICON_ID
+        {
+        ownerUid = KPbk2UID3;
+        id = EPbk2qgn_prop_nrtyp_empty;
+        };
+    defaultIconId = PHONEBOOK2_ICON_ID
+        {
+        ownerUid = KPbk2UID3;
+        id = EPbk2qgn_prop_nrtyp_phone;
+        };
+    }
+
+// --------------------------------------------------------------------------
+// Tabs
+// --------------------------------------------------------------------------
+//
+RESOURCE PBK2_VIEW_NODE_TAB_ARRAY r_psu2_fixed_dialing_view_tabs
+    {
+    items =
+        {
+        PBK2_VIEW_NODE_TAB
+            {
+            version = 0;
+            tabsInGroup = 1;
+            tab = r_psu2_fixed_dialing_view_tab1;
+            }
+        };
+    }
+
+// --------------------------------------------------------------------------
+// Tab
+// --------------------------------------------------------------------------
+//
+RESOURCE TAB r_psu2_fixed_dialing_view_tab1
+    {
+    id = EPsu2FixedDialingViewId;
+    }
+
+// --------------------------------------------------------------------------
+// A dialog for asking fixed dialling phone number
+// --------------------------------------------------------------------------
+//
+RESOURCE DIALOG r_psu2_fdn_numberquery_dialog
+    {
+    flags=  EAknGeneralQueryFlags;
+    buttons=R_AVKON_SOFTKEYS_CALL_CANCEL__CALL;
+    items=
+        {
+        DLG_LINE
+            {
+            type=EAknCtQuery;
+            id=EGeneralQuery;
+            control=AVKON_DATA_QUERY
+                {
+                layout = EPhoneLayout;
+                label = qtn_fdn_enter_number_to_call;
+                control= EDWIN
+                    {
+                    numeric_keymap = EAknEditorStandardNumberModeKeymap;
+                    allowed_input_modes = EAknEditorNumericInputMode;
+                    default_input_mode = EAknEditorNumericInputMode;
+                    };
+                };
+            }
+        };
+    }
+
+// --------------------------------------------------------------------------
+// Name formatting field types
+// --------------------------------------------------------------------------
+//
+RESOURCE VPBK_FIELD_TYPE_MAPPING_LIST r_psu2_fdn_name_display_order
+    {
+    items =
+        {
+        /// Top contact indicator / Top contact internal order        
+        VPBK_FIELD_TYPE_MAPPING
+            {
+            versitProperty = VBK_FIELD_VERSIT_PROPERTY
+                {
+                name = EVPbkVersitNameTopContact;
+                };
+            },                
+        // Last name
+        VPBK_FIELD_TYPE_MAPPING
+            {
+            versitProperty = VBK_FIELD_VERSIT_PROPERTY
+                {
+                name = EVPbkVersitNameN;
+                subField = EVPbkVersitSubFieldFamilyName;
+                };
+            },
+        // First name
+        VPBK_FIELD_TYPE_MAPPING
+            {
+            versitProperty = VBK_FIELD_VERSIT_PROPERTY
+                {
+                name = EVPbkVersitNameN;
+                subField = EVPbkVersitSubFieldGivenName;
+                };
+            },
+        /// Last name reading
+        VPBK_FIELD_TYPE_MAPPING
+            {
+            versitProperty = VBK_FIELD_VERSIT_PROPERTY
+                {
+                name = EVPbkVersitNameSOUND;
+                subField = EVPbkVersitSubFieldFamilyNamePronunciation;
+                };
+            },
+        /// First name reading
+        VPBK_FIELD_TYPE_MAPPING
+            {
+            versitProperty = VBK_FIELD_VERSIT_PROPERTY
+                {
+                name = EVPbkVersitNameSOUND;
+                subField = EVPbkVersitSubFieldGivenNamePronunciation;
+                };
+            },
+        // SIM GSM number = general mobile
+        VPBK_FIELD_TYPE_MAPPING
+            {
+            versitProperty = VBK_FIELD_VERSIT_PROPERTY
+                {
+                name = EVPbkVersitNameTEL;
+                parameters =
+                    {
+                    EVPbkVersitParamCELL
+                    };
+                };
+            },
+        // Generic label
+        VPBK_FIELD_TYPE_MAPPING
+            {
+            versitProperty = VBK_FIELD_VERSIT_PROPERTY {};
+            nonVersitType = EVPbkNonVersitTypeGenericLabel;
+            }
+        };
+    }
+
+// --------------------------------------------------------------------------
+// Title field selector
+// --------------------------------------------------------------------------
+//
+RESOURCE VPBK_FIELD_TYPE_SELECTOR r_psu2_fdn_title_field_selector
+    {
+    versitProperties =
+        {
+        // Last name
+        VBK_FIELD_VERSIT_PROPERTY
+            {
+            name = EVPbkVersitNameN;
+            subField = EVPbkVersitSubFieldFamilyName;
+            },
+        // SIM GSM number = general mobile
+        VBK_FIELD_VERSIT_PROPERTY
+            {
+            name = EVPbkVersitNameTEL;
+            parameters = { EVPbkVersitParamCELL };
+            }
+        };
+    nonVersitType =
+        {
+        EVPbkNonVersitTypeGenericLabel
+        };
+    }
+
+// End of File