ICommonEvent.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using Aitex.Core.Util;
  6. namespace Aitex.Core.RT.Event
  7. {
  8. public interface ICommonEvent
  9. {
  10. void WriteEvent(string eventName);
  11. void WriteEvent(string eventName, SerializableDictionary<string, string> dvid);
  12. void WriteEvent(string eventName, SerializableDictionary<string, object> dvid);
  13. void WriteEvent(string module, string eventName, params object[] args);
  14. void WriteEvent(string module, string eventName, SerializableDictionary<string, string> dvid, params object[] args);
  15. void PostNotificationMessage(string message);
  16. void PostPopDialogMessage(EventLevel level, string title, string message);
  17. void PostKickoutMessage(string message);
  18. void PostSoundMessage(string message);
  19. List<EventItem> GetAlarmEvent();
  20. void ClearAlarmEvent();
  21. void ClearAlarmEvent(string name);
  22. List<EventItem> QueryDBEvent(string sql);
  23. void Subscribe(EventItem item);
  24. void PostInfoLog(string module, string message);
  25. void PostWarningLog(string module, string message);
  26. void PostAlarmLog(string module, string message);
  27. void PostAlarmDefineLog(string module, string name, string additionalDescription);
  28. }
  29. }