예제 #1
0
파일: Call.cs 프로젝트: whins/FSAgent
 public Call()
 {
     PropertyChanged += Call_PropertyChanged;
     start_time = DateTime.Now;
     if (duration_timer == null)
         duration_timer = new System.Threading.Timer(DurationTimerFired, null, 1000, 1000);
     if (broker == null)
         broker = Broker.get_instance();
 }
예제 #2
0
파일: Broker.cs 프로젝트: whins/FSAgent
        private Broker()
        {
            _instance = this;
            upgrade_settings();
            Utils.PluginLog("", "");//clear file
            headset_plugin_manager = new HeadsetPluginManager();

            NewEvent += Call.NewFSEvent;
            NewEvent += Account.NewEvent;

            Call.CallStateChanged += CallStateChangedHandler;
            Call.ActiveCallChanged += ActiveCallChanged;

            init_us();
            DelayedFunction.DelayedCall("LoadContactManager", initContactManager, 1000);
        }
예제 #3
0
파일: Broker.cs 프로젝트: whins/FSAgent
 public static Broker get_instance()
 {
     return _instance ?? (_instance = new Broker());
 }