Esempio n. 1
0
        public virtual void DeInit()
        {
            if (_lib != null)
            {
                _lib.DisableCallbacks();
                _lib.Close();
                _lib.Dispose();
            }

            _connected = false;

            _lib         = null;
            _libConfig   = null;
            _cecConfig   = null;
            _repeatTimer = null;
        }
Esempio n. 2
0
    public CecConfigBase(CecConfigBase copyConf)
    {
      SetDefaults();

      HdmiPort = copyConf.HdmiPort;
      DeviceType = copyConf.DeviceType;
      OsdName = copyConf.OsdName;
      FastScrolling = copyConf.FastScrolling;
      FastScrollingRepeatDelay = copyConf.FastScrollingRepeatDelay;
      FastScrollingRepeatRate = copyConf.FastScrollingRepeatRate;

      RequireDelayBetweenKeys = copyConf.RequireDelayBetweenKeys;
      DelayBetweenKeys = copyConf.DelayBetweenKeys;

      DisableScreensaver = copyConf.DisableScreensaver;
      ExtensiveLogging = copyConf.ExtensiveLogging;

      WakeDevicesOnStart = copyConf.WakeDevicesOnStart;
      ActivateSourceOnStart = copyConf.ActivateSourceOnStart;
      OnStartWakeDevices = copyConf.OnStartWakeDevices;

      StandbyDevicesOnExit = copyConf.StandbyDevicesOnExit;
      InactivateSourceOnExit = copyConf.InactivateSourceOnExit;
      OnExitStandbyDevices = copyConf.OnExitStandbyDevices;

      WakeDevicesOnResume = copyConf.WakeDevicesOnResume;
      ActivateSourceOnResume = copyConf.ActivateSourceOnResume;
      RequireUserInputOnResume = copyConf.RequireUserInputOnResume;
      OnResumeWakeDevices = copyConf.OnResumeWakeDevices;

      StandbyDevicesOnSleep = copyConf.StandbyDevicesOnSleep;
      InactivateSourceOnSleep = copyConf.InactivateSourceOnSleep;
      OnSleepStandbyDevices = copyConf.OnSleepStandbyDevices;

      SendTvPowerOff = copyConf.SendTvPowerOff;
      SendTvPowerOffOnlyIfActiveSource = copyConf.SendTvPowerOffOnlyIfActiveSource;

      RequireActiveSourceWhenSleep = copyConf.RequireActiveSourceWhenSleep;

      ClientVersion = copyConf.ClientVersion;
      ConnectedTo = copyConf.ConnectedTo;

      ControlVolume = copyConf.ControlVolume;
      ForcePhysicalAddress = copyConf.ForcePhysicalAddress;
      PhysicalAddress = copyConf.PhysicalAddress;
      
    }
Esempio n. 3
0
        public CecConfigBase(CecConfigBase copyConf)
        {
            SetDefaults();

            HdmiPort                 = copyConf.HdmiPort;
            DeviceType               = copyConf.DeviceType;
            OsdName                  = copyConf.OsdName;
            FastScrolling            = copyConf.FastScrolling;
            FastScrollingRepeatDelay = copyConf.FastScrollingRepeatDelay;
            FastScrollingRepeatRate  = copyConf.FastScrollingRepeatRate;

            RequireDelayBetweenKeys = copyConf.RequireDelayBetweenKeys;
            DelayBetweenKeys        = copyConf.DelayBetweenKeys;

            DisableScreensaver = copyConf.DisableScreensaver;
            ExtensiveLogging   = copyConf.ExtensiveLogging;

            WakeDevicesOnStart    = copyConf.WakeDevicesOnStart;
            ActivateSourceOnStart = copyConf.ActivateSourceOnStart;
            OnStartWakeDevices    = copyConf.OnStartWakeDevices;

            StandbyDevicesOnExit   = copyConf.StandbyDevicesOnExit;
            InactivateSourceOnExit = copyConf.InactivateSourceOnExit;
            OnExitStandbyDevices   = copyConf.OnExitStandbyDevices;

            WakeDevicesOnResume      = copyConf.WakeDevicesOnResume;
            ActivateSourceOnResume   = copyConf.ActivateSourceOnResume;
            RequireUserInputOnResume = copyConf.RequireUserInputOnResume;
            OnResumeWakeDevices      = copyConf.OnResumeWakeDevices;

            StandbyDevicesOnSleep   = copyConf.StandbyDevicesOnSleep;
            InactivateSourceOnSleep = copyConf.InactivateSourceOnSleep;
            OnSleepStandbyDevices   = copyConf.OnSleepStandbyDevices;

            SendTvPowerOff = copyConf.SendTvPowerOff;
            SendTvPowerOffOnlyIfActiveSource = copyConf.SendTvPowerOffOnlyIfActiveSource;

            RequireActiveSourceWhenSleep = copyConf.RequireActiveSourceWhenSleep;

            ClientVersion = copyConf.ClientVersion;
            ConnectedTo   = copyConf.ConnectedTo;

            ControlVolume        = copyConf.ControlVolume;
            ForcePhysicalAddress = copyConf.ForcePhysicalAddress;
            PhysicalAddress      = copyConf.PhysicalAddress;
        }
Esempio n. 4
0
 public void SetConfig(CecConfigBase conf)
 {
     _cecConfig = conf;
 }
Esempio n. 5
0
    public virtual void DeInit()
    {
      if (_lib != null)
      {
        _lib.DisableCallbacks();
        _lib.Close();
        _lib.Dispose();
      }

      _connected = false;

      _lib = null;
      _libConfig = null;
      _cecConfig = null;
      _repeatTimer = null;
    }
Esempio n. 6
0
 public void SetConfig(CecConfigBase conf)
 {
   _cecConfig = conf;
 }