Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 public static Broker get_instance()
 {
     return _instance ?? (_instance = new Broker());
 }