![]() |
List of IM logged-in contacts?
Hey guys.
Is it possible to get a list of the logged-in contacts that are you using IM? What I'd like to do is to create a Python script which pops up a notification whenever a contact of mine logs in, but where, or how, could I possibly find that "list"? Regards, Marcus |
Re: List of IM logged-in contacts?
open your contacts -> press all contacts at the top -> press availability at the top.
it'll sort your list based on who's online. |
Re: List of IM logged-in contacts?
Obviously that is not what I'm interested in though. I need to "read" the list within my application.
|
Re: List of IM logged-in contacts?
You probably want telepathy-python, see the roster.py example in particular.
|
Re: List of IM logged-in contacts?
I must admit that I've never looked into Telepathy, perhaps you could show me the spot where roster.py outputs the online contacts?
|
Re: List of IM logged-in contacts?
You can use Qt Mobility Contacts API.
|
Re: List of IM logged-in contacts?
Diph: That requires that I loop through all my contacts to check if they are online, correct?
|
Re: List of IM logged-in contacts?
Use QContactManager. I don't know about Python, but in Qt C++ you can get all contacts from manager and then listen contactsChanged() signal which notifys when contact has been modified. Then get presence state from contact.
E: You can also get filtered list of contacts from manager if you want to get only IM contacts. |
Re: List of IM logged-in contacts?
So I guess there is no possible way without Qt? I have not been messing with Qt much.
|
Re: List of IM logged-in contacts?
Never mind, check Imas link.
|
| All times are GMT. The time now is 20:30. |
vBulletin® Version 3.8.8