Active Topics

 


Reply
Thread Tools
Posts: 42 | Thanked: 75 times | Joined on Jan 2010
#1
I've been reading through the mass of documentation for Telepathy. My head hurts and I'm now painfully aware that smart geeks make for terrible documentation writers.

I had some very simple questions:
- how do I listen for incoming SMS ?
- how do I drop or delete a message ?

An hour later, I still don't know. Do I need to implement a Client.Approver interface? Should I just retrieve an existing one (how)? Considering that I'm using Python, can I simply use DBus calls? If yes, which ones?

I couldn't find straight answers to these questions, probably because I'm stupid. Everywhere it says in big letters to USE TELEPATHY but there are very few examples, and the simple ones actually use dbus calls (on objects which often don't support dbus introspection, btw).

So, the next person complaining about developers not adopting Linux technologies will be personally stabbed in the face
 
Posts: 540 | Thanked: 288 times | Joined on Sep 2009
#2
I haven't actually tried to do this but you should be able to simply hook to the DBUS signals for incoming messages (that's what I would try first based on my very cursory look at the APIs)

Edit: Once you figure it out please post some sample code
__________________
  • Live near Helsinki, Finland & interested in electronics ? Check this out.
  • Want anti-virus/firewall ? Read this (and follow the links, also: use the search, there are way too many threads asking the same questions over and over and over again).
  • I'm experimenting with BitCoins, if you want to tip me send some to: 1CAEy7PYptSasN67TiMYM74ELDVGZS6cCB
 
pillar's Avatar
Posts: 154 | Thanked: 124 times | Joined on Mar 2007
#3
Telepathy documentation is poor at best, so it's not just you. I have tried to understand how to do similar things you mentioned and ended up using dbus straight.
 
krk969's Avatar
Posts: 754 | Thanked: 630 times | Joined on Sep 2009 @ London
#4
have a look at TpSession, its a bit more simplified being a wrapper over Telepathy, but doesnt have a lot of the telepathy support yet.
Might help for now, documentation for telepathy, calendar-backed, modest and many more is quite a pain at the moment, seems like they chose to cut paste the header files there !

Its in the best interest of maemo for some action towards documenting.
__________________
Developer of :
Buddy - budget/expense manager ( website )
Showtime - a telly channel listing viewer/reminder ( website )
Travelapp - london underground status/planner ( website )
Batlevel - desktop widget for battery level ( website )

“I hear and I forget. I see and I remember. I do and I understand.”
 
Fargus's Avatar
Posts: 1,217 | Thanked: 446 times | Joined on Oct 2009 @ Bedfordshire, UK
#5
@OP have you found the telepathy Wiki. You should be able to find the starting point for text mesages here.
 

The Following 2 Users Say Thank You to Fargus For This Useful Post:
Posts: 42 | Thanked: 75 times | Joined on Jan 2010
#6
Fargus, yes I have tried going through the wiki, but most of that looks written for people who want to fully implement their own protocol handlers, including that page. I don't. I just want to interact with the existing handlers.
 
Fargus's Avatar
Posts: 1,217 | Thanked: 446 times | Joined on Oct 2009 @ Bedfordshire, UK
#7
Originally Posted by toyg View Post
Fargus, yes I have tried going through the wiki, but most of that looks written for people who want to fully implement their own protocol handlers, including that page. I don't. I just want to interact with the existing handlers.
Then it sounds as though you are going to need to look at the specific implimentation on the device you want to develop for, N900? Communication between modules is via DBUS messages so you should be able to catch this in Python but I don't use Python so can't say for sure. I beleive you should be looking for message showing recvd and check the type. Unfortunately I haven't looked into SMS on the N900 as I have particular interest, maybe someone else knowns the message type in question? Only other suggestion I can make is a small test program to display incoming data and send a text to yourself?

I would suggest that the documentation issue here is not Telepathy but for the custom protocol for SMS on the N900.
 

The Following User Says Thank You to Fargus For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 09:06.