5 def __init__(self, services, original_contacts, progress_callback):
6 self._services = services
7 self._original_contacts = original_contacts
11 self._pre_process_contacts()
12 self._process_friends()
13 self._process_contacts()
16 def create_contact_for_friend(self, friend):
17 """Creates a contact for the friend:
18 FIXME: if we do it NOW, then that contact can be re-used and mapped to other unmatched friends
19 FIXME: should this really take place here ..."""
24 def register_match(self, contact, friend):
25 """Makes sure that when save is clicked,"""
28 def get_unmatched_friends(self):
32 def get_updated_contacts(self):
36 def get_matched_contacts(self):
40 def _pre_process_contacts(self):
41 for contact in self._original_contacts:
42 for service in self._services:
43 service.pre_process_contact(contact)
46 def _process_friends(self):
47 for service in self._services:
48 service.process_friends()
51 def _process_contacts(self):
52 for contact in self._original_contacts:
53 for service in self._services:
54 service.process_contact(contact)