IConnectionCallback_t.cs 829 B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace IACommService4CSharp
  7. {
  8. public enum ConnectionState
  9. {
  10. CONN_STATE_NOTCONNECTED = 0, /* PLC is not connected (init state) */
  11. CONN_STATE_CONNECTED, /* PLC is connected */
  12. CONN_STATE_DISCONNECTED /* Connection is just getting terminated */
  13. }
  14. public abstract class IConnectionCallback_t : IConnectionCallback4CSharp
  15. {
  16. public IConnectionCallback_t()
  17. {
  18. }
  19. ~IConnectionCallback_t()
  20. {
  21. }
  22. //Internal use
  23. public override void StateChange(uint state)
  24. {
  25. StateChange((ConnectionState)state);
  26. }
  27. public abstract void StateChange(ConnectionState state);
  28. }
  29. }