/*
* Copyright (c) 2002-2006 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:
* This file contains all the resources for the module.
*
*/
// RESOURCE IDENTIFIER
NAME MMNV // 4 letter ID
// INCLUDES
#include <bldvariant.hrh>
#include <finditem.hrh>
#include <eikon.rh>
#include <eikon.rsg>
#include <avkon.rh>
#include <avkon.rsg>
#include <avkon.mbg>
#include <avkon.hrh>
#include <aknsconstants.hrh> // EAknsMajorGeneric etc.
#include <MsgEditor.rh>
#include <avkon.loc>
#include <messaging.loc>
#include <appinfo.rh>
#include <data_caging_paths_strings.hrh>
#include <mmsui.mbg> // title icon
#include <muiu.mbg>
#include "NotViewer.hrh"
#include <mmsui.loc>
// RESOURCES
RESOURCE RSS_SIGNATURE { }
RESOURCE TBUF { buf = ""; }
// RESOURCE DEFINITIONS
// ---------------------------------------------------------
//
// eik_app_info
// Application resource info
//
// ---------------------------------------------------------
//
RESOURCE EIK_APP_INFO
{
menubar = r_notviewer_menu;
status_pane = r_notviewer_status_pane;
cba = r_notviewer_softkeys_options_back__contextoptions;
custom_app_info_extension = r_notviewer_app_info_extension;
}
// ---------------------------------------------------------
//
// r_notviewer_app_info_extension
// Application resource info extension
//
// ---------------------------------------------------------
//
RESOURCE EIK_APP_INFO_EXT r_notviewer_app_info_extension
{
popup_toolbar = r_notviewer_app_toolbar;
}
//----------------------------------------------------
//
// r_notviewer_app_toolbar - CAknToolbar
// Application toolbar
//
//----------------------------------------------------
//
// Needed by skinning. In toolbar resource definition skin support and bitmap methods are used, in case skin
// does not support toolbar icons
RESOURCE AVKON_BUTTON_STATE_EXTENSION r_notviewer_reply_button_state_extension
{
bmbSkinIdMajor= EAknsMajorGeneric;
bmbSkinIdMinor= EAknsMinorGenericQgnIndiTbMsgReply;
}
RESOURCE AVKON_BUTTON_STATE_EXTENSION r_notviewer_retrieve_button_state_extension
{
bmbSkinIdMajor= EAknsMajorGeneric;
bmbSkinIdMinor= EAknsMinorGenericQgnIndiTbRetrieveMms;
}
RESOURCE AVKON_BUTTON_STATE_EXTENSION r_notviewer_forward_button_state_extension
{
bmbSkinIdMajor= EAknsMajorGeneric;
bmbSkinIdMinor= EAknsMinorGenericQgnIndiTbMsgForward;
}
RESOURCE AVKON_BUTTON_STATE_EXTENSION r_notviewer_send_button_state_extension
{
bmbSkinIdMajor= EAknsMajorGeneric;
bmbSkinIdMinor= EAknsMinorGenericQgnIndiTbMsgSend;
}
RESOURCE AVKON_BUTTON_STATE_EXTENSION r_notviewer_add_recipient_button_state_extension
{
bmbSkinIdMajor= EAknsMajorGeneric;
bmbSkinIdMinor= EAknsMinorGenericQgnIndiTbAddRecipient;
}
RESOURCE AVKON_BUTTON_STATE_EXTENSION r_notviewer_delete_button_state_extension
{
bmbSkinIdMajor= EAknsMajorGeneric;
bmbSkinIdMinor= EAknsMinorGenericQgnIndiTbMsgDelete;
}
RESOURCE AVKON_TOOLBAR r_notviewer_app_toolbar
{
flags = KAknToolbarFixed;
items =
{
// In Viewer:
TBAR_CTRL
{
type = EAknCtButton;
id = ENotViewerToolbarReply;
control = AVKON_BUTTON
{
flags = KAknButtonSizeFitText;
states =
{
AVKON_BUTTON_STATE
{
helptxt = qtn_mms_notif_tb_tooltip_reply;
bmpfile = BITMAP_DIR"\\muiu.mif";
bmpid = EMbmMuiuQgn_indi_tb_msg_reply;
bmpmask = EMbmMuiuQgn_indi_tb_msg_reply_mask;
extension = r_notviewer_reply_button_state_extension;
}
};
};
},
// In Viewer:
TBAR_CTRL
{
type = EAknCtButton;
id = ENotViewerToolbarRetrieve;
control = AVKON_BUTTON
{
flags = KAknButtonSizeFitText;
states =
{
AVKON_BUTTON_STATE
{
helptxt = qtn_mms_notif_tb_tooltip_retrieve;
bmpfile = BITMAP_DIR"\\mmsui.mif";
bmpid = EMbmMmsuiQgn_indi_tb_retrieve_mms;
bmpmask = EMbmMmsuiQgn_indi_tb_retrieve_mms_mask;
extension = r_notviewer_retrieve_button_state_extension;
}
};
};
},
// In Forward Request:
TBAR_CTRL
{
type = EAknCtButton;
id = ENotViewerToolbarSend;
control = AVKON_BUTTON
{
flags = KAknButtonSizeFitText;
states =
{
AVKON_BUTTON_STATE
{
helptxt = qtn_mms_notif_fwd_tb_tooltip_send;
bmpfile = BITMAP_DIR"\\muiu.mif";
bmpid = EMbmMuiuQgn_indi_tb_msg_send;
bmpmask = EMbmMuiuQgn_indi_tb_msg_send_mask;
extension = r_notviewer_send_button_state_extension;
}
};
};
},
// In Forward Request:
TBAR_CTRL
{
type = EAknCtButton;
id = ENotViewerToolbarAdd;
control = AVKON_BUTTON
{
flags = KAknButtonSizeFitText;
states =
{
AVKON_BUTTON_STATE
{
helptxt = qtn_mms_notif_fwd_tb_tooltip_add_recipient;
bmpfile = BITMAP_DIR"\\muiu.mif";
bmpid = EMbmMuiuQgn_indi_tb_add_recipient;
bmpmask = EMbmMuiuQgn_indi_tb_add_recipient_mask;
extension = r_notviewer_add_recipient_button_state_extension;
}
};
};
},
// In Both
TBAR_CTRL
{
type = EAknCtButton;
id = ENotViewerToolbarDelete;
control = AVKON_BUTTON
{
flags = KAknButtonSizeFitText;
states =
{
AVKON_BUTTON_STATE
{
helptxt = qtn_mms_notif_tb_tooltip_delete;
bmpfile = BITMAP_DIR"\\muiu.mif";
bmpid = EMbmMuiuQgn_indi_mg_tb_delete;
bmpmask = EMbmMuiuQgn_indi_mg_tb_delete_mask;
extension = r_notviewer_delete_button_state_extension;
}
};
};
}
};
}
// RESOURCE DEFINITIONS
// ---------------------------------------------------------
//
// r_notviewer_softkeys_options_back__contextoptions
// Command buttons in viewer mode
//
// ---------------------------------------------------------
//
RESOURCE CBA r_notviewer_softkeys_options_back__contextoptions
{
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;}
};
}
// RESOURCE DEFINITIONS
// ---------------------------------------------------------
//
// r_notviewer_softkeys_forward_options_cancel__contextoptions
// Command buttons in forward mode
//
// ---------------------------------------------------------
//
RESOURCE CBA r_notviewer_softkeys_forward_options_cancel__contextoptions
{
buttons =
{
CBA_BUTTON {id=EAknSoftkeyOptions; txt = text_softkey_option;},
CBA_BUTTON {id=EAknSoftkeyCancel; txt = text_softkey_cancel; },
CBA_BUTTON {id=EAknSoftkeyContextOptions; txt = text_softkey_option;}
};
}
// RESOURCE DEFINITIONS
// ---------------------------------------------------------
//
// r_notviewer_localisable_app_info
// Application resource info
//
// ---------------------------------------------------------
//
RESOURCE LOCALISABLE_APP_INFO r_notviewer_localisable_app_info
{
short_caption = "NOT";
caption_and_icon =
CAPTION_AND_ICON_INFO
{
caption = "NOT";
#ifdef __SCALABLE_ICONS
number_of_icons = 1;
icon_file = APP_BITMAP_DIR"\\notviewer_aif.mif";
#else
number_of_icons = 1;
icon_file = APP_BITMAP_DIR"\\notviewer_aif.mbm";
#endif
};
}
// RESOURCE DEFINITIONS
// ---------------------------------------------------------
//
// r_mmsviewer_status_pane - statuspane
// Status pane for MMS Viewer
//
// ---------------------------------------------------------
//
RESOURCE STATUS_PANE_APP_MODEL r_notviewer_status_pane
{
layout = R_AVKON_STATUS_PANE_LAYOUT_USUAL;
panes=
{
SPANE_PANE
{
id = EEikStatusPaneUidTitle;
type = EAknCtTitlePane;
resource = r_notviewer_app_name;
}
};
}
// RESOURCE DEFINITIONS
// ---------------------------------------------------------
//
// r_notviewer_app_name - titlepane
// Title pane for Not Viewer
//
// ---------------------------------------------------------
//
RESOURCE TITLE_PANE r_notviewer_app_name
{
txt = qtn_mms_title_notification;
}
// RESOURCE DEFINITIONS
// ---------------------------------------------------------
//
// r_notviewer_menu - menubar
// Options mainmenu titles
//
// ---------------------------------------------------------
//
RESOURCE MENU_BAR r_notviewer_menu
{
titles =
{
MENU_TITLE { menu_pane = r_notviewer_optionsmenu; }
};
}
// ---------------------------------------------------------
//
// r_notviewer_selectionmenu
// This menubar is shown when selection key is pressed.
//
// ---------------------------------------------------------
//
RESOURCE MENU_BAR r_notviewer_selectionmenubar
{
titles =
{
MENU_TITLE { menu_pane = r_notviewer_selectionmenu; }
};
}
// RESOURCE DEFINITIONS
// ---------------------------------------------------------
//
// r_notviewer_optionsmenu - menupane
// Options mainmenu items
//
// ---------------------------------------------------------
//
RESOURCE MENU_PANE r_notviewer_optionsmenu
{
items =
{
MENU_ITEM { command = ENotViewerRetrieve; txt = qtn_mms_om_retrieve_msg; },
MENU_ITEM { command = ENotViewerReplyMenu; txt = qtn_mms_om_reply;
cascade = r_notviewer_reply_submenu; },
MENU_ITEM { command = ENotViewerForward; txt = qtn_mms_notif_fwd_msg; },
MENU_ITEM { command = ENotViewerSend; txt = qtn_msg_om_send; },
MENU_ITEM { command = ENotViewerAddRecipient; txt = qtn_msg_om_add_recipient; },
MENU_ITEM { command = ENotViewerCheckNames; txt = qtn_msg_check_names; },
MENU_ITEM { command = ENotViewerDelete; txt = qtn_msg_om_delete; },
MENU_ITEM { command = EFindItemMenuPlaceHolder; txt = ""; },
MENU_ITEM { command = ENotViewerMessageDetails; txt = qtn_msg_om_message_info; },
MENU_ITEM { command = ENotViewerSubmenuZoomCommands; txt = qtn_options_text_size;
cascade = r_notviewer_zoom_submenu;
},
MENU_ITEM { command = EAknCmdHelp; txt = qtn_options_help; },
MENU_ITEM { command = EAknCmdExit; txt = qtn_mms_om_exit; }
};
}
// ---------------------------------------------------------
//
// r_notviewer_selectmenu - menupane
// Selection key menu items
//
// ---------------------------------------------------------
//
RESOURCE MENU_PANE r_notviewer_selectionmenu
{
items =
{
MENU_ITEM { command = ENotViewerRetrieve; txt = qtn_mms_om_retrieve_msg; },
MENU_ITEM { command = ENotViewerReplyMenu; txt = qtn_mms_om_reply;
cascade = r_notviewer_reply_submenu; },
MENU_ITEM { command = ENotViewerSend; txt = qtn_msg_om_send; },
MENU_ITEM { command = ENotViewerAddRecipient; txt = qtn_msg_om_add_recipient; },
MENU_ITEM { command = EFindItemContextMenuPlaceHolder; txt = ""; }
};
}
// RESOURCE DEFINITIONS
// ---------------------------------------------------------
//
// r_mmsviewer_reply_submenu - menupane
// Options mainmenu's submenu containing reply functions
//
// ---------------------------------------------------------
//
RESOURCE MENU_PANE r_notviewer_reply_submenu
{
items=
{
MENU_ITEM { command = ENotViewerReplyViaMessage; txt = qtn_mms_sm_via_message; },
MENU_ITEM { command = ENotViewerReplyViaAudio; txt = qtn_msg_reply_via_audio_message; },
MENU_ITEM { command = ENotViewerReplyViaMail; txt = qtn_mms_sm_via_mail; }
};
}
// RESOURCE DEFINITIONS
//----------------------------------------------------
//
// r_notviewer_zoom_submenu
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_notviewer_zoom_submenu
{
items=
{
MENU_ITEM {
command = EMsgDispSizeAutomatic;
txt = qtn_options_auto;
flags = EEikMenuItemRadioStart;
}
,
MENU_ITEM {
command = EMsgDispSizeLarge;
txt = qtn_options_large;
flags = EEikMenuItemRadioMiddle;
}
,
MENU_ITEM {
command = EMsgDispSizeNormal;
txt = qtn_options_normal;
flags = EEikMenuItemRadioMiddle;
}
,
MENU_ITEM {
command = EMsgDispSizeSmall;
txt = qtn_options_small;
flags = EEikMenuItemRadioEnd;
}
};
}
// RICH TEXT LABELS
//----------------------------------------------------
//
// r_notviewer_label_subject
//
//----------------------------------------------------
//
RESOURCE TBUF r_notviewer_label_subject { buf = qtn_msg_nf_subject ; }
//----------------------------------------------------
//
// r_notviewer_label_text
//
//----------------------------------------------------
//
RESOURCE TBUF r_notviewer_label_text { buf = qtn_mms_extended_notif_text ; }
//----------------------------------------------------
//
// r_notviewer_label_expires
//
//----------------------------------------------------
//
RESOURCE TBUF r_notviewer_label_expires { buf = qtn_mms_expires ; }
//----------------------------------------------------
//
// r_notviewer_label_size
//
//----------------------------------------------------
//
RESOURCE TBUF r_notviewer_label_size { buf = qtn_mms_estimated_size ; }
//----------------------------------------------------
//
// r_notviewer_label_class
//
//----------------------------------------------------
//
RESOURCE TBUF r_notviewer_label_class { buf = qtn_mms_class ; }
//----------------------------------------------------
//
// r_notviewer_label_priority
//
//----------------------------------------------------
//
RESOURCE TBUF r_notviewer_label_priority { buf = qtn_mms_priority ; }
//----------------------------------------------------
//
// r_notviewer_value_expires
//
//----------------------------------------------------
//
RESOURCE TBUF r_notviewer_value_expires { buf = qtn_mms_expiry_time_date ; }
// CLASS VALUES
//----------------------------------------------------
//
// r_notviewer_value_class_personal
//
//----------------------------------------------------
//
RESOURCE TBUF r_notviewer_value_class_personal { buf = qtn_mms_msg_type_personal ; }
//----------------------------------------------------
//
// r_notviewer_value_class_informative
//
//----------------------------------------------------
//
RESOURCE TBUF r_notviewer_value_class_informative { buf = qtn_mms_msg_type_informative ; }
//----------------------------------------------------
//
// r_notviewer_value_class_advertisement
//
//----------------------------------------------------
//
RESOURCE TBUF r_notviewer_value_class_advertisement { buf = qtn_mms_msg_type_advertisement ; }
// PRIORITY VALUES
//----------------------------------------------------
//
// r_notviewer_value_priority_low
//
//----------------------------------------------------
//
RESOURCE TBUF r_notviewer_value_priority_low { buf = qtn_mms_priority_low ; }
//----------------------------------------------------
//
// r_notviewer_value_priority_normal
//
//----------------------------------------------------
//
RESOURCE TBUF r_notviewer_value_priority_normal { buf = qtn_mms_priority_normal ; }
//----------------------------------------------------
//
// r_notviewer_value_priority_high
//
//----------------------------------------------------
//
RESOURCE TBUF r_notviewer_value_priority_high { buf = qtn_mms_priority_high ; }
// MESSAGE STATUS VALUES
//----------------------------------------------------
//
// r_notviewer_info_failed
//
//----------------------------------------------------
//
RESOURCE TBUF r_notviewer_info_failed { buf = qtn_mms_notif_retrieval_failed ; }
//----------------------------------------------------
//
// r_notviewer_info_expired
//
//----------------------------------------------------
//
RESOURCE TBUF r_notviewer_info_expired { buf = qtn_mms_notif_msg_expired ; }
//----------------------------------------------------
//
// r_notviewer_info_forwarding
//
//----------------------------------------------------
//
RESOURCE TBUF r_notviewer_info_forwarding { buf = qtn_mms_notif_msg_forwarding ; }
//----------------------------------------------------
//
// r_notviewer_info_forwarded
//
//----------------------------------------------------
//
RESOURCE TBUF r_notviewer_info_forwarded { buf = qtn_mms_notif_msg_forwarded ; }
//----------------------------------------------------
//
// r_notviewer_info_waiting
//
//----------------------------------------------------
//
RESOURCE TBUF r_notviewer_info_waiting { buf = qtn_mms_notif_msg_waiting ; }
//----------------------------------------------------
//
// r_notviewer_info_automatically
//
//----------------------------------------------------
//
//TODO: R: Not found S: in mmsui loc. Needs SCB LOC CR before this can be removed
//RESOURCE TBUF r_notviewer_info_automatically { buf = qtn_mms_notif_auto_retrieval ; }
//----------------------------------------------------
//
// r_notviewer_title_fwd_rqst
//
//----------------------------------------------------
//
RESOURCE TBUF r_notviewer_title_fwd_rqst { buf = qtn_mms_title_fwd_rqst ; }
//----------------------------------------------------
//
// r_notviewer_retrieving_message
//
//----------------------------------------------------
//
RESOURCE TBUF r_notviewer_retrieving_message { buf = qtn_mms_wait_retrieving ; }
// RESOURCE DEFINITIONS
// ---------------------------------------------------------
//
// r_notviewer_from - msgeditoraddresscontrol
// Address control for received messages
//
// ---------------------------------------------------------
//
RESOURCE MSG_EDITOR_ADDRESS_CONTROL r_notviewer_from
{
prompt = qtn_msg_nf_from;
id = EMsgComponentIdFrom;
distance = 0;
}
// RESOURCE DEFINITIONS
// ---------------------------------------------------------
//
// r_notviewer_to - msgeditoraddresscontrol
// Address control for sent messages
//
// ---------------------------------------------------------
//
RESOURCE MSG_EDITOR_ADDRESS_CONTROL r_notviewer_to
{
prompt = qtn_msg_to;
id = EMsgComponentIdTo;
distance = 0;
}
// RESOURCE DEFINITIONS
// ---------------------------------------------------------
//
// r_notviewer_confirmation_query - dialog
// Confirmation query template
//
// ---------------------------------------------------------
//
RESOURCE DIALOG r_notviewer_confirmation_query
{
flags = EGeneralQueryFlags;
buttons = R_AVKON_SOFTKEYS_YES_NO__YES;
items=
{
DLG_LINE
{
type = EAknCtQuery;
id = EGeneralQuery;
control = AVKON_CONFIRMATION_QUERY
{
layout = EConfirmationLayout;
label = "";
};
}
};
}
// RESOURCE DEFINITIONS
// ---------------------------------------------------------
//
// r_notviewer_delete_from_query - dialog
// Confirmation query template
//
// ---------------------------------------------------------
//
RESOURCE AVKON_MULTISELECTION_LIST_QUERY r_notviewer_delete_from_query
{
flags = EGeneralQueryFlags;
softkeys = R_AVKON_SOFTKEYS_SELECT_CANCEL__SELECT;
items =
{
AVKON_MULTISELECTION_LIST_QUERY_DLG_LINE
{
control = AVKON_LIST_QUERY_CONTROL
{
listtype = EAknCtSinglePopupMenuListBox;
listbox = AVKON_LIST_QUERY_LIST
{
array_id = 0;
};
heading = qtn_mms_qry_title_del_from;
};
}
};
}
//----------------------------------------------------
//
// r_notviewer_quest_delete_message
//
//----------------------------------------------------
//
RESOURCE TBUF r_notviewer_quest_delete_message
{
buf = qtn_mms_quest_delete_msg;
}
//----------------------------------------------------
//
// r_notviewer_quest_message_expired
//
//----------------------------------------------------
//
RESOURCE TBUF r_notviewer_quest_msg_expired
{
buf = qtn_mms_quest_msg_expired;
}
//----------------------------------------------------
//
// r_notviewer_quest_forward_notif
//
//----------------------------------------------------
//
RESOURCE TBUF r_notviewer_quest_forward_notif
{
buf = qtn_mms_conf_forward_request;
}
//----------------------------------------------------
//
// r_notviewer_quest_offline_not_possible
//
//----------------------------------------------------
//
RESOURCE TBUF r_notviewer_offline_not_possible
{
buf = qtn_offline_not_possible;
}
//----------------------------------------------------
//
// r_notviewer_saved_outbox
//
//----------------------------------------------------
//
RESOURCE TBUF r_notviewer_saved_outbox
{
// From Messaging.loc
buf = qtn_wait_offline_outbox;
}
//----------------------------------------------------
//
// r_notviewer_delete_query_remoteonly
//
//----------------------------------------------------
//
RESOURCE TBUF r_notviewer_delete_query_remoteonly
{
buf = qtn_mms_qry_del_only_remote;
}
//----------------------------------------------------
//
// r_notviewer_delete_query_bothlocalandremote
//
//----------------------------------------------------
//
RESOURCE TBUF r_notviewer_delete_query_bothlocalandremote
{
buf = qtn_mms_qry_del_from_both;
}
//----------------------------------------------------
//
// r_notviewer_wait_deleting_remote
//
//----------------------------------------------------
//
RESOURCE TBUF r_notviewer_wait_deleting_remote
{
buf = qtn_mms_wait_deleting_remote;
}
//----------------------------------------------------
//
// r_notviewer_remote_deleted
//
//----------------------------------------------------
//
RESOURCE TBUF r_notviewer_remote_deleted
{
buf = qtn_mms_info_remote_del;
}
//----------------------------------------------------
//
// r_notviewer_remote_delete_failed
//
//----------------------------------------------------
//
RESOURCE TBUF r_notviewer_remote_delete_failed
{
buf = qtn_mms_info_remote_del_failed;
}
//----------------------------------------------------
//
// r_notviewer_ordinal_number - tbuf
// Ordinal number of current message in navipane
// (in 16 characters theres space for 9999999 messages plus
// two characters for the separator e.g. 1000000/9999999)
//
//----------------------------------------------------
//
#ifndef RD_MSG_NAVIPANE_IMPROVEMENT
RESOURCE TBUF r_notviewer_ordinal_number { buf = qtn_stat_msg_number ; }
#endif
// End of File