Пример #1
0
 def _SH_AudioCallButtonClicked(self):
     list_view = self.contact_list if self.contacts_view.currentWidget() is self.contact_list_panel else self.search_list
     selected_indexes = list_view.selectionModel().selectedIndexes()
     contact = list_view.model().data(selected_indexes[0]) if selected_indexes else Null
     address = contact.uri or unicode(self.search_box.text())
     name = contact.name or None
     session_manager = SessionManager()
     session_manager.start_call(name, address, contact=contact, account=BonjourAccount() if isinstance(contact, BonjourNeighbour) else None)
Пример #2
0
 def _SH_SearchBoxReturnPressed(self):
     address = unicode(self.search_box.text())
     if address:
         session_manager = SessionManager()
         session_manager.start_call(None, address)
Пример #3
0
 def _SH_ContactDoubleClicked(self, index):
     contact = index.model().data(index)
     if not isinstance(contact, Contact):
         return
     session_manager = SessionManager()
     session_manager.start_call(contact.name, contact.uri, contact=contact, account=BonjourAccount() if isinstance(contact, BonjourNeighbour) else None)
Пример #4
0
 def _AH_RedialActionTriggered(self):
     session_manager = SessionManager()
     if session_manager.last_dialed_uri is not None:
         session_manager.start_call(None, unicode(session_manager.last_dialed_uri))