examples/ForumNokia/BluetoothPMPExample/data/BtPmpEx.rss

00001 /*
00002  * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
00003  *    
00004  * Redistribution and use in source and binary forms, with or without
00005  * modification, are permitted provided that the following conditions are met:
00006  *    
00007  *  * Redistributions of source code must retain the above copyright notice, this
00008  *    list of conditions and the following disclaimer.
00009  *  * Redistributions in binary form must reproduce the above copyright notice,
00010  *    this list of conditions and the following disclaimer in the documentation
00011  *    and/or other materials provided with the distribution.
00012  *  * Neither the name of Nokia Corporation nor the names of its contributors
00013  *    may be used to endorse or promote products derived from this software
00014  *    without specific prior written permission.
00015  *    
00016  *    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00017  *    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00018  *    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00019  *    DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
00020  *    FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00021  *    DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
00022  *    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
00023  *    CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00024  *    OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00025  *    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00026  *    
00027  *    Description:  
00028  */
00029 
00030 //  RESOURCE IDENTIFIER
00031 NAME    AWIZ // 4 letter ID
00032 
00033 //  INCLUDES
00034 
00035 #include <eikon.rh>
00036 #include "bluetoothpmpexample.hrh"
00037 #include "bluetoothpmpexample.loc"
00038 #include <avkon.rsg>
00039 #include <avkon.rh>
00040 #include <avkon.mbg>
00041 #include <appinfo.rh>
00042 #include "BtPmpEx_loc.rls"
00043 
00044 
00045 #define KMaxLength 512
00046 
00047 //  RESOURCE DEFINITIONS
00048 
00049 RESOURCE RSS_SIGNATURE { }
00050 
00051 RESOURCE TBUF { buf="BtPmpExample"; }
00052 
00053 RESOURCE EIK_APP_INFO
00054     {
00055     hotkeys=r_bluetoothpmpexample_hotkeys;
00056     menubar=r_bluetoothpmpexample_menubar;
00057     cba=R_AVKON_SOFTKEYS_OPTIONS_EXIT;
00058     }
00059 
00060 //----------------------------------------------------
00061 //
00062 //    r_bluetoothpmpexample_hotkeys
00063 //
00064 //----------------------------------------------------
00065 //
00066 RESOURCE HOTKEYS r_bluetoothpmpexample_hotkeys
00067     {
00068     control=
00069         {
00070         HOTKEY { command=EAknCmdExit; key='e'; }
00071         };
00072     }
00073 
00074 //----------------------------------------------------
00075 //
00076 //    r_bluetoothpmpexample_menubar
00077 //
00078 //----------------------------------------------------
00079 //
00080 RESOURCE MENU_BAR r_bluetoothpmpexample_menubar
00081     {
00082     titles=
00083         {
00084         MENU_TITLE { menu_pane=r_bluetoothpmpexample_menu; txt="Cmds"; }
00085         };
00086     }
00087 
00088 //----------------------------------------------------
00089 //
00090 //    r_bluetoothpmpexample_menu
00091 //
00092 //----------------------------------------------------
00093 //
00094 RESOURCE MENU_PANE r_bluetoothpmpexample_menu
00095     {
00096     items=
00097         {
00098         MENU_ITEM { command=EBTCmdSendMessage; txt="Send message"; },
00099         MENU_ITEM { command=EBTCmdStartSlave; txt="Start slave"; },
00100         MENU_ITEM { command=EBTCmdDiscoverDevices; txt="Discover devices"; },
00101         MENU_ITEM { command=EBTCmdStopDiscovery; txt="Stop discovery"; },
00102         MENU_ITEM { command=EBTCmdDiscoverServices; txt="Discover services"; },
00103         MENU_ITEM { command=EBTCmdConnectDevices; txt="Connect devices"; },
00104         MENU_ITEM { command=EBTCmdDisconnect; txt="Disconnect"; },
00105         MENU_ITEM { command=EBTCmdDisconnectDevices; txt="Disconnect devices"; },
00106         MENU_ITEM { command=EBTCmdShowConnectedDevices; txt="Show connected"; },
00107         MENU_ITEM { command=EBtCmdBluetoothSetLimitedDiscoverableStatusOn; txt="Set LIAC On"; },
00108         MENU_ITEM { command=EBtCmdBluetoothSetLimitedDiscoverableStatusOff; txt="Set LIAC Off"; },
00109         MENU_ITEM { command=EBtCmdClearScreen; txt="Clear screen"; },
00110         MENU_ITEM { command=EAknCmdExit; txt="Exit"; }
00111         };
00112     }
00113 
00114 
00115 
00116 //----------------------------------------------------
00117 //
00118 //    r_bluetoothpmpexample_messageinput
00119 //
00120 //----------------------------------------------------
00121 //
00122 RESOURCE DIALOG r_bluetoothexample_messageinput
00123     {
00124     flags = EGeneralQueryFlags | EEikDialogFlagCbaButtons;
00125     buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
00126     items =
00127         {
00128         DLG_LINE
00129             {
00130             type = EAknCtQuery;
00131             id = EGeneralQuery;
00132             control = AVKON_DATA_QUERY
00133                 {
00134                 layout = EDataLayout;
00135                 label = qtn_bt_message_input_text;
00136                 control = EDWIN
00137                     {
00138                     flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
00139                     //max_view_height_in_lines = CMC_EDWIN_LINES;
00140                     // if you have the line above, you must have this.
00141                     // It's calculable from LAF
00142                     //base_line_delta = 21;
00143                     maxlength = 20;
00144                     };
00145                 };
00146             }
00147         };
00148     }
00149 
00150 RESOURCE RTXTED r_richtexteditor_rich_text_editor
00151     {
00152     //textlimit=KMaxLength;
00153     flags = EEikEdwinDisplayOnly | EEikEdwinReadOnly;
00154     }
00155 
00156 //-----------------------------------------------------------------------------
00157 //
00158 //    r_localisable_app_info
00159 //
00160 //-----------------------------------------------------------------------------
00161 //
00162 RESOURCE LOCALISABLE_APP_INFO r_localisable_app_info
00163     {
00164     short_caption = STRING_short_caption;
00165     caption_and_icon =
00166         CAPTION_AND_ICON_INFO
00167             {
00168             caption=STRING_r_long_caption;
00169             number_of_icons = 1;
00170             icon_file = "\\resource\\apps\\BtPmpEx.mif";
00171             };
00172     }
00173 
00174 // End of File

Generated by  doxygen 1.6.2