Пример #1
0
        public ActiveStateLog()
        {
            new Configuration().addConfigEntry("dataBaseNameActiveStateLog", "activeStateLog");
            TopicBroker.subscribeTopic("ACTIVITY_STATE_CHANGE_EVENT", this);
            TopicBroker.publishTopic("ACTIVIVE_STATE_LOG_EVENT", this);
            Configuration config = new Configuration();

            logpath = config.getActiveStateLogPath();
        }
        public ActivityWatcher()
        {
            Configuration config = new Configuration();

            config.addConfigEntry("secondsToIdle", 3 * 60 * 1000);
            config.addConfigEntry("secondsToInactive", 5 * 60 * 1000);

            timeToIdleMilliSeconds     = config.secondsToIdle * 1000;
            timeToInactiveMilliSeconds = config.secondsToInactive * 1000;
            TopicBroker.publishTopic("ACTIVITY_STATE_CHANGE_EVENT", this);
        }
 public SystemStateHandler()
 {
     SystemEvents.SessionSwitch += SystemEvents_SessionSwitch;
     TopicBroker.publishTopic("SYSTEM_STATE_EVENT", this);
 }
 public MouseKeyHandler()
 {
     this.Subscribe(Hook.GlobalEvents());
     TopicBroker.publishTopic("MOUSE_KEY_EVENT", this);
 }