Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
916e542f
Commit
916e542f
authored
Jun 29, 2010
by
Luci Stanescu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved contact matching capabilities
parent
c5af3468
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
33 deletions
+52
-33
contacts.py
blink/contacts.py
+4
-4
mainwindow.py
blink/mainwindow.py
+2
-2
sessions.py
blink/sessions.py
+46
-27
No files found.
blink/contacts.py
View file @
916e542f
...
...
@@ -1124,7 +1124,7 @@ class ContactListView(QListView):
if
not
isinstance
(
contact
,
Contact
):
return
session_manager
=
SessionManager
()
session_manager
.
start_call
(
contact
.
name
,
contact
.
uri
,
account
=
BonjourAccount
()
if
isinstance
(
contact
,
BonjourNeighbour
)
else
None
)
session_manager
.
start_call
(
contact
.
name
,
contact
.
uri
,
contact
=
contact
,
account
=
BonjourAccount
()
if
isinstance
(
contact
,
BonjourNeighbour
)
else
None
)
else
:
super
(
ContactListView
,
self
)
.
keyPressEvent
(
event
)
...
...
@@ -1177,7 +1177,7 @@ class ContactListView(QListView):
def
_AH_StartAudioCall
(
self
):
contact
=
self
.
model
()
.
data
(
self
.
selectionModel
()
.
selectedIndexes
()[
0
])
session_manager
=
SessionManager
()
session_manager
.
start_call
(
contact
.
name
,
contact
.
uri
,
account
=
BonjourAccount
()
if
isinstance
(
contact
,
BonjourNeighbour
)
else
None
)
session_manager
.
start_call
(
contact
.
name
,
contact
.
uri
,
contact
=
contact
,
account
=
BonjourAccount
()
if
isinstance
(
contact
,
BonjourNeighbour
)
else
None
)
def
_AH_StartChatSession
(
self
):
contact
=
self
.
model
()
.
data
(
self
.
selectionModel
()
.
selectedIndexes
()[
0
])
...
...
@@ -1451,7 +1451,7 @@ class ContactSearchListView(QListView):
if
not
isinstance
(
contact
,
Contact
):
return
session_manager
=
SessionManager
()
session_manager
.
start_call
(
contact
.
name
,
contact
.
uri
,
account
=
BonjourAccount
()
if
isinstance
(
contact
,
BonjourNeighbour
)
else
None
)
session_manager
.
start_call
(
contact
.
name
,
contact
.
uri
,
contact
=
contact
,
account
=
BonjourAccount
()
if
isinstance
(
contact
,
BonjourNeighbour
)
else
None
)
else
:
super
(
ContactSearchListView
,
self
)
.
keyPressEvent
(
event
)
...
...
@@ -1474,7 +1474,7 @@ class ContactSearchListView(QListView):
def
_AH_StartAudioCall
(
self
):
contact
=
self
.
model
()
.
data
(
self
.
selectionModel
()
.
selectedIndexes
()[
0
])
session_manager
=
SessionManager
()
session_manager
.
start_call
(
contact
.
name
,
contact
.
uri
,
account
=
BonjourAccount
()
if
isinstance
(
contact
,
BonjourNeighbour
)
else
None
)
session_manager
.
start_call
(
contact
.
name
,
contact
.
uri
,
contact
=
contact
,
account
=
BonjourAccount
()
if
isinstance
(
contact
,
BonjourNeighbour
)
else
None
)
def
_AH_StartChatSession
(
self
):
contact
=
self
.
model
()
.
data
(
self
.
selectionModel
()
.
selectedIndexes
()[
0
])
...
...
blink/mainwindow.py
View file @
916e542f
...
...
@@ -167,7 +167,7 @@ class MainWindow(base_class, ui_class):
address
=
contact
.
uri
or
unicode
(
self
.
search_box
.
text
())
name
=
contact
.
name
or
None
session_manager
=
SessionManager
()
session_manager
.
start_call
(
name
,
address
,
account
=
BonjourAccount
()
if
isinstance
(
contact
,
BonjourNeighbour
)
else
None
)
session_manager
.
start_call
(
name
,
address
,
contact
=
contact
,
account
=
BonjourAccount
()
if
isinstance
(
contact
,
BonjourNeighbour
)
else
None
)
def
_SH_BreakConference
(
self
):
active_session
=
self
.
session_model
.
data
(
self
.
session_list
.
selectionModel
()
.
selectedIndexes
()[
0
])
...
...
@@ -178,7 +178,7 @@ class MainWindow(base_class, ui_class):
if
not
isinstance
(
contact
,
Contact
):
return
session_manager
=
SessionManager
()
session_manager
.
start_call
(
contact
.
name
,
contact
.
uri
,
account
=
BonjourAccount
()
if
isinstance
(
contact
,
BonjourNeighbour
)
else
None
)
session_manager
.
start_call
(
contact
.
name
,
contact
.
uri
,
contact
=
contact
,
account
=
BonjourAccount
()
if
isinstance
(
contact
,
BonjourNeighbour
)
else
None
)
def
_SH_ContactListSelectionChanged
(
self
,
selected
,
deselected
):
account_manager
=
AccountManager
()
...
...
blink/sessions.py
View file @
916e542f
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment