/*
* Copyright (c) 2008 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:  Resource definitions for the engine.
*
*/


NAME RCLE

#include <eikon.rh>
#include <avkon.rsg>
#include <avkon.rh>
#include <avkon.mbg>
#include <avkon.loc>
#include <appinfo.rh>
#include "engine.hrh"
#include <phonebook2rcl.loc> 
#include <AiwCommon.hrh>
#include <AiwCommon.rh>
#include <AiwPoCParameters.hrh>

//PhoneBook2
#include <phonebook2.loc>
#include <phonebook2ece.loc>

RESOURCE RSS_SIGNATURE { }
RESOURCE TBUF { buf=""; }
//
// ---------------------------------------------------------------------------
// Message resources
// ---------------------------------------------------------------------------
//

RESOURCE TBUF r_qtn_rcl_search { buf = qtn_rcl_search; }

RESOURCE TBUF r_qtn_rcl_search_wait_note { buf = qtn_rcl_search_wait_note; }

RESOURCE TBUF r_qtn_rcl_result_navi { buf = qtn_rcl_result_navi; }

RESOURCE TBUF r_qtn_rcl_one_result_navi { buf = qtn_rcl_one_result_navi; }

RESOURCE TBUF r_qtn_rcl_info_navi { buf = qtn_rcl_info_navi; }

RESOURCE TBUF r_qtn_rcl_opening_wait_note { buf = qtn_rcl_opening_wait_note; }

RESOURCE TBUF r_qtn_rcl_retrieval_wait_note { buf = qtn_rcl_retrieval_wait_note; }

RESOURCE TBUF r_qtn_rcl_saving_wait_note { buf = qtn_rcl_saving_wait_note; }

RESOURCE TBUF r_qtn_rcl_no_results { buf = qtn_rcl_no_results; }

RESOURCE TBUF r_qtn_rcl_too_many_results_note { buf = qtn_rcl_too_many_results_note; }

RESOURCE TBUF r_qtn_rcl_error_note { buf = qtn_rcl_error_note; }

RESOURCE TBUF r_qtn_rcl_update_note { buf = qtn_rcl_update_note; }

RESOURCE TBUF r_qtn_rcl_add_recipient_action_menu_text { buf = qtn_fs_action_recipient; }

RESOURCE TBUF r_qtn_phob_set_server_search { buf = qtn_phob_set_server_search; }

RESOURCE TBUF r_qtn_rcl_setting_rcl_server_none { buf = qtn_fs_setting_rcl_server_none; }

RESOURCE TBUF r_qtn_rcl_setting_rcl_not_defined { buf = qtn_fs_setting_rcl_not_defined; }

RESOURCE TBUF r_qtn_rcl_replace_existing_detail_note { buf = qtn_rcl_replace_existing_detail_note; }

RESOURCE TBUF r_qtn_rcl_title_server_contacts { buf = qtn_rcl_title_server_contacts; }

//
//----------------------------------------------------------------------------
// Menu pane for search result dialog
//----------------------------------------------------------------------------
//

RESOURCE MENU_PANE r_rcl_search_result_dialog_menu_pane
        {
        items =
                {
        MENU_ITEM { command = ERclCmdSaveToContacts; txt = qtn_rcl_opt_save_contact; flags = EEikMenuItemSpecific;},
		MENU_ITEM { command = ERclCmdViewDetails; txt = qtn_rcl_opt_details; flags = EEikMenuItemAction; },
		MENU_ITEM { command = ERclCmdAddAsRecipient; txt = qtn_rcl_opt_add_recipient; flags = EEikMenuItemSpecific;},		
		MENU_ITEM { command = ERclCmdNewSearchPrefilled; txt = qtn_rcl_opt_new_search; },
		MENU_ITEM { command = ERclCmdCall; cascade = r_rcl_call_menu_pane; txt = qtn_rcl_opt_call; flags = EEikMenuItemSpecific; },
		MENU_ITEM { command = ERclCmdSend; cascade = r_rcl_send_menu_pane; txt = qtn_rcl_opt_send; flags = EEikMenuItemSpecific; },
		MENU_ITEM { command = ERclCmdHelp; txt = qtn_options_help; },
		MENU_ITEM { command = EAknCmdExit; txt = qtn_options_exit; }	
		};
	}

//
// ---------------------------------------------------------------------------
// Menu sub pane for call options
// ---------------------------------------------------------------------------
//

RESOURCE MENU_PANE r_rcl_call_menu_pane
	{
	items =
	       {
	       MENU_ITEM { command = ERclCmdVoiceCall; txt = qtn_rcl_opt_voice_call; flags = EEikMenuItemSpecific;},
	       MENU_ITEM { command = ERclCmdVideoCall; txt = qtn_rcl_opt_video_call; flags = EEikMenuItemSpecific;},
	       MENU_ITEM { command = ERclCmdVoip; txt = qtn_rcl_opt_voip; flags = EEikMenuItemSpecific;}
	       };
	}

//
// ---------------------------------------------------------------------------
// Menu sub pane for send options
// ---------------------------------------------------------------------------
//

RESOURCE MENU_PANE r_rcl_send_menu_pane
	{
	items =
	        {
		MENU_ITEM { command = ERclCmdSendMsg; txt = qtn_rcl_opt_msg; flags = EEikMenuItemSpecific;},
		MENU_ITEM { command = ERclCmdSendBusinessCard; txt = qtn_rcl_opt_bcard; flags = EEikMenuItemSpecific;},
		MENU_ITEM { command = ERclCmdSendEmail; txt = qtn_rcl_opt_email; flags = EEikMenuItemSpecific;},
		MENU_ITEM { command = ERclCmdSendMeetingReq; txt = qtn_rcl_opt_mreq; flags = EEikMenuItemSpecific;},		
		MENU_ITEM { command = ERclCmdSendAudioMsg; txt = qtn_rcl_opt_audio; flags = EEikMenuItemSpecific;}
	       	};
	}

//
// ---------------------------------------------------------------------------
// Menu sub pane for send options for context sensitive menu
// ---------------------------------------------------------------------------
//

RESOURCE MENU_PANE r_rcl_context_send_menu_pane
	{
	items =
	        {
		MENU_ITEM { command = ERclCmdSendMsg; txt = qtn_rcl_opt_msg; },
		MENU_ITEM { command = ERclCmdSendBusinessCard; txt = qtn_rcl_opt_bcard; },
		MENU_ITEM { command = ERclCmdSendEmail; txt = qtn_rcl_opt_email; },
		MENU_ITEM { command = ERclCmdSendMeetingReq; txt = qtn_rcl_opt_mreq; },
		MENU_ITEM { command = ERclCmdSendAudioMsg; txt = qtn_rcl_opt_audio; }
	       	};
	}

//
// ---------------------------------------------------------------------------
// Menu sub pane for talk options
// ---------------------------------------------------------------------------
//

RESOURCE MENU_PANE r_rcl_talk_menu_pane
	{
	items =
	        {
		MENU_ITEM { command = ERclCmdToContact; txt = qtn_rcl_opt_talk_1to1; flags = EEikMenuItemSpecific;},
		MENU_ITEM { command = ERclCmdSendCallbackReq; txt = qtn_rcl_opt_talk_cbr; flags = EEikMenuItemSpecific;}
		};
	}

//
// ---------------------------------------------------------------------------
// Menu pane for result info dialog
// ---------------------------------------------------------------------------
//

RESOURCE MENU_PANE r_rcl_result_info_dialog_menu_pane
	{
	items =
	        {
		MENU_ITEM { command = ERclCmdAddAsRecipient; txt = qtn_rcl_opt_add_recipient; },
		MENU_ITEM { command = ERclCmdAddToContacts; txt = qtn_rcl_opt_save_contact; },
		MENU_ITEM { command = ERclCmdCall; cascade = r_rcl_info_call_menu_pane; txt = qtn_rcl_opt_call; },
		MENU_ITEM { command = ERclCmdTalk; cascade = r_rcl_info_talk_menu_pane; txt = qtn_rcl_opt_talk; },
		MENU_ITEM { command = ERclCmdSend; cascade = r_rcl_info_send_menu_pane; txt = qtn_rcl_opt_send; },
                MENU_ITEM { command = ERclCmdCopyDetail; txt = qtn_cca_options_copy_detail; flags = EEikMenuItemAction; }, 
		MENU_ITEM { command = ERclCmdHelp; txt = qtn_options_help; },
		MENU_ITEM { command = EAknCmdExit; txt = qtn_options_exit; }
		};
	}

// ---------------------------------------------------------------------------
// Context menu pane for result info dialog
// ---------------------------------------------------------------------------
//

RESOURCE MENU_PANE r_rcl_result_info_dialog_context_menu_pane
	{
	items =
	        {
                MENU_ITEM { command = ERclCmdCopyDetail; txt = qtn_rcl_opt_copy_detail; }, 
	        MENU_ITEM { command = ERclCmdVoiceCall; txt = qtn_rcl_opt_voice_call; },
	        MENU_ITEM { command = ERclCmdVideoCall; txt = qtn_rcl_opt_video_call; },
		MENU_ITEM { command = ERclCmdSendMsg; txt = qtn_rcl_opt_msg; },	
		MENU_ITEM { command = ERclCmdSendEmail; txt = qtn_rcl_opt_email; }					
		};
	}

//
// ---------------------------------------------------------------------------
// Menu sub pane for call options in result info dialog
// ---------------------------------------------------------------------------
//

RESOURCE MENU_PANE r_rcl_info_call_menu_pane
    {
    items =
           {
           MENU_ITEM { command = ERclCmdVoiceCall; txt = qtn_rcl_opt_voice_call;},
           MENU_ITEM { command = ERclCmdVideoCall; txt = qtn_rcl_opt_video_call;},
           MENU_ITEM { command = ERclCmdVoip; txt = qtn_rcl_opt_voip;}
           };
    }

//
// ---------------------------------------------------------------------------
// Menu sub pane for send options in result info dialog
// ---------------------------------------------------------------------------
//

RESOURCE MENU_PANE r_rcl_info_send_menu_pane
    {
    items =
            {
        MENU_ITEM { command = ERclCmdSendMsg; txt = qtn_rcl_opt_msg;},
        MENU_ITEM { command = ERclCmdSendBusinessCard; txt = qtn_rcl_opt_bcard;},
        MENU_ITEM { command = ERclCmdSendEmail; txt = qtn_rcl_opt_email;},
        MENU_ITEM { command = ERclCmdSendMeetingReq; txt = qtn_rcl_opt_mreq;},        
        MENU_ITEM { command = ERclCmdSendAudioMsg; txt = qtn_rcl_opt_audio;}
            };
    }

//
// ---------------------------------------------------------------------------
// Menu sub pane for talk options in result info dialog
// ---------------------------------------------------------------------------
//

RESOURCE MENU_PANE r_rcl_info_talk_menu_pane
    {
    items =
            {
        MENU_ITEM { command = ERclCmdToContact; txt = qtn_rcl_opt_talk_1to1;},
        MENU_ITEM { command = ERclCmdSendCallbackReq; txt = qtn_rcl_opt_talk_cbr;}
        };
    }

//
// ---------------------------------------------------------------------------
// Menu bar for search result dialog
// ---------------------------------------------------------------------------
//

RESOURCE MENU_BAR r_rcl_search_result_dialog_menu_bar
        {
	titles = 
	       { 
	       MENU_TITLE { menu_pane = r_rcl_search_result_dialog_menu_pane; } 
	       };
	}

//
// ---------------------------------------------------------------------------
// Menu bar for result info fialog
// ---------------------------------------------------------------------------
//

RESOURCE MENU_BAR r_rcl_result_info_dialog_menu_bar
	{
	titles =
	       {
	       MENU_TITLE { menu_pane = r_rcl_result_info_dialog_menu_pane; }
	       };
	}

// ---------------------------------------------------------------------------
// Context sensitive menu bar for info dialog
// ---------------------------------------------------------------------------
//

RESOURCE MENU_BAR r_rcl_result_info_dialog_context_menu_bar
	{
	titles =
	       {
	       MENU_TITLE { menu_pane = r_rcl_result_info_dialog_context_menu_pane; }
	       };
	}

//
// ---------------------------------------------------------------------------
// RCL setting item page for selecting account
// ---------------------------------------------------------------------------
//

RESOURCE AVKON_SETTING_PAGE r_rcl_setting_item_page
	{
	type = EAknCtPopupSettingList;
	editor_resource_id = r_rcl_popup_setting_list;
	}

//
// ---------------------------------------------------------------------------
// RCL popup setting list for selecting account
// ---------------------------------------------------------------------------
//

RESOURCE POPUP_SETTING_LIST r_rcl_popup_setting_list
	{
	flags = 0;
	}

//
// ---------------------------------------------------------------------------
// RCL popup setting texts
// ---------------------------------------------------------------------------
//

RESOURCE AVKON_POPUP_SETTING_TEXTS r_rcl_popup_setting_texts
	{
	setting_texts_resource = r_rcl_setting_text_array;
	}
 
//
// ---------------------------------------------------------------------------
// RCL popup setting text array
// ---------------------------------------------------------------------------
//

RESOURCE ARRAY r_rcl_setting_text_array
	{
	items =
	       {
	       };
	}

//
// ---------------------------------------------------------------------------
// Wait dialog while executing remote search
// ---------------------------------------------------------------------------
//

RESOURCE DIALOG r_rcl_search_wait_dialog_cancel
	{
	flags = EAknWaitNoteFlags;
	buttons = R_AVKON_SOFTKEYS_CANCEL;
	items =
	        {
		DLG_LINE
	                {
			type = EAknCtNote;
			id = KRclWaitDialogId;
			control = AVKON_NOTE
				{
				layout = EWaitLayout;
				animation = R_QGN_GRAF_WAIT_BAR_ANIM;
				};
			}
		};
	}

//
// ---------------------------------------------------------------------------
// Confirmation note
// ---------------------------------------------------------------------------
//

RESOURCE DIALOG r_rcl_confirmation_note
	{
	flags = EAknConfirmationNoteFlags | EEikDialogFlagWait;
	items =
	       {
	       DLG_LINE
	              {
		      type = EAknCtNote;
		      id = EGeneralNote;
		      control = AVKON_NOTE
			      {
			      layout = EGeneralLayout;
			      imagefile = AVKON_BITMAP_FILE;
			      imageid = EMbmAvkonQgn_note_ok;
			      imagemask = EMbmAvkonQgn_note_ok_mask;
			      };
		      }
	       };
	}

//
// ---------------------------------------------------------------------------
// Query dialog with softkeys Ok - Refine
// ---------------------------------------------------------------------------
//
//Fix for: EASV-7KFGG3
RESOURCE DIALOG r_rcl_confirmation_note_ok_refine
    {
    flags=EGeneralQueryFlags;
    buttons=r_rcl_ok_refine_cba;
    items=
        {
        DLG_LINE
            {
            type=EAknCtQuery;
            id=EGeneralQuery;
            control= AVKON_CONFIRMATION_QUERY 
                { 
                layout = EConfirmationQueryLayout;
                animation = R_QGN_NOTE_WARNING_ANIM;
                };
            }
        };
    }

//
// ---------------------------------------------------------------------------
// Confirmation note with softkeys Yes - Cancel
// ---------------------------------------------------------------------------
//

RESOURCE DIALOG r_rcl_confirmation_note_yes_cancel
	{
	flags = EAknConfirmationNoteFlags | EEikDialogFlagWait;
	buttons = r_rcl_yes_cancel_cba;
	items =
	       {
	       DLG_LINE
	              {
		      type = EAknCtNote;
		      id = EGeneralNote;
		      control = AVKON_NOTE
			      {
			      layout = EGeneralLayout;
			      imagefile = AVKON_BITMAP_FILE;
			      imageid = EMbmAvkonQgn_note_ok;
			      imagemask = EMbmAvkonQgn_note_ok_mask;
			      };
		      }
	       };
	}

//
// ---------------------------------------------------------------------------
// Warning note
// ---------------------------------------------------------------------------
//

RESOURCE DIALOG r_rcl_warning_note
	{
	flags = EAknErrorNoteFlags | EEikDialogFlagWait;
	items =
	       {
	       DLG_LINE
	              {
		      type = EAknCtNote;
		      id = EGeneralNote;
		      control = AVKON_NOTE
	                     {
			     layout = EGeneralLayout;
			     imagefile = AVKON_BITMAP_FILE;
			     imageid = EMbmAvkonQgn_note_warning;
			     imagemask = EMbmAvkonQgn_note_warning_mask;
			     };
		      }
	       };
	}

//
// ---------------------------------------------------------------------------
// Remote lookup search result dialog
// ---------------------------------------------------------------------------
//

RESOURCE DIALOG r_rcl_search_result_dialog 
	{ 
	flags = EAknDialogSelectionList; 
	buttons = r_rcl_options_back_open; 
	items = 
	      { 
	      DLG_LINE 
		       { 
		       type = ERclSearchResultListBox;
		       id = ESelectionListControl; 
		       control = LISTBOX 
			       { 
			       flags = EAknListBoxSelectionList; 
			       }; 
		       }
	      };
        }

//
// ---------------------------------------------------------------------------
// Result information dialog
// ---------------------------------------------------------------------------
//

RESOURCE DIALOG r_rcl_result_info_dialog 
	{
	flags = EAknDialogSelectionList; 
	buttons = r_rcl_options_back_contextmenu;
	items = 
	      { 
	      DLG_LINE 
		       { 
		       type = ERclResultInfoListBox;
		       id = ESelectionListControl; 
		       control = LISTBOX 
			       { 
			       flags = EAknListBoxSelectionList; 
			       }; 
		       }
	      };
        }

//
// ---------------------------------------------------------------------------
// Query editor dialog
// ---------------------------------------------------------------------------
//

RESOURCE DIALOG r_rcl_query_dialog
	{
	flags = EGeneralQueryFlags;
	buttons = r_rcl_search_cancel_cba;
	items =
		{
		DLG_LINE
			{
			type = EAknCtQuery;
			id = EGeneralQuery;
			control = AVKON_DATA_QUERY
				{
				layout = EDataLayout;
				control = EDWIN
					{
					flags = EAknEditorFlagDefault;
					maxlength = KRclQueryTextMaxLength;
					allowed_input_modes = EAknEditorNumericInputMode | EAknEditorTextInputMode;
					};
				};
			}
		};
	}

//
// ---------------------------------------------------------------------------
// Search cancel cba
// ---------------------------------------------------------------------------
//

RESOURCE CBA r_rcl_search_cancel_cba
        {
	breadth = 80;
	buttons =
		{
		CBA_BUTTON
			{
			id = EAknSoftkeyOk;
			txt = qtn_rcl_softkey_search;
			},
		CBA_BUTTON
			{
			id = EAknSoftkeyCancel;
			txt = text_softkey_cancel;
			},
		CBA_BUTTON
			{
			id = EAknSoftkeyOk;
			txt = qgn_prop_msk_select;
			}
		};
	}

//
// ---------------------------------------------------------------------------
// Ok refine cba
// ---------------------------------------------------------------------------
//

RESOURCE CBA r_rcl_ok_refine_cba
	{
	breadth = 80;
	buttons =
		{
		CBA_BUTTON
			{
			id = EAknSoftkeyOk;
			txt = text_softkey_ok;
			},
		CBA_BUTTON
			{
			id = EAknSoftkeyCancel;
			txt = qtn_rcl_softkey_refine;
			},
		CBA_BUTTON
			{
			id = EAknSoftkeyOk;
			txt = text_softkey_ok;
			}
		};
	}

//
// ---------------------------------------------------------------------------
// Yes cancel cba
// ---------------------------------------------------------------------------
//

RESOURCE CBA r_rcl_yes_cancel_cba
	{
	breadth = 80;
	buttons =
		{
		CBA_BUTTON
			{
			id = EAknSoftkeyOk;
			txt = text_softkey_yes;
			},
		CBA_BUTTON
			{
			id = EAknSoftkeyCancel;
			txt = text_softkey_cancel;
			},
		CBA_BUTTON
			{
			id = EAknSoftkeyOk;
			txt = text_softkey_yes;
			}
		};
	}

//
// ---------------------------------------------------------------------------
// Poc aiw interest
// ---------------------------------------------------------------------------
//

RESOURCE AIW_INTEREST r_rcl_poc_interest
	{
	items =
	       {
	       AIW_CRITERIA_ITEM
	              {
		      id = KAiwCmdPoC;
		      serviceCmd = KAiwCmdPoC;
		      contentType = "*";
		      serviceClass = KAiwClassBase; 
		      defaultProvider = KS60PoCAiwProviderImplUid;
		      maxProviders = 1;
		      }
	       };
	}
	
//
// ---------------------------------------------------------------------------
// Options - Open - Back cba
// ---------------------------------------------------------------------------
//
RESOURCE CBA r_rcl_options_back_open
    {
    breadth = 80;
    buttons =
        {
        CBA_BUTTON
            {
            id = EAknSoftkeyOptions;
            txt = text_softkey_option;
            },
        CBA_BUTTON
            {
            id = EAknSoftkeyBack;
            txt = text_softkey_back;
            },
        CBA_BUTTON
            {
            id = EAknSoftkeyOpen;
            txt = text_softkey_open;
            }
        };
    }

//
// ---------------------------------------------------------------------------
// Options Back cba
// ---------------------------------------------------------------------------
//

RESOURCE CBA r_rcl_options_back_contextmenu
    {
    breadth = 80;
    buttons =
        {
        CBA_BUTTON
            {
            id = EAknSoftkeyOptions;
            txt = text_softkey_option;
            },
        CBA_BUTTON
            {
            id = EAknSoftkeyBack;
            txt = text_softkey_back;
            },
        CBA_BUTTON
            {
            id = EAknSoftkeyContextOptions;
            txt = text_softkey_option;
            }
        };
    }
    
// --------------------------------------------------------------------------
// r_qtn_fs_info_note_copied_to_clipboard
// --------------------------------------------------------------------------
//
RESOURCE TBUF r_qtn_fs_info_note_copied_to_clipboard
    {
    buf = qtn_cca_info_note_copied_to_clipboard;
    }

// --------------------------------------------------------------------------
// r_qtn_rcl_opt_copy_detail
// --------------------------------------------------------------------------
//
RESOURCE TBUF r_qtn_rcl_opt_copy_detail
    {
    buf = qtn_rcl_opt_copy_detail;
    }

// --------------------------------------------------------------------------
// r_qtn_rcl_opt_voice_call
// --------------------------------------------------------------------------
//
RESOURCE TBUF r_qtn_rcl_opt_voice_call
    {
    buf = qtn_rcl_opt_voice_call;  
    }

// --------------------------------------------------------------------------
// r_qtn_rcl_opt_video_call
// --------------------------------------------------------------------------
//
RESOURCE TBUF r_qtn_rcl_opt_video_call
    {
    buf = qtn_rcl_opt_video_call;
    }
    
// --------------------------------------------------------------------------
// r_qtn_rcl_opt_msg
// --------------------------------------------------------------------------
//
RESOURCE TBUF r_qtn_rcl_opt_msg
    {
    buf = qtn_rcl_opt_msg;
    }    

// --------------------------------------------------------------------------
// r_qtn_rcl_opt_email
// --------------------------------------------------------------------------
//
RESOURCE TBUF r_qtn_rcl_opt_email
    {
    buf = qtn_rcl_opt_email;
    }    
