The Following 4 Users Say Thank You to aspidites For This Useful Post: | ||
![]() |
2010-05-08
, 18:48
|
|
Posts: 2,473 |
Thanked: 12,265 times |
Joined on Oct 2009
@ Jerusalem, PS/IL
|
#152
|
![]() |
2010-05-08
, 18:51
|
Posts: 402 |
Thanked: 229 times |
Joined on Nov 2009
@ Missouri, USA
|
#153
|
The Following User Says Thank You to aspidites For This Useful Post: | ||
![]() |
2010-05-08
, 22:22
|
|
Posts: 3,159 |
Thanked: 2,023 times |
Joined on Feb 2008
@ Finland
|
#154
|
RTComElEvent *ev = rtcom_el_event_new (); RTCOM_EL_EVENT_SET_FIELD (ev, service, “RTCOM_EL_SERVICE_SMS”); RTCOM_EL_EVENT_SET_FIELD (ev, event_type, “RTCOM_EL_EVENTTYPE_SMS_INBOUND”); RTCOM_EL_EVENT_SET_FIELD (ev, is_read, TRUE); RTCOM_EL_EVENT_SET_FIELD (ev, local_uid, “ring/tel/ring”); RTCOM_EL_EVENT_SET_FIELD (ev, remote_uid, “+123456”); RTCOM_EL_EVENT_SET_FIELD (ev, start_time, time(NULL)); RTCOM_EL_EVENT_SET_FIELD (ev, remote_ebook_uid, 1); RTCOM_EL_EVENT_SET_FIELD (ev, free_text, “Hello World”); rtcom_el_add_event (el, ev, NULL); rtcom_el_event_free (ev);
dbstring = rtcomm_eventlogger.rtcom_el_new() dbstring.RTCOM_EL_EVENT_SET_FIELD (ev, service, “RTCOM_EL_SERVICE_SMS”) rtcomm_eventlogger.RTCOM_EL_EVENT_SET_FIELD (ev, event_type, “RTCOM_EL_EVENTTYPE_SMS_INBOUND”) rtcomm_eventlogger.RTCOM_EL_EVENT_SET_FIELD (ev, is_read, TRUE) rtcomm_eventlogger.RTCOM_EL_EVENT_SET_FIELD(ev, local_uid, “ring/tel/ring”) rtcomm_eventlogger.RTCOM_EL_EVENT_SET_FIELD(ev, remote_uid, number) rtcomm_eventlogger.RTCOM_EL_EVENT_SET_FIELD (ev, start_time, time(NULL)); rtcomm_eventlogger.RTCOM_EL_EVENT_SET_FIELD (ev, remote_ebook_uid, 1); rtcomm_eventlogger.RTCOM_EL_EVENT_SET_FIELD (ev, free_text, “Hello World”); rtcomm_eventlogger.rtcom_el_add_event (el, dbstring, NULL); rtcomm_eventlogger.rtcom_el_event_free (dbstring);
![]() |
2010-05-08
, 22:36
|
|
Posts: 3,159 |
Thanked: 2,023 times |
Joined on Feb 2008
@ Finland
|
#155
|
So continuing with my idea of modularizing the code, I have extracted the SMS classs and PyGObject class into their own modules inside a package called vertsms, and renamed vertsms.py to main.py. This has the following benefits:
- Since main.py is shorter, it is easier to read*
- It has allowed me to import my config system that I have written for ultimate-smash-friends
- Having the forementioned config system means less things have to be hard-coded, and users have more options
- I've also been able to adapt a plugin system from another project !
The last point is especially interesting albiet unfinished (I'm hoping to be done within the hour). What it means is that people that want to extend vertsms with features but either a) don't want to have to download the source from git, b) are still waiting to have their patches accepted or c) have wishes that only suit them can do so via a plugin.
I'm currently writing a plugin mount called KeyLayout. What does this mean? QWERTY layouts, or simple button arrangements are now possible. If I ever get this bad boy implemented fully, I'll post screenshots with accompanying plugin code (btw, which would just sit in a plugin directory of your choosing).
@ossipena: I can't help but think I'm over-stepping my bounds here. Should I just back off, or would these be welcome changes?
* my subjective opinion -- I do that a lot, huh?
![]() |
2010-05-08
, 22:39
|
Posts: 402 |
Thanked: 229 times |
Joined on Nov 2009
@ Missouri, USA
|
#156
|
![]() |
2010-05-08
, 23:05
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#157
|
how in the hell can I add
RTCOM_EL_EVENT_SET_FIELD
to RTComEl -object with python?!?
#define RTCOM_EL_EVENT_SET_FIELD(ev, FIELD, value) \ do {\ (ev)->_mask |= _is_set_ ## FIELD; \ (ev)->fld_ ## FIELD = value;\ } while(0)
![]() |
2010-05-08
, 23:44
|
|
Posts: 485 |
Thanked: 708 times |
Joined on Feb 2010
@ Galiza
|
#158
|
![]() |
2010-05-10
, 06:52
|
|
Posts: 3,159 |
Thanked: 2,023 times |
Joined on Feb 2008
@ Finland
|
#159
|
why i can't type nothing in the address bar? adding a contact number with the "To" button works fine, but when i want to type the number in it, the app automatically writes in the main box? :-(
The Following User Says Thank You to ossipena For This Useful Post: | ||
![]() |
2010-05-10
, 19:48
|
Posts: 15 |
Thanked: 10 times |
Joined on Apr 2010
@ Saint-Petersburg, Russia
|
#160
|
The Following 4 Users Say Thank You to InoHacker For This Useful Post: | ||
![]() |
Tags |
portrait sms, python |
|
The last point is especially interesting albiet unfinished (I'm hoping to be done within the hour). What it means is that people that want to extend vertsms with features but either a) don't want to have to download the source from git, b) are still waiting to have their patches accepted or c) have wishes that only suit them can do so via a plugin.
I'm currently writing a plugin mount called KeyLayout. What does this mean? QWERTY layouts, or simple button arrangements are now possible. If I ever get this bad boy implemented fully, I'll post screenshots with accompanying plugin code (btw, which would just sit in a plugin directory of your choosing).
@ossipena: I can't help but think I'm over-stepping my bounds here. Should I just back off, or would these be welcome changes?
* my subjective opinion -- I do that a lot, huh?
aspidites | blog | aspidites@inbox.com