Exemplo n.º 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>();
        }
Exemplo n.º 2
0
        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>));
        }
Exemplo n.º 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>));
        }
Exemplo n.º 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
        }
Exemplo n.º 6
0
		public LinphoneService(ServiceManagerBase manager)
		{
            this.currentRegistrationState = LinphoneRegistrationState.LinphoneRegistrationNone;
			this.manager = manager;
            commandQueue = new Queue<LinphoneCommand>();
			preferences = new Preferences();
			_isStarting = false;
			_isStarted = false;
		    _vcardSupported = true;
		}
Exemplo n.º 7
0
 public ContactService(ServiceManagerBase manager)
 {
     this._manager = manager;
     IsLoaded = false;
 }
Exemplo n.º 8
0
 public HistoryService(ServiceManagerBase manager)
 {
     this.manager = manager;
 }
Exemplo n.º 9
0
 public HistoryService(ServiceManagerBase manager)
 {
     this.manager = manager;
 }
Exemplo n.º 10
0
 public SoundService(ServiceManagerBase manager)
 {
     this.manager = manager;
 }
Exemplo n.º 11
0
 public SoundService(ServiceManagerBase manager)
 {
     this.manager = manager;
 }