capmt: add webui oscam mode

This commit is contained in:
Mariusz Bialonczyk 2013-12-01 07:52:51 +01:00
parent c7d0335eb1
commit 782cb80f2f
2 changed files with 25 additions and 8 deletions

View file

@ -1023,7 +1023,7 @@ capmt_record_build(capmt_t *capmt)
htsmsg_add_str(e, "camdfilename", capmt->capmt_sockfile ?: "");
htsmsg_add_u32(e, "port", capmt->capmt_port);
htsmsg_add_u32(e, "oscam", !!capmt->capmt_oscam);
htsmsg_add_u32(e, "oscam", capmt->capmt_oscam);
htsmsg_add_str(e, "comment", capmt->capmt_comment ?: "");
return e;

View file

@ -13,6 +13,24 @@ tvheadend.capmteditor = function() {
meta.attr = 'style="color:red;"';
}
}
var selectMode = new Ext.form.ComboBox({
displayField:'name',
valueField: 'res',
value: 2,
mode: 'local',
editable: false,
triggerAction: 'all',
emptyText: 'Select mode...',
store: new Ext.data.SimpleStore({
fields: ['res','name'],
id: 0,
data: [
['2','Recent OSCam (svn rev >= 9063)'],
['1','Older OSCam'],
['0','Wrapper (capmt_ca.so)']
]
})
});
var cm = new Ext.grid.ColumnModel({
defaultSortable: true,
@ -21,7 +39,12 @@ tvheadend.capmteditor = function() {
header : "Enabled",
dataIndex : 'enabled',
width : 60
}, {
}, {
header: "Mode",
dataIndex: 'oscam',
width: 150,
editor: selectMode
}, {
header : "Camd.socket Filename",
dataIndex : 'camdfilename',
width : 200,
@ -43,12 +66,6 @@ tvheadend.capmteditor = function() {
allowBlank : false
})
}, {
xtype: 'checkcolumn',
header : "OSCam mode",
dataIndex : 'oscam',
width : 60
} , {
header : "Comment",
dataIndex : 'comment',
width : 400,