// We need to scan the addresses nitially to fill up last_modified_table // Otherwise, we might miss deletions that occur before any addition private void ScanAddrInitial() { AddressIndexableGenerator generator = new AddressIndexableGenerator(this, kabc_file, last_modified_table, true); // just a dummy scan while (generator.HasNextIndexable()) { generator.GetNextIndexable(); } }
///////////////////////////////////////////////// private void Index() { if (ThisScheduler.ContainsByTag("KAddressBook")) { Logger.Log.Debug("Not adding task for already running Kabc task"); return; } AddressIndexableGenerator generator = new AddressIndexableGenerator(this, kabc_file, last_modified_table, false); Scheduler.Task task; task = NewAddTask(generator); task.Tag = "KAddressBook"; task.Priority = Scheduler.Priority.Delayed; task.SubPriority = 0; ThisScheduler.Add(task); }
///////////////////////////////////////////////// private void Index () { if (ThisScheduler.ContainsByTag ("KAddressBook")) { Logger.Log.Debug ("Not adding task for already running Kabc task"); return; } AddressIndexableGenerator generator = new AddressIndexableGenerator (this, kabc_file, last_modified_table, false); Scheduler.Task task; task = NewAddTask (generator); task.Tag = "KAddressBook"; task.Priority = Scheduler.Priority.Delayed; task.SubPriority = 0; ThisScheduler.Add (task); }
// We need to scan the addresses nitially to fill up last_modified_table // Otherwise, we might miss deletions that occur before any addition private void ScanAddrInitial () { AddressIndexableGenerator generator = new AddressIndexableGenerator (this, kabc_file, last_modified_table, true); // just a dummy scan while (generator.HasNextIndexable ()) generator.GetNextIndexable (); }