Example #1
0
        private XmlProtectionHelper XmlHelper; // cjm-aug17

        #endregion        public string PlainPassword { get; set; }
        public XmlConfigurationService(ServiceManagerBase manager, bool allowSave)
        {
            this.manager           = manager;
            _isStarting            = false;
            _isStarted             = false;
            _saveAllowed           = allowSave;
            this.xmlSerializer     = new XmlSerializer(typeof(MyObservableCollection <XmlSection>));
            this.deferredSaveTimer = new Timer(500)
            {
                AutoReset = false
            };
            this.XmlHelper = new XmlProtectionHelper("config"); // cjm-aug17
            this.sections  = new MyObservableCollection <XmlSection>();
        }
        public ChatsService(ServiceManagerBase mngBase)
        {
            this._serviceManager = mngBase;
            this._contactSvc = _serviceManager.ContactService;
            this._linphoneSvc = _serviceManager.LinphoneService;
            this._contactSvc.ContactAdded += OnContactAdded;
            this._contactSvc.ContactRemoved += OnContactRemoved;
            this._contactSvc.ContactsChanged += OnContactsChanged;
            this._contactSvc.ContactsLoadCompleted += OnContactsLoadCompleted;
            this._chatItems = new ObservableCollection<VATRPChat>();

            this._linphoneSvc.IsComposingReceivedEvent += OnChatMessageComposing;
            this._linphoneSvc.OnChatMessageReceivedEvent += OnChatMessageReceived;
            this._linphoneSvc.OnChatMessageStatusChangedEvent += OnChatStatusChanged;
            IsRTTenabled = true;
        }
        public ProviderService(ServiceManagerBase manager)
        {
            this.manager = manager;
            this.loading = false;
            _isStarted = false;
            this.fileFullPath = this.manager.BuildStoragePath("providers.xml");

            this.deferredSaveTimer = new Timer(500) { AutoReset = false };
            this.deferredSaveTimer.Elapsed += delegate
            {
                this.manager.Dispatcher.Invoke((System.Threading.ThreadStart)delegate
                {
                    this.ImmediateSave();
                }, null);
            };
            this.xmlSerializer = new XmlSerializer(typeof(List<VATRPServiceProvider>));
        }
Example #4
0
        public ProviderService(ServiceManagerBase manager)
        {
            this.manager      = manager;
            this.loading      = false;
            _isStarted        = false;
            this.fileFullPath = this.manager.BuildStoragePath("providers.xml");

            this.deferredSaveTimer = new Timer(500)
            {
                AutoReset = false
            };
            this.deferredSaveTimer.Elapsed += delegate
            {
                this.manager.Dispatcher.Invoke((System.Threading.ThreadStart) delegate
                {
                    this.ImmediateSave();
                }, null);
            };
            this.xmlSerializer = new XmlSerializer(typeof(List <VATRPServiceProvider>));
        }
Example #5
0
        public AccountService(ServiceManagerBase manager)
        {
            this.manager      = manager;
            this.loading      = false;
            _isStarted        = false;
            this.fileFullPath = this.manager.BuildStoragePath("accounts.xml");

            this.deferredSaveTimer = new Timer(1000)
            {
                AutoReset = false
            };
            this.deferredSaveTimer.Elapsed += delegate
            {
                this.manager.Dispatcher.Invoke((System.Threading.ThreadStart) delegate
                {
                    this.ImmediateSave();
                }, null);
            };
            this.xmlSerializer = new XmlSerializer(typeof(List <VATRPAccount>));
            this.XmlHelper     = new XmlProtectionHelper("account"); // cjm-aug17
        }
		public LinphoneService(ServiceManagerBase manager)
		{
            this.currentRegistrationState = LinphoneRegistrationState.LinphoneRegistrationNone;
			this.manager = manager;
            commandQueue = new Queue<LinphoneCommand>();
			preferences = new Preferences();
			_isStarting = false;
			_isStarted = false;
		    _vcardSupported = true;
		}
 public ContactService(ServiceManagerBase manager)
 {
     this._manager = manager;
     IsLoaded = false;
 }
 public HistoryService(ServiceManagerBase manager)
 {
     this.manager = manager;
 }
Example #9
0
 public HistoryService(ServiceManagerBase manager)
 {
     this.manager = manager;
 }
 public SoundService(ServiceManagerBase manager)
 {
     this.manager = manager;
 }
Example #11
0
 public SoundService(ServiceManagerBase manager)
 {
     this.manager = manager;
 }