📄 btservices.rss
字号:
// BtServices.rss
//
// Copyright (c) 2003 Symbian Ltd. All rights reserved.
//
#include <eikon.rh>
#include <eikon.hrh>
#include <qikon.rh>
#include "btservices.hrh"
#include <eikcore.rsg>
#include <eikcoctl.rsg>
NAME BTSE
RESOURCE RSS_SIGNATURE { }
RESOURCE TBUF { buf="BtServices"; }
RESOURCE EIK_APP_INFO
{
menubar=r_BtServices_list_menubar; // app starts on list view
}
//
// list view
//
RESOURCE MENU_BAR r_BtServices_list_menubar
{
titles=
{
MENU_TITLE { menu_pane=r_BtServices_list_BtServices_menu; txt="BtServices"; },
MENU_TITLE { menu_pane=r_BtServices_list_Settings_menu; txt="Settings"; }
};
}
//
// detailed view
//
RESOURCE MENU_BAR r_BtServices_detailed_menubar
{
titles=
{
MENU_TITLE { menu_pane=r_BtServices_detailed_BtServices_menu; txt="BtServices"; }
};
}
RESOURCE MENU_PANE r_BtServices_list_BtServices_menu
{
items=
{
MENU_ITEM { command = EBtServicesDeviceInfo; txt = "Device Info"; },
MENU_ITEM { command = EBtServicesLocalInfo; txt = "Local Info"; },
MENU_ITEM { command = EBtServicesNewDevice; txt = "Select Device"; },
MENU_ITEM { command = EBtServicesRefreshList; txt = "Refresh List"; }
};
}
RESOURCE MENU_PANE r_BtServices_list_Settings_menu
{
items=
{
MENU_ITEM { command = EBtServicesSettingsUUID; txt = "UUIDs"; }
};
}
RESOURCE MENU_PANE r_BtServices_detailed_BtServices_menu
{
items=
{
};
}
RESOURCE TBUF r_button_text_select { buf = "Select Device"; }
RESOURCE TBUF r_button_text_cancel { buf = "Cancel"; }
RESOURCE TBUF r_button_text_refresh { buf = "Refresh"; }
RESOURCE TBUF r_label_text_device { buf = "Device: "; }
RESOURCE TBUF r_label_text_uuidfilter { buf = "UUID Filter: "; }
//
// Attribute dialog
//
RESOURCE DIALOG r_BtServices_attributes_dialog
{
title = "Attribute values...";
buttons = R_EIK_BUTTONS_CONTINUE;
flags = EEikDialogFlagWait;
items =
{
DLG_LINE
{
type = EEikCtLabel;
id = EBtAttributesDeviceNameLabel;
control=LABEL
{
standard_font=EEikLabelFontNormal;
horiz_align=EEikLabelAlignHLeft;
};
},
DLG_LINE
{
type = EEikCtLabel;
id = EBtAttributesServiceLabel;
control=LABEL
{
standard_font=EEikLabelFontNormal;
horiz_align=EEikLabelAlignHLeft;
};
},
DLG_LINE
{
type = EEikCtListBox;
id = EBtAttributesListBox;
itemflags = EQikDlgItemUseFullWidth;
control=LISTBOX
{
array_id = 0;
height = 8; // in items
};
}
};
}
//
// UUID Settings dialog
//
RESOURCE DIALOG r_BtServices_UUID_dialog
{
title = "UUID Settings...";
buttons = R_EIK_BUTTONS_CANCEL_OK;
flags = EEikDialogFlagWait;
items =
{
DLG_LINE
{
type = EEikCtLabel;
id = EUUIDDialogLabel;
control=LABEL
{
standard_font=EEikLabelFontNormal;
horiz_align=EEikLabelAlignHLeft;
txt="Select UUID or manually enter UUID number below";
};
},
DLG_LINE
{
type=EEikCtChoiceList;
id=EUUIDDialogChoiceList;
prompt = "UUID";
itemflags = EQikDlgItemUseFullWidth;
control=CHOICELIST
{
array_id=r_UUIDList_items;
maxdisplaychar = 12;
};
},
DLG_LINE
{
type = EEikCtEdwin;
id=EUUIDDialogNumberEditor;
prompt = "UUID: 0x";
itemflags = EQikDlgItemUseFullWidth;
control = EDWIN
{
maxlength = 8;
};
}
};
}
RESOURCE ARRAY r_UUIDList_items
{
items=
{
LBUF { txt="L2CAP";},
LBUF { txt="SDP";},
LBUF { txt="RFCOMM";},
LBUF { txt="OBEX";},
LBUF { txt="ServiceDiscoveryServer";},
LBUF { txt="BrowseGroupDescriptor";},
LBUF { txt="PublicBrowseGroup";},
LBUF { txt="SerialPort";},
LBUF { txt="OBEXObjectPush";},
LBUF { txt="OBEXFileTransfer";},
LBUF { txt="Headset";}
};
}
//
// Info dialog
//
RESOURCE DIALOG r_BtServices_info_dialog
{
title = "Device info...";
buttons = R_EIK_BUTTONS_CONTINUE;
flags = EEikDialogFlagWait;
items =
{
DLG_LINE
{
type = EEikCtLabel;
id = EBtDeviceInfoDialogName;
control=LABEL
{
standard_font=EEikLabelFontNormal;
horiz_align=EEikLabelAlignHLeft;
};
},
DLG_LINE
{
type = EEikCtLabel;
id = EBtDeviceInfoDialogAddr;
control=LABEL
{
standard_font=EEikLabelFontNormal;
horiz_align=EEikLabelAlignHLeft;
};
},
DLG_LINE
{
type = EEikCtLabel;
id = EBtDeviceInfoDialogClass;
control=LABEL
{
standard_font=EEikLabelFontNormal;
horiz_align=EEikLabelAlignHLeft;
};
},
DLG_LINE
{
type = EEikCtLabel;
id = EBtDeviceInfoDialogServiceClass;
control=LABEL
{
standard_font=EEikLabelFontNormal;
horiz_align=EEikLabelAlignHLeft;
};
},
DLG_LINE
{
type = EEikCtLabel;
id = EBtDeviceInfoDialogMajorClass;
control=LABEL
{
standard_font=EEikLabelFontNormal;
horiz_align=EEikLabelAlignHLeft;
};
},
DLG_LINE
{
type = EEikCtLabel;
id = EBtDeviceInfoDialogMinorClass;
control=LABEL
{
standard_font=EEikLabelFontNormal;
horiz_align=EEikLabelAlignHLeft;
};
}
};
}
STRUCT ATTRMNEMONIC
{
LONG attrid;
LTEXT txt;
}
// Attribute IDs are as defined in Bluetooth Assigned Numbers, v1.1
RESOURCE ARRAY r_attr_id_mnemonics
{
items =
{
ATTRMNEMONIC { attrid = 0x0000; txt = "RecordHandle: "; },
ATTRMNEMONIC { attrid = 0x0001; txt = "ClassIDList: "; },
ATTRMNEMONIC { attrid = 0x0002; txt = "State: "; },
ATTRMNEMONIC { attrid = 0x0003; txt = "ServiceID: "; },
ATTRMNEMONIC { attrid = 0x0004; txt = "ProtocolDescriptorList: "; },
ATTRMNEMONIC { attrid = 0x0005; txt = "BrowseGroupList: "; },
ATTRMNEMONIC { attrid = 0x0006; txt = "LanguageBaseAttrIDList: "; },
ATTRMNEMONIC { attrid = 0x0007; txt = "TimeToLive: "; },
ATTRMNEMONIC { attrid = 0x0008; txt = "Availability: "; },
ATTRMNEMONIC { attrid = 0x0009; txt = "BluetoothProfileList: "; },
ATTRMNEMONIC { attrid = 0x000A; txt = "DocURL: "; },
ATTRMNEMONIC { attrid = 0x000B; txt = "ClientExe: "; },
ATTRMNEMONIC { attrid = 0x000C; txt = "Icon: "; },
ATTRMNEMONIC { attrid = 0x000D; txt = "IconURL: "; },
ATTRMNEMONIC { attrid = 0x0100; txt = "Name: "; },
ATTRMNEMONIC { attrid = 0x0101; txt = "Desc: "; },
ATTRMNEMONIC { attrid = 0x0102; txt = "Provider: "; }
};
}
STRUCT UUIDASTEXT
{
LONG uuid;
LTEXT txt;
}
// UUIDs are as defined in Bluetooth Assigned Numbers, v1.1
RESOURCE ARRAY r_uuid_as_text
{
items =
{
UUIDASTEXT { uuid = 0x0001; txt = "SDP"; },
UUIDASTEXT { uuid = 0x0003; txt = "RFCOMM"; },
UUIDASTEXT { uuid = 0x0005; txt = "TCS-BIN"; },
UUIDASTEXT { uuid = 0x0100; txt = "L2CAP"; },
UUIDASTEXT { uuid = 0x0009; txt = "IP"; },
UUIDASTEXT { uuid = 0x0002; txt = "UDP"; },
UUIDASTEXT { uuid = 0x0004; txt = "TCP"; },
UUIDASTEXT { uuid = 0x0006; txt = "TCS-AT"; },
UUIDASTEXT { uuid = 0x0008; txt = "OBEX"; },
UUIDASTEXT { uuid = 0x000A; txt = "FTP"; },
UUIDASTEXT { uuid = 0x000C; txt = "HTTP"; },
UUIDASTEXT { uuid = 0x000E; txt = "WSP"; },
UUIDASTEXT { uuid = 0x1000; txt = "ServiceDiscoveryServerServiceClassID"; },
UUIDASTEXT { uuid = 0x1001; txt = "BrowseGroupDescriptorServiceClassID"; },
UUIDASTEXT { uuid = 0x1002; txt = "PublicBrowseGroup"; },
UUIDASTEXT { uuid = 0x1101; txt = "SerialPort"; },
UUIDASTEXT { uuid = 0x1102; txt = "LANAccessUsingPPP"; },
UUIDASTEXT { uuid = 0x1103; txt = "DialupNetworking"; },
UUIDASTEXT { uuid = 0x1104; txt = "IrMCSync"; },
UUIDASTEXT { uuid = 0x1105; txt = "OBEXObjectPush"; },
UUIDASTEXT { uuid = 0x1106; txt = "OBEXFileTransfer"; },
UUIDASTEXT { uuid = 0x1107; txt = "IrMCSyncCommand"; },
UUIDASTEXT { uuid = 0x1108; txt = "Headset"; },
UUIDASTEXT { uuid = 0x1109; txt = "CordlessTelephony"; },
UUIDASTEXT { uuid = 0x1110; txt = "Intercom"; },
UUIDASTEXT { uuid = 0x1111; txt = "Fax"; },
UUIDASTEXT { uuid = 0x1112; txt = "HeadsetAudioGateway"; },
UUIDASTEXT { uuid = 0x1113; txt = "WAP"; },
UUIDASTEXT { uuid = 0x1114; txt = "WAP_CLIENT"; },
UUIDASTEXT { uuid = 0x1200; txt = "PnPInformation"; },
UUIDASTEXT { uuid = 0x1201; txt = "GenericNetworking"; },
UUIDASTEXT { uuid = 0x1202; txt = "GenericFileTransfer"; },
UUIDASTEXT { uuid = 0x1203; txt = "GenericAudio"; },
UUIDASTEXT { uuid = 0x1204; txt = "GenericTelephony"; }
};
}
STRUCT ERRORCODEMESSAGE
{
LONG code;
LTEXT txt;
}
RESOURCE ARRAY r_bluetooth_error_messages
{
items =
{
ERRORCODEMESSAGE { code = -6004; txt = "Page Timeout"; },
ERRORCODEMESSAGE { code = -6013; txt = "Host Rejected (Limited Resources)"; },
ERRORCODEMESSAGE { code = -6014; txt = "Host Rejected (Security Reasons)"; },
ERRORCODEMESSAGE { code = -6015; txt = "Host Rejected (Personal Remote Device)"; }
};
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -