00001
00002
00003
00004
00005
00006 NAME AWIZ
00007
00008
00009
00010 #include <eikon.rh>
00011 #include "bluetoothpmpexample.hrh"
00012 #include "bluetoothpmpexample.loc"
00013 #include <avkon.rsg>
00014 #include <avkon.rh>
00015 #include <avkon.mbg>
00016 #include <appinfo.rh>
00017 #include "BtPmpEx_loc.rls"
00018
00019
00020 #define KMaxLength 512
00021
00022
00023
00024 RESOURCE RSS_SIGNATURE { }
00025
00026 RESOURCE TBUF { buf="BtPmpExample"; }
00027
00028 RESOURCE EIK_APP_INFO
00029 {
00030 hotkeys=r_bluetoothpmpexample_hotkeys;
00031 menubar=r_bluetoothpmpexample_menubar;
00032 cba=R_AVKON_SOFTKEYS_OPTIONS_EXIT;
00033 }
00034
00035
00036
00037
00038
00039
00040
00041 RESOURCE HOTKEYS r_bluetoothpmpexample_hotkeys
00042 {
00043 control=
00044 {
00045 HOTKEY { command=EAknCmdExit; key='e'; }
00046 };
00047 }
00048
00049
00050
00051
00052
00053
00054
00055 RESOURCE MENU_BAR r_bluetoothpmpexample_menubar
00056 {
00057 titles=
00058 {
00059 MENU_TITLE { menu_pane=r_bluetoothpmpexample_menu; txt="Cmds"; }
00060 };
00061 }
00062
00063
00064
00065
00066
00067
00068
00069 RESOURCE MENU_PANE r_bluetoothpmpexample_menu
00070 {
00071 items=
00072 {
00073 MENU_ITEM { command=EBTCmdSendMessage; txt="Send message"; },
00074 MENU_ITEM { command=EBTCmdStartSlave; txt="Start slave"; },
00075 MENU_ITEM { command=EBTCmdDiscoverDevices; txt="Discover devices"; },
00076 MENU_ITEM { command=EBTCmdStopDiscovery; txt="Stop discovery"; },
00077 MENU_ITEM { command=EBTCmdDiscoverServices; txt="Discover services"; },
00078 MENU_ITEM { command=EBTCmdConnectDevices; txt="Connect devices"; },
00079 MENU_ITEM { command=EBTCmdDisconnect; txt="Disconnect"; },
00080 MENU_ITEM { command=EBTCmdDisconnectDevices; txt="Disconnect devices"; },
00081 MENU_ITEM { command=EBTCmdShowConnectedDevices; txt="Show connected"; },
00082 MENU_ITEM { command=EBtCmdBluetoothSetLimitedDiscoverableStatusOn; txt="Set LIAC On"; },
00083 MENU_ITEM { command=EBtCmdBluetoothSetLimitedDiscoverableStatusOff; txt="Set LIAC Off"; },
00084 MENU_ITEM { command=EBtCmdClearScreen; txt="Clear screen"; },
00085 MENU_ITEM { command=EAknCmdExit; txt="Exit"; }
00086 };
00087 }
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097 RESOURCE DIALOG r_bluetoothexample_messageinput
00098 {
00099 flags = EGeneralQueryFlags | EEikDialogFlagCbaButtons;
00100 buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
00101 items =
00102 {
00103 DLG_LINE
00104 {
00105 type = EAknCtQuery;
00106 id = EGeneralQuery;
00107 control = AVKON_DATA_QUERY
00108 {
00109 layout = EDataLayout;
00110 label = qtn_bt_message_input_text;
00111 control = EDWIN
00112 {
00113 flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
00114
00115
00116
00117
00118 maxlength = 20;
00119 };
00120 };
00121 }
00122 };
00123 }
00124
00125 RESOURCE RTXTED r_richtexteditor_rich_text_editor
00126 {
00127
00128 flags = EEikEdwinDisplayOnly | EEikEdwinReadOnly;
00129 }
00130
00131
00132
00133
00134
00135
00136
00137 RESOURCE LOCALISABLE_APP_INFO r_localisable_app_info
00138 {
00139 short_caption = STRING_short_caption;
00140 caption_and_icon =
00141 CAPTION_AND_ICON_INFO
00142 {
00143 caption=STRING_r_long_caption;
00144 number_of_icons = 1;
00145 icon_file = "\\resource\\apps\\BtPmpEx.mif";
00146 };
00147 }
00148
00149