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)

gri 2010-05-15 17:17

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

Originally Posted by aspidites (Post 659767)
@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]

Yes, QtMobility would be great but is currently not available. Also VertSMS uses gtk :( Otherwise (if it was c++), I'd be interested in merging the vertical code into my Web2SMS project to make one big flexible sms application for maemo.

The problem is, even if I create python bindings for rtcom-eventlogger, these would not work with PR 1.1 :( Currently the autobuilder links librtcom-eventlogger.so.1, which is PR 1.2.

PS: vertsms currently opens "/home/user/.rtcom-eventlogger/el.db". In PR 1.2 the file is "el-v1.db"!

aspidites 2010-05-15 22:29

Re: work in progress: simple vertical sms app: vertsms
 
[face palm] I know vertsms uses gtk [/face palm]

gri 2010-05-15 22:50

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

Originally Posted by aspidites (Post 660097)
[face palm] I know vertsms uses gtk [/face palm]

I never had any doubt you don't know that. I just wanted to help but it seems you're not interested.

aspidites 2010-05-15 23:06

Re: work in progress: simple vertical sms app: vertsms
 
[rant]
@gri: You'll excuse me if I'm a bit agitated but your "help" seems to be suggesting things to be done that have either a) already been tried (ctypes) or b) aren't possible by your own admission or c) without any proof of how trivial it would be imply that it would be trivial when it isn't. If it were trivial it would have already been done. In the case that it is trivial and something obvious is being missing, patches are welcome.

This seems to have worked for me, qwerty12, and a few others. You have offered...what exactly?

Anyways, I'm sure I'm out of line, particularly because it's not my project, but I grow tired of some people suggesting implementations or features when they themselves haven't even offered any code. Hell, I even submitted a patch to a project I wasn't particularly interested in but seemed to be non-functional the other night (easyplayer).
[/rant]

Perhaps I'll say nothing more in these threads and continue to just submit patches....

gri 2010-05-15 23:55

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

Originally Posted by aspidites (Post 660131)
[rant]
@gri: You'll excuse me if I'm a bit agitated but your "help" seems to be suggesting things to be done that have either a) already been tried (ctypes) or b) aren't possible by your own admission or c) without any proof of how trivial it would be imply that it would be trivial when it isn't. If it were trivial it would have already been done. In the case that it is trivial and something obvious is being missing, patches are welcome.

This seems to have worked for me, qwerty12, and a few others. You have offered...what exactly?

Anyways, I'm sure I'm out of line, particularly because it's not my project, but I grow tired of some people suggesting implementations or features when they themselves haven't even offered any code. Hell, I even submitted a patch to a project I wasn't particularly interested in but seemed to be non-functional the other night (easyplayer).
[/rant]

Perhaps I'll say nothing more in these threads and continue to just submit patches....

I didn't say it is trivial. I just wanted to point out that if it can't be done with pure python, an additional c-written library could be written. (which is not a great solution)
I've also already looked over the PyMaemo sources today to check how much work it would be to write rtcom-eventlogger bindings and submit them to PyMaemo.
But if I understand you right, you suggest me to just write the code without asking anyone here if it is needed/wanted???

PS: Before you're going to palm-face again: I know it currently does it's work with sqlite.

gri 2010-05-16 14:57

Re: work in progress: simple vertical sms app: vertsms
 
So here's my first python code I've ever written (and hopefully the last).

It currently hangs up in the line where the event is added to rtcom-eventlogger but I think this is because I don't understand ctypes. But maybe it helps someone.

The whole code in c is easy, but Python is horrible to me ...

frals 2010-05-16 16:47

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

Originally Posted by gri (Post 660905)
So here's my first python code I've ever written (and hopefully the last).

It currently hangs up in the line where the event is added to rtcom-eventlogger but I think this is because I don't understand ctypes. But maybe it helps someone.

The whole code in c is easy, but Python is horrible to me ...

nice work, ive fixed the missing bits so its inserted in to the db now, enjoy :)

http://www.frals.se/maemo/rtcom.py

robertran88 2010-05-17 16:06

Re: work in progress: simple vertical sms app: vertsms
 
YOU NEED T9 typing 1 letter at a time is useless for the portrait mode!!!!!!!!!

mornage 2010-05-17 16:23

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

Originally Posted by robertran88 (Post 662667)
YOU NEED T9 typing 1 letter at a time is useless for the portrait mode!!!!!!!!!

I'd hardly say it is useless as you clearly can still type. Useless would be not being able to type anything! Maybe you cannot type as fast as you would like, but you can still send SMS in portrait mode which is a great start and much more than you appear to have done! If you READ the announce thread (which is where things like this should go) you will see that this has been suggested and is being worked on.

E: typo

blubbi 2010-05-18 17:40

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

Originally Posted by frals (Post 661038)
nice work, ive fixed the missing bits so its inserted in to the db now, enjoy :)

http://www.frals.se/maemo/rtcom.py

"gri" pointed me to this post and I just assimilated that code to use it with my tool www2sms

What shall I say the rtcom code works, but if the SMS is inserted into conversation, you can read the SMS but you cant open it. When you click on the inserted SMS nothing happens. So no way to delete it.

And in the Contact View of "Conversation" the letter symbol in front of the contacts name shows an exclamation mark in the top right corner.

Is this known? Any suggestions?

[EDIT]
gri just told me to remove the comment from the following line:

Code:

#rtcom.rtcom_el_add_header(el, eventId, 'message-token', str(uuid.uuid4()), None)
this did the trick. Thanks gri!
[/EDIT]


Cheers
Bjoern


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

vBulletin® Version 3.8.8