maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   work in progress: simple vertical sms app: vertsms (https://talk.maemo.org/showthread.php?t=51635)

ossipena 2010-05-13 04:10

Re: work in progress: simple vertical sms app: vertsms
 
just crossed my mind while trying to get holding backspace delete 1 chat per 0.x secs that would threading help with "T9" load times?
If I get that working, threading will be imported to the program so it can be used.

aspidites 2010-05-13 05:34

Re: work in progress: simple vertical sms app: vertsms
 
probably overkill. im going to play with it when i get home

jcompagner 2010-05-13 06:59

Re: work in progress: simple vertical sms app: vertsms
 
if there are still questions how to add the sms you type into conversations, WebTexter application, that sends sms over voip (betamax and the like), adds it to the conversation of the person you target just fine. Without any lag, at least i dont notice anything.

so maybe some can ask the coder of WebTexter? (it is written in C/QT i believe)

aspidites 2010-05-13 09:30

Re: work in progress: simple vertical sms app: vertsms
 
Quote:

Originally Posted by jcompagner (Post 656454)
if there are still questions how to add the sms you type into conversations, WebTexter application, that sends sms over voip (betamax and the like), adds it to the conversation of the person you target just fine. Without any lag, at least i dont notice anything.

so maybe some can ask the coder of WebTexter? (it is written in C/QT i believe)

This has already been implemented days ago, but thanks. ;-)

ossipena 2010-05-15 07:41

Re: work in progress: simple vertical sms app: vertsms
 
Quote:

Originally Posted by jcompagner (Post 656454)
if there are still questions how to add the sms you type into conversations, WebTexter application, that sends sms over voip (betamax and the like), adds it to the conversation of the person you target just fine. Without any lag, at least i dont notice anything.

so maybe some can ask the coder of WebTexter? (it is written in C/QT i believe)

the problem is with python. rtcom must be run with ctypes and the problem is defining ctypes arguments to the ctype functions.

so that probably doesnt help because I've looked many snippets in C that do the trick through already

e: and aspidites the way it is implemented isn't 100% errorproof. so it might get the el.db corrupted. so it would be nice to get official api working to get rid from the responsibility (and be able to get the app to extras eventually...)

ee: I'll forget about api way for now, it seems hopeless. I'll just add checking of database and possible attempts to fix it if it is corrupt. if people start reporting corrupt databases, I must consider the api way again...

zombiegavins 2010-05-15 10:00

Re: work in progress: simple vertical sms app: vertsms
 
how stable is the latest release of vertsms as i would love to start using it but i recently bricked my phone and had to reflash and i am trying to be cautious with what apps i install

gri 2010-05-15 12:49

Re: work in progress: simple vertical sms app: vertsms
 
Quote:

Originally Posted by ossipena (Post 659321)
the problem is with python. rtcom must be run with ctypes and the problem is defining ctypes arguments to the ctype functions.

so that probably doesnt help because I've looked many snippets in C that do the trick through already

e: and aspidites the way it is implemented isn't 100% errorproof. so it might get the el.db corrupted. so it would be nice to get official api working to get rid from the responsibility (and be able to get the app to extras eventually...)

ee: I'll forget about api way for now, it seems hopeless. I'll just add checking of database and possible attempts to fix it if it is corrupt. if people start reporting corrupt databases, I must consider the api way again...

If you can't access it smoothly from python, why not write a common maemo-python-helper lib which provides simple functions for python, written in c/c++?

aspidites 2010-05-15 15:47

Re: work in progress: simple vertical sms app: vertsms
 
@gri: That's what he's been talking about the entire time-- ctypes. The problem is that the rtcom API is obscure at best.

Specifically post #137 of this thread.

gri 2010-05-15 16:06

Re: work in progress: simple vertical sms app: vertsms
 
Quote:

Originally Posted by aspidites (Post 659731)
@gri: That's what he's been talking about the entire time-- ctypes. The problem is that the rtcom API is obscure at best.

Specifically post #137 of this thread.

I think you got me wrong. I meant: If accessing the rtcom-eventlogger with python would result in too much crappy code, it would be better to write a common library which makes python bindings or simple functions for that.

Something like:
insert_outbound_sms(name, number, text)

That would be easy to write in c and prettier to read in python.

aspidites 2010-05-15 16:25

Re: work in progress: simple vertical sms app: vertsms
 
@gri: If I understand you correctly, you are suggesting that we create an abstraction of rtcom in c and wrap that instead of raw rtcom?

Let me know when you're done :-)

[rant]This is why I'm looking forward to the Qt Mobility API [/rant]


All times are GMT. The time now is 11:48.

vBulletin® Version 3.8.8