void meter_QsysMeterEvent(object sender, QsysEventsArgs e) { if (onMeterChange != null) { onMeterChange(Convert.ToUInt16(e.IntegerValue)); } }
void meter_QsysMeterEvent(object _sender, QsysEventsArgs _e) { if (onMeterChange != null) { onMeterChange(Convert.ToUInt16(_e.NumberValue)); } }
void namedControl_QsysNamedControlEvent(object sender, QsysEventsArgs e) { if (newNamedControlChange != null) { newNamedControlChange(Convert.ToUInt16(e.IntegerValue), e.StringValue); } }
private void fader_QsysFaderEvent(object _sender, QsysEventsArgs _e) { switch (_e.EventID) { case eQscEventIds.GainChange: if (newVolumeChange != null) { if (this.newVolumeChange != null) { this.newVolumeChange((short)(this.gc.VolumeLevel * 10), this.gc.VolumeString); } } if (this.newVolumePositionChange != null) { this.newVolumePositionChange((ushort)this.gc.scale(this.gc.VolumePosition, 0.0, 1.0, 0, 65535)); } break; case eQscEventIds.MuteChange: if (newMuteChange != null) { newMuteChange((ushort)_e.NumberValue); } break; } }
private void namedControl_QsysNamedControlEvent(object _sender, QsysEventsArgs _e) { switch (_e.EventID) { case eQscEventIds.NamedControl: switch (this.nc.ControlType) { case eControlType.isIntegerValue: if (this.newValueIntChange != null) { this.newValueIntChange((ushort)this.nc.ControlValue, this.nc.ControlString); } if (this.newPositionChange != null) { this.newPositionChange((ushort)this.nc.scale(this.nc.ControlPosition, 0.0, 1.0, 0, 65535)); } break; case eControlType.isFloatValue: if (this.newValueFloatChange != null) { this.newValueFloatChange((short)(this.nc.ControlValue * 10), this.nc.ControlString); } if (this.newPositionChange != null) { this.newPositionChange((ushort)this.nc.scale(this.nc.ControlPosition, 0.0, 1.0, 0, 65535)); } break; case eControlType.isButton: if (this.newStateChange != null) { this.newStateChange(Convert.ToUInt16(_e.BooleanValue)); } break; case eControlType.isTrigger: if (newStateChange != null) { this.newStateChange(Convert.ToUInt16(_e.BooleanValue)); } break; case eControlType.isString: if (newStringChange != null) { this.newStringChange(_e.StringValue); } break; default: break; } break; default: break; } }
private void router_QsysDecoderEvent(object sender, QsysEventsArgs e) { if (e.EventID == eQscEventIds.Nv32hDecoderInputChange) { if (newNv32hDecoderInputChange != null) { newNv32hDecoderInputChange(Convert.ToUInt16(e.IntegerValue)); } } }
private void router_QsysRouterEvent(object _sender, QsysEventsArgs _e) { if (_e.EventID == eQscEventIds.RouterInputSelected) { if (newRouterInputChange != null) { this.newRouterInputChange(Convert.ToUInt16(_e.NumberValue)); } } }
private void matrix_QsysMatrixMixerEvent(object _sender, QsysEventsArgs _e) { switch (_e.EventID) { case eQscEventIds.MuteChange: if (newCrosspointMuteChange != null) { newCrosspointMuteChange((ushort)_e.NumberValue); } break; } }
private void fader_QsysFaderEvent(object sender, QsysEventsArgs e) { switch (e.EventID) { case eQscEventIds.NewCommand: break; case eQscEventIds.GainChange: if (newVolumeChange != null) { newVolumeChange((ushort)e.IntegerValue); } break; case eQscEventIds.MuteChange: if (newMuteChange != null) { newMuteChange((ushort)e.IntegerValue); } break; case eQscEventIds.NewMaxGain: break; case eQscEventIds.NewMinGain: break; case eQscEventIds.CameraStreamChange: break; case eQscEventIds.PotsControllerOffHook: break; case eQscEventIds.PotsControllerIsRinging: break; case eQscEventIds.PotsControllerDialString: break; case eQscEventIds.PotsControllerCurrentlyCalling: break; default: break; } }
private void cam_QsysFaderEvent(object _sender, QsysEventsArgs _e) { switch (_e.ControlName) { case "position pan": if (newPositionChange != null) { newPositionChange((SimplSharpString)"pan", (ushort)this.cam.scale(this.cam.PositionPan, -1.0, 1.0, 0, 65535)); } break; case "position tilt": if (newPositionChange != null) { newPositionChange((SimplSharpString)"tilt", (ushort)this.cam.scale(this.cam.PositionTilt, -1.0, 3.0, 0, 65535)); } break; case "position zoom": if (newPositionChange != null) { newPositionChange((SimplSharpString)"zoom", (ushort)this.cam.scale(this.cam.PositionZoom, -1.0, 1.0, 0, 65535)); } break; case "setup_pan_speed": break; case "setup_tilt_speed": break; case "setup_zoom_speed": break; case "aaaa_setup_snapshot_speed": break; case "focus_auto": if (newAutoFocusChange != null) { newAutoFocusChange((ushort)_e.NumberValue); } break; case "toggle_privacy": if (newPrivacyChange != null) { newPrivacyChange((ushort)_e.NumberValue); } break; case "preset_home_load": if (newHomeChange != null) { newHomeChange((ushort)_e.NumberValue); } break; } }
void roomCombiner_QsysRoomCombinerEvent(object sender, QsysEventsArgs e) { switch (e.EventID) { case eQscEventIds.NewCommand: break; case eQscEventIds.GainChange: break; case eQscEventIds.MuteChange: break; case eQscEventIds.NewMaxGain: break; case eQscEventIds.NewMinGain: break; case eQscEventIds.CameraStreamChange: break; case eQscEventIds.PotsControllerOffHook: break; case eQscEventIds.PotsControllerIsRinging: break; case eQscEventIds.PotsControllerDialString: break; case eQscEventIds.PotsControllerCurrentlyCalling: break; case eQscEventIds.RouterInputSelected: break; case eQscEventIds.PotsControllerAutoAnswerChange: break; case eQscEventIds.PotsControllerDND_Change: break; case eQscEventIds.Nv32hDecoderInputChange: break; case eQscEventIds.MeterUpdate: break; case eQscEventIds.NamedControlChange: break; case eQscEventIds.PotsControllerCallStatusChange: break; case eQscEventIds.PotsControllerRecentCallsChange: break; case eQscEventIds.PotsControllerDialing: break; case eQscEventIds.PotsControllerIncomingCall: break; case eQscEventIds.RoomCombinerWallStateChange: if (onWallStateChange != null) { onWallStateChange(Convert.ToUInt16(e.IntegerValue), Convert.ToUInt16(e.BooleanValue)); } break; case eQscEventIds.RoomCombinerCombinedStateChange: if (onRoomCombinedChange != null) { onRoomCombinedChange(Convert.ToUInt16(e.IntegerValue), Convert.ToUInt16(e.BooleanValue)); } break; default: break; } }
void softphone_QsysPotsControllerEvent(object sender, QsysEventsArgs e) { switch (e.EventID) { case eQscEventIds.NewCommand: break; case eQscEventIds.GainChange: break; case eQscEventIds.MuteChange: break; case eQscEventIds.NewMaxGain: break; case eQscEventIds.NewMinGain: break; case eQscEventIds.CameraStreamChange: break; case eQscEventIds.PotsControllerOffHook: if (onOffHookEvent != null) { onOffHookEvent(Convert.ToUInt16(e.IntegerValue)); } break; case eQscEventIds.PotsControllerIsRinging: if (onRingingEvent != null) { onRingingEvent(Convert.ToUInt16(e.IntegerValue)); } break; case eQscEventIds.PotsControllerDialString: if (onDialStringEvent != null) { onDialStringEvent(e.StringValue); } break; case eQscEventIds.PotsControllerCurrentlyCalling: if (onCurrentlyCallingEvent != null) { onCurrentlyCallingEvent(e.StringValue); } break; case eQscEventIds.RouterInputSelected: break; case eQscEventIds.PotsControllerAutoAnswerChange: if (onAutoAnswerEvent != null) { onAutoAnswerEvent(Convert.ToUInt16(e.BooleanValue)); } break; case eQscEventIds.PotsControllerDND_Change: if (onDndEvent != null) { onDndEvent(Convert.ToUInt16(e.BooleanValue)); } break; case eQscEventIds.PotsControllerCallStatusChange: if (onCurrentCallStatusChange != null) { onCurrentCallStatusChange(e.StringValue); } break; case eQscEventIds.PotsControllerRecentCallsChange: if (onRecentCallsEvent != null) { List <string> calls = new List <string>(); foreach (var call in e.ListValue) { fullRecentCallList.Add(call.Text); } if (e.ListValue.Count > 0) { calls.Add(e.ListValue[0].Text); } else { calls.Add(string.Empty); } if (e.ListValue.Count > 1) { calls.Add(e.ListValue[1].Text); } else { calls.Add(string.Empty); } if (e.ListValue.Count > 2) { calls.Add(e.ListValue[2].Text); } else { calls.Add(string.Empty); } if (e.ListValue.Count > 3) { calls.Add(e.ListValue[3].Text); } else { calls.Add(string.Empty); } if (e.ListValue.Count > 4) { calls.Add(e.ListValue[4].Text); } else { calls.Add(string.Empty); } onRecentCallsEvent(calls[0], calls[1], calls[2], calls[3], calls[4]); } if (onRecentCallListEvent != null) { List <string> calls = new List <string>(); foreach (var call in calls) { var encodedBytes = XSig.GetBytes(calls.IndexOf(call), call); onRecentCallListEvent(Encoding.GetEncoding(28591).GetString(encodedBytes, 0, encodedBytes.Length)); } } break; case eQscEventIds.PotsControllerDialing: if (e.BooleanValue && onDialingEvent != null) { onDialingEvent(1); } else if (onDialingEvent != null) { onDialingEvent(0); } break; case eQscEventIds.PotsControllerIncomingCall: if (e.BooleanValue && onIncomingCallEvent != null) { onIncomingCallEvent(1); } else if (onIncomingCallEvent != null) { onIncomingCallEvent(0); } break; default: break; } }
void softphone_QsysPotsControllerEvent(object _sender, QsysEventsArgs _e) { switch (_e.EventID) { case eQscEventIds.NewCommand: break; case eQscEventIds.GainChange: break; case eQscEventIds.MuteChange: break; case eQscEventIds.NewMaxGain: break; case eQscEventIds.NewMinGain: break; case eQscEventIds.CameraStreamChange: break; case eQscEventIds.PotsControllerOffHook: if (onOffHookEvent != null) { onOffHookEvent(Convert.ToUInt16(_e.NumberValue)); } break; case eQscEventIds.PotsControllerIncomingCall: if (onIncomingCallEvent != null) { onIncomingCallEvent(Convert.ToUInt16(_e.BooleanValue)); } break; case eQscEventIds.PotsControllerDialString: if (onDialStringEvent != null) { onDialStringEvent(_e.StringValue); } break; case eQscEventIds.PotsControllerCID: if (_e.NumberValue == 0) //name { if (onCidNameEvent != null) { onCidNameEvent(_e.StringValue); } } if (_e.NumberValue == 1) //number { if (onCidNumberEvent != null) { onCidNumberEvent(_e.StringValue); } } break; case eQscEventIds.RouterInputSelected: break; case eQscEventIds.PotsControllerAutoAnswerChange: if (onAutoAnswerEvent != null) { onAutoAnswerEvent(Convert.ToUInt16(_e.BooleanValue)); } break; case eQscEventIds.PotsControllerDND_Change: if (onDndEvent != null) { onDndEvent(Convert.ToUInt16(_e.BooleanValue)); } break; default: break; } }