Go Back   maemo.org - Talk > OS / Platform > Development
 
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
  #171  
Old 2010-05-15, 17:17
gri gri is offline
 
Join Date: Mar 2010
Location: Bavaria, Germany
Posts: 190
Thanks!: 24
Thanked 129 Times in 72 Posts
Send a message via Skype™ to gri
Default Re: work in progress: simple vertical sms app: vertsms

Quote:
Originally Posted by aspidites View Post
@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"!
Reply With Quote
The Following User Says Thank You to gri For This Useful Post:
  #172  
Old 2010-05-15, 22:29
aspidites aspidites is offline
 
Join Date: Nov 2009
Location: Missouri, USA
Posts: 402
Thanks!: 43
Thanked 229 Times in 125 Posts
Default Re: work in progress: simple vertical sms app: vertsms

[face palm] I know vertsms uses gtk [/face palm]
__________________
aspidites | blog | aspidites@inbox.com
Reply With Quote
  #173  
Old 2010-05-15, 22:50
gri gri is offline
 
Join Date: Mar 2010
Location: Bavaria, Germany
Posts: 190
Thanks!: 24
Thanked 129 Times in 72 Posts
Send a message via Skype™ to gri
Default Re: work in progress: simple vertical sms app: vertsms

Quote:
Originally Posted by aspidites View Post
[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.
Reply With Quote
  #174  
Old 2010-05-15, 23:06
aspidites aspidites is offline
 
Join Date: Nov 2009
Location: Missouri, USA
Posts: 402
Thanks!: 43
Thanked 229 Times in 125 Posts
Default 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....
__________________
aspidites | blog | aspidites@inbox.com
Reply With Quote
  #175  
Old 2010-05-15, 23:55
gri gri is offline
 
Join Date: Mar 2010
Location: Bavaria, Germany
Posts: 190
Thanks!: 24
Thanked 129 Times in 72 Posts
Send a message via Skype™ to gri
Default Re: work in progress: simple vertical sms app: vertsms

Quote:
Originally Posted by aspidites View Post
[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.

Last edited by gri; 2010-05-15 at 23:57.
Reply With Quote
The Following User Says Thank You to gri For This Useful Post:
  #176  
Old 2010-05-16, 14:57
gri gri is offline
 
Join Date: Mar 2010
Location: Bavaria, Germany
Posts: 190
Thanks!: 24
Thanked 129 Times in 72 Posts
Send a message via Skype™ to gri
Default 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 ...
Reply With Quote
The Following 4 Users Say Thank You to gri For This Useful Post:
  #177  
Old 2010-05-16, 16:47
frals frals is offline
 
Join Date: Sep 2009
Location: Stockholm, Sweden
Posts: 547
Thanks!: 1,339
Thanked 1,383 Times in 300 Posts
Default Re: work in progress: simple vertical sms app: vertsms

Quote:
Originally Posted by gri View Post
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
__________________

Problem with fMMS? Run in x-terminal: cp /tmp/fmms.log /home/user/MyDocs/
After that you'll see fmms.log in filemanager or when you connect the device to your desktop as a mass storage device.
E-mail the log to me, if you don't have the email address, drop me a PM. Thanks!

fMMS - MMS for your N900
fAPN - GUI for adding a new GPRS APN
If you like this post, don't be shy to thank me -->
Reply With Quote
The Following 9 Users Say Thank You to frals For This Useful Post:
  #178  
Old 2010-05-17, 16:06
robertran88 robertran88 is offline
 
Join Date: May 2010
Posts: 15
Thanks!: 0
Thanked 0 Times in 0 Posts
Default Re: work in progress: simple vertical sms app: vertsms

YOU NEED T9 typing 1 letter at a time is useless for the portrait mode!!!!!!!!!
Reply With Quote
  #179  
Old 2010-05-17, 16:23
mornage mornage is offline
 
Join Date: Apr 2010
Location: Manchester
Posts: 478
Thanks!: 61
Thanked 165 Times in 136 Posts
Default Re: work in progress: simple vertical sms app: vertsms

Quote:
Originally Posted by robertran88 View Post
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
Reply With Quote
  #180  
Old 2010-05-18, 17:40
blubbi's Avatar
blubbi blubbi is offline
 
Join Date: Dec 2009
Location: Germany
Posts: 288
Thanks!: 33
Thanked 113 Times in 87 Posts
Default Re: work in progress: simple vertical sms app: vertsms

Quote:
Originally Posted by frals View Post
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

Last edited by blubbi; 2010-05-18 at 17:55.
Reply With Quote
Reply

Tags
portrait sms, python


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 21:24.