Ejemplo n.º 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();
        }
Ejemplo n.º 2
0
        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);
 }
Ejemplo n.º 4
0
 public MouseKeyHandler()
 {
     this.Subscribe(Hook.GlobalEvents());
     TopicBroker.publishTopic("MOUSE_KEY_EVENT", this);
 }