public ItemWatcher() { InitializeComponent(); this.xcapService = Win32ServiceManager.SharedManager.XcapService; this.contactService = Win32ServiceManager.SharedManager.ContactService; this.ValueLoaded += this.ItemWatcher_ValueLoaded; }
public bool Start() { this.screenService = this.manager.ScreenService; this.xcapService = this.manager.XcapService; this.sipService = this.manager.SipService; this.configurationService = this.manager.ConfigurationService; this.stateMonitorService = this.manager.StateMonitorService; this.sipService.onRegistrationEvent += this.sipService_onRegistrationEvent; return(true); }
public bool Start() { this.configurationService = this.manager.ConfigurationService; this.xcapService = this.manager.XcapService; this.contactService = this.manager.ContactService; this.xcapService.onXcapEvent += this.xcapService_onXcapEvent; this.contactService.onContactEvent += this.contactService_onContactEvent; this.Codecs = this.configurationService.Get(Configuration.ConfFolder.MEDIA, Configuration.ConfEntry.CODECS, Configuration.DEFAULT_MEDIA_CODECS); return(true); }
public MainWindow() { InitializeComponent(); aTimer.Interval = 10000; aTimer.Elapsed += aTimer_Elapsed; aTimer.Start(); //Initialize Screen Service this.screenService = Win32ServiceManager.SharedManager.Win32ScreenService; this.screenService.SetTabControl(this.Tab1); //this.screenService.SetProgressLabel(this.labelProgressInfo); Common.MainW = this; // Initialize SIP Service this.sipService = Win32ServiceManager.SharedManager.SipService; this.sipService.onStackEvent += this.sipService_onStackEvent; this.sipService.onRegistrationEvent += this.sipService_onRegistrationEvent; this.sipService.onInviteEvent += this.sipService_onInviteEvent; this.sipService.onMessagingEvent += this.sipService_onMessagingEvent; this.sipService.onSubscriptionEvent += this.sipService_onSubscriptionEvent; this.sipService.onHyperAvailabilityTimedout += this.sipService_onHyperAvailabilityTimedout; // Initialize other Services this.configurationService = Win32ServiceManager.SharedManager.ConfigurationService; this.contactService = Win32ServiceManager.SharedManager.ContactService; this.soundService = Win32ServiceManager.SharedManager.SoundService; this.historyService = Win32ServiceManager.SharedManager.HistoryService; this.stateMonitorService = Win32ServiceManager.SharedManager.StateMonitorService; this.xcapService = Win32ServiceManager.SharedManager.XcapService; this.configurationService.onConfigurationEvent += this.configurationService_onConfigurationEvent; this.xcapService.onXcapEvent += this.xcapService_onXcapEvent; this.stateMonitorService.onStateChangedEvent += this.stateMonitorService_onStateChangedEvent; // Hook Closeable items this.AddHandler(CloseableTabItem.CloseTabEvent, new RoutedEventHandler(this.CloseTab)); this.registrations = new MyObservableCollection <RegistrationInfo>(); this.watchers = new MyObservableCollection <WatcherInfo>(); this.screenService.Show(ScreenType.Authentication); this.Uname.Text = Common.displayName; this.Ye.Text = Common.Uye.ToString("0.00"); }
public MainWindow() { InitializeComponent(); // Initialize Screen Service this.screenService = Win32ServiceManager.SharedManager.Win32ScreenService; this.screenService.SetTabControl(this.tabControl); this.screenService.SetProgressLabel(this.labelProgressInfo); // Initialize SIP Service this.sipService = Win32ServiceManager.SharedManager.SipService; this.sipService.onStackEvent += this.sipService_onStackEvent; this.sipService.onRegistrationEvent += this.sipService_onRegistrationEvent; this.sipService.onInviteEvent += this.sipService_onInviteEvent; this.sipService.onMessagingEvent += this.sipService_onMessagingEvent; this.sipService.onSubscriptionEvent += this.sipService_onSubscriptionEvent; this.sipService.onHyperAvailabilityTimedout += this.sipService_onHyperAvailabilityTimedout; // Initialize other Services this.configurationService = Win32ServiceManager.SharedManager.ConfigurationService; this.contactService = Win32ServiceManager.SharedManager.ContactService; this.soundService = Win32ServiceManager.SharedManager.SoundService; this.historyService = Win32ServiceManager.SharedManager.HistoryService; this.stateMonitorService = Win32ServiceManager.SharedManager.StateMonitorService; this.xcapService = Win32ServiceManager.SharedManager.XcapService; this.configurationService.onConfigurationEvent += this.configurationService_onConfigurationEvent; this.xcapService.onXcapEvent += this.xcapService_onXcapEvent; this.stateMonitorService.onStateChangedEvent += this.stateMonitorService_onStateChangedEvent; // Hook Closeable items this.AddHandler(CloseableTabItem.CloseTabEvent, new RoutedEventHandler(this.CloseTab)); this.registrations = new MyObservableCollection <RegistrationInfo>(); this.watchers = new MyObservableCollection <WatcherInfo>(); // Show Authentication Screen //this.screenService.Show(ScreenType.Contacts); this.screenService.Show(ScreenType.Authentication); }
public bool Start() { this.configurationService = this.manager.ConfigurationService; this.xcapService = this.manager.XcapService; this.contactService = this.manager.ContactService; this.xcapService.onXcapEvent += this.xcapService_onXcapEvent; this.contactService.onContactEvent += this.contactService_onContactEvent; this.Codecs = this.configurationService.Get(Configuration.ConfFolder.MEDIA, Configuration.ConfEntry.CODECS, Configuration.DEFAULT_MEDIA_CODECS); return true; }
public MainWindow() { InitializeComponent(); // Initialize Screen Service this.screenService = Win32ServiceManager.SharedManager.Win32ScreenService; this.screenService.SetTabControl(this.tabControl); this.screenService.SetProgressLabel(this.labelProgressInfo); // Initialize SIP Service this.sipService = Win32ServiceManager.SharedManager.SipService; this.sipService.onStackEvent += this.sipService_onStackEvent; this.sipService.onRegistrationEvent += this.sipService_onRegistrationEvent; this.sipService.onInviteEvent += this.sipService_onInviteEvent; this.sipService.onMessagingEvent += this.sipService_onMessagingEvent; this.sipService.onSubscriptionEvent += this.sipService_onSubscriptionEvent; this.sipService.onHyperAvailabilityTimedout += this.sipService_onHyperAvailabilityTimedout; // Initialize other Services this.configurationService = Win32ServiceManager.SharedManager.ConfigurationService; this.contactService = Win32ServiceManager.SharedManager.ContactService; this.soundService = Win32ServiceManager.SharedManager.SoundService; this.historyService = Win32ServiceManager.SharedManager.HistoryService; this.stateMonitorService = Win32ServiceManager.SharedManager.StateMonitorService; this.xcapService = Win32ServiceManager.SharedManager.XcapService; this.configurationService.onConfigurationEvent += this.configurationService_onConfigurationEvent; this.xcapService.onXcapEvent += this.xcapService_onXcapEvent; this.stateMonitorService.onStateChangedEvent += this.stateMonitorService_onStateChangedEvent; // Hook Closeable items this.AddHandler(CloseableTabItem.CloseTabEvent, new RoutedEventHandler(this.CloseTab)); this.registrations = new MyObservableCollection<RegistrationInfo>(); this.watchers = new MyObservableCollection<WatcherInfo>(); // Show Authentication Screen //this.screenService.Show(ScreenType.Contacts); this.screenService.Show(ScreenType.Authentication); }
public ScreenOptions() { InitializeComponent(); this.configurationService = Win32ServiceManager.SharedManager.ConfigurationService; this.xcapService = Win32ServiceManager.SharedManager.XcapService; this.sipService = Win32ServiceManager.SharedManager.SipService; this.xcapService.onXcapEvent += this.xcapService_onXcapEvent; // // Contacts // this.radioButtonContactsRemote.Checked += (sender, e) => this.groupBoxXCAP.IsEnabled = true; this.radioButtonContactsRemote.Unchecked += (sender, e) => this.groupBoxXCAP.IsEnabled = false; // // Messaging // this.radioButtonMessagingSMSBinary.Checked += (sender, e) => this.textBoxMessagingPSI.IsEnabled = true; this.radioButtonMessagingSMSBinary.Unchecked += (sender, e) => this.textBoxMessagingPSI.IsEnabled = false; // // Presence // this.checkBoxPresenceSubscribe.Checked += (sender, e) => { this.checkBoxPresenceRLS.IsEnabled = true; }; this.checkBoxPresenceSubscribe.Unchecked += (sender, e) => { this.checkBoxPresenceRLS.IsEnabled = false; }; this.checkBoxPresencePublish.Checked += (sender, e) => { this.textBoxPresenceFreeText.IsEnabled = true; this.textBoxPresenceHomePage.IsEnabled = true; this.textBoxHyperAvailabilityTimeout.IsEnabled = true; this.borderAvatar.IsEnabled = true; }; this.checkBoxPresencePublish.Unchecked += (sender, e) => { this.textBoxPresenceFreeText.IsEnabled = false; this.textBoxPresenceHomePage.IsEnabled = false; this.textBoxHyperAvailabilityTimeout.IsEnabled = false; this.borderAvatar.IsEnabled = false; }; this.textBoxPresenceFreeText.TextChanged += (sender, e) => this.presenceChanged = true; this.textBoxPresenceHomePage.TextChanged += (sender, e) => this.presenceChanged = true; // // NATT // this.checkBoxIceEnabled.Checked += (sender, e) => { this.checkBoxStunForICE.IsEnabled = true; this.checkBoxTurnForICE.IsEnabled = true; }; this.checkBoxIceEnabled.Unchecked += (sender, e) => { this.checkBoxStunForICE.IsEnabled = false; this.checkBoxTurnForICE.IsEnabled = false; }; this.radioButtonStunUseThis.Checked += (sender, e) => { this.textBoxStunServerAddress.IsEnabled = true; this.textBoxStunPort.IsEnabled = true; }; this.radioButtonStunUseThis.Unchecked += (sender, e) => { this.textBoxStunServerAddress.IsEnabled = false; this.textBoxStunPort.IsEnabled = false; }; // // Security // this.checkBoxIPSecSecAgreeEnabled.Unchecked += (sender, e) => { this.comboBoxIPSecAlgorithm.IsEnabled = false; this.comboBoxIPSecEAlgorithm.IsEnabled = false; this.comboBoxIPSecMode.IsEnabled = false; this.comboBoxIPSecProtocol.IsEnabled = false; }; this.checkBoxIPSecSecAgreeEnabled.Checked += (sender, e) => { this.comboBoxIPSecAlgorithm.IsEnabled = true; this.comboBoxIPSecEAlgorithm.IsEnabled = true; this.comboBoxIPSecMode.IsEnabled = true; this.comboBoxIPSecProtocol.IsEnabled = true; }; // // QoS // this.checkBoxSessionTimersEnable.Checked += (sender, e) => { this.comboBoxSessionTimerRefreser.IsEnabled = true; this.textBoxSessionTimersTimeout.IsEnabled = true; }; this.checkBoxSessionTimersEnable.Unchecked += (sender, e) => { this.comboBoxSessionTimerRefreser.IsEnabled = false; this.textBoxSessionTimersTimeout.IsEnabled = false; }; this.InitializeGeneral(); this.Initializeidentity(); this.InitializeCodecs(); this.InitializeQoS(); this.InitializeSecurity(); this.LoadConfiguration(); }
public bool Start() { this.screenService = this.manager.ScreenService; #if !WINRT this.xcapService = this.manager.XcapService; this.sipService = this.manager.SipService; #endif this.configurationService = this.manager.ConfigurationService; this.stateMonitorService = this.manager.StateMonitorService; #if !WINRT this.sipService.onRegistrationEvent += this.sipService_onRegistrationEvent; #endif return true; }