examples/Multimedia/AudioClientEx/AudioClientEx.rss

00001 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
00002 // All rights reserved.
00003 // This component and the accompanying materials are made available
00004 // under the terms of "Eclipse Public License v1.0"
00005 // which accompanies this distribution, and is available
00006 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
00007 //
00008 // Initial Contributors:
00009 // Nokia Corporation - initial contribution.
00010 //
00011 // Contributors:
00012 //
00013 // Description:
00014 //
00015 
00016 NAME MEDI
00017 
00018 #include <eikon.rh>
00019 #include <eikon.rsg>
00020 
00021 #include "MediaClient.hrh"
00022 
00023 
00024 RESOURCE RSS_SIGNATURE { }
00025 
00026 RESOURCE TBUF { buf="Audio"; }
00027 
00028 RESOURCE EIK_APP_INFO
00029     {
00030     menubar=r_mediaplay_menubar;
00031     }
00032 
00033 // The menubar
00034 RESOURCE MENU_BAR r_mediaplay_menubar
00035     {
00036     titles=
00037         {
00038         MENU_TITLE { menu_pane=r_audioex_actions_menu; txt="Actions"; },
00039         MENU_TITLE { menu_pane=r_audioex_options_menu; txt="Volume"; }
00040         };
00041     }
00042 
00043 // Actions menu
00044 RESOURCE MENU_PANE r_audioex_actions_menu
00045     {
00046     items=
00047         {
00048         MENU_ITEM { command=EMPCmdPlayTone; txt="Play tone"<KEllipsis>;},
00049                 MENU_ITEM { command=EMPCmdPlayFile; txt="Play file"<KEllipsis>;},
00050                 MENU_ITEM { command=EMPCmdRecordFile; txt="Record file"<KEllipsis>;},
00051                 MENU_ITEM { command=EMPCmdPlayStream; txt="Play stream";},
00052                 MENU_ITEM { command=EMPCmdPlayStreamWithQueue; txt="Play stream with queue";},
00053                 MENU_ITEM { command=EMPCmdShowMetaData; txt="Show meta data"<KEllipsis>;},
00054                 MENU_ITEM { command=EMPCmdConvertFile; txt="Convert file"<KEllipsis>;},
00055                 MENU_ITEM { command=EMPCmdStop; txt="Stop"; flags = EEikMenuItemSeparatorAfter;},
00056         MENU_ITEM { command=EEikCmdExit; txt="Close"; }
00057         };
00058     }
00059 
00060 // Options menu
00061 RESOURCE MENU_PANE r_audioex_options_menu
00062     {
00063     items=
00064         {
00065                 MENU_ITEM { command=EMPCmdVolumeHigh; txt="High volume";},
00066                 MENU_ITEM { command=EMPCmdVolumeMedium; txt="Medium volume";},
00067                 MENU_ITEM { command=EMPCmdVolumeLow; txt="Low volume";}
00068                 };
00069     }
00070 
00071 // The file record\conversion dialog
00072 RESOURCE DIALOG r_format_dialog
00073     {
00074     title="Target file type";
00075     buttons=r_option_dialog_buttons;
00076     flags=EEikDialogFlagWait;
00077     items=
00078                 {
00079                 DLG_LINE
00080                         {
00081             type=EEikCtChoiceList;
00082             prompt="Target type:";
00083             id=ECvtTypeField;
00084                         control=CHOICELIST
00085                                 {
00086                                 };
00087                         }
00088                 };
00089         }
00090 
00091 // The conversion format options dialog
00092 RESOURCE DIALOG r_record_options_dialog
00093     {
00094     title="Format options";
00095     buttons=R_EIK_BUTTONS_CANCEL_OK;
00096     flags=EEikDialogFlagWait;
00097     items=
00098                 {
00099                 DLG_LINE
00100                         {
00101             type=EEikCtChoiceList;
00102             prompt="Codecs:";
00103             id=ECodecs;
00104                         control=CHOICELIST
00105                                 {
00106                                 };
00107                         },
00108                 DLG_LINE
00109                         {
00110             type=EEikCtChoiceList;
00111             prompt="Bit rates:";
00112             id=EBitRates;
00113                         control=CHOICELIST
00114                                 {
00115                                 };
00116                         },
00117                 DLG_LINE
00118                         {
00119             type=EEikCtChoiceList;
00120             prompt="Sample rates:";
00121             id=ESampleRates;
00122                         control=CHOICELIST
00123                                 {
00124                                 };
00125                         },
00126                 DLG_LINE
00127                         {
00128             type=EEikCtChoiceList;
00129             prompt="Channels:";
00130             id=EChannels;
00131                         control=CHOICELIST
00132                                 {
00133                                 };
00134                         },
00135                 DLG_LINE
00136                         {
00137             type=EEikCtNumberEditor;
00138             prompt="Gain:";
00139             id=EGain;
00140                         control=NUMBER_EDITOR
00141                                 {
00142                                 min = -1000;
00143                                 max = 1000;
00144                                 };
00145                         },
00146                 DLG_LINE
00147                         {
00148             type=EEikCtNumberEditor;
00149             prompt="Balance:";
00150             id=EBalance;
00151                         control=NUMBER_EDITOR
00152                                 {
00153                                 min = -1000;
00154                                 max = 1000;
00155                                 };
00156                         }
00157                 };
00158         }
00159 
00160 // The conversion format options dialog
00161 RESOURCE DIALOG r_convert_options_dialog
00162     {
00163     title="Target options";
00164     buttons=R_EIK_BUTTONS_CANCEL_OK;
00165     flags=EEikDialogFlagWait;
00166     items=
00167                 {
00168                 DLG_LINE
00169                         {
00170             type=EEikCtChoiceList;
00171             prompt="Codecs:";
00172             id=ECodecs;
00173                         control=CHOICELIST
00174                                 {
00175                                 };
00176                         },
00177                 DLG_LINE
00178                         {
00179             type=EEikCtChoiceList;
00180             prompt="Bit rates:";
00181             id=EBitRates;
00182                         control=CHOICELIST
00183                                 {
00184                                 };
00185                         },
00186                 DLG_LINE
00187                         {
00188             type=EEikCtChoiceList;
00189             prompt="Sample rates:";
00190             id=ESampleRates;
00191                         control=CHOICELIST
00192                                 {
00193                                 };
00194                         },
00195                 DLG_LINE
00196                         {
00197             type=EEikCtChoiceList;
00198             prompt="Channels:";
00199             id=EChannels;
00200                         control=CHOICELIST
00201                                 {
00202                                 };
00203                         }
00204                 };
00205         }
00206 
00207 
00208 RESOURCE DLG_BUTTONS r_option_dialog_buttons
00209         {
00210         buttons=
00211                 {
00212                 DLG_BUTTON { id=EFormatOptions; button=CMBUT {txt="Options";}; flags=0; },
00213                 DLG_BUTTON { id=EEikBidCancel; button=CMBUT {txt="Cancel";}; hotkey=EEikBidCancel; flags=0; },
00214                 DLG_BUTTON { id=EEikBidOk; button=CMBUT {txt="OK";}; hotkey=EEikBidOk; flags=0; }
00215                 };
00216         }
00217 
00218 // The tone select dialog
00219 RESOURCE DIALOG r_tone_dialog
00220     {
00221     title="Select tone";
00222     buttons=R_EIK_BUTTONS_CANCEL_OK;
00223     flags=EEikDialogFlagWait;
00224     items=
00225                 {
00226         DLG_LINE
00227                         {
00228             type=EEikCtNumberEditor;
00229             prompt="Frequency";
00230             id=EFrequencyField;
00231                         control=NUMBER_EDITOR
00232                                 {
00233                                 min = 0;
00234                                 max = 1000;
00235                                 };
00236                         },
00237                 DLG_LINE
00238                         {
00239             type=EEikCtNumberEditor;
00240             prompt="Duration (seconds)";
00241             id=EDurationField;
00242                         control=NUMBER_EDITOR
00243                                 {
00244                                 min = 1;
00245                                 max = 10;
00246                                 };
00247                         }
00248                 };
00249         }

Generated on Thu Jan 21 10:32:59 2010 for TB10.1 Example Applications by  doxygen 1.5.3