![]() |
2011-02-10
, 09:56
|
Posts: 37 |
Thanked: 18 times |
Joined on Apr 2010
|
#122
|
![]() |
2011-02-10
, 10:04
|
|
Posts: 533 |
Thanked: 1,341 times |
Joined on Dec 2010
@ Italy
|
#123
|
The Following User Says Thank You to sakya For This Useful Post: | ||
![]() |
2011-02-10
, 13:24
|
|
Posts: 533 |
Thanked: 1,341 times |
Joined on Dec 2010
@ Italy
|
#125
|
![]() |
2011-02-10
, 15:58
|
Posts: 53 |
Thanked: 20 times |
Joined on Jan 2010
|
#126
|
<user@t900:~> texts --help Usage: texts [-h|--help] [-n <contact name>] [-d <date of earliest message to be returned>|--latest|--recent] --latest or --recent switch gives last 24 hours' worth
<user@t900:~>$ texts --latest | tail -n 3 2011-02-09 1748 Simon < Running by Tesco on my way home. Anything you guys need? Si :-) 2011-02-09 1801 Simon > vitamins, if it's not too late 2011-02-09 1907 Rikki < Http://innocentdrinks.com/recipearchive
<user@t900:~>$ texts -d 2010-04-01 -n Kiwi | head -n 3 2010-04-02 1507 Kiwi < Are your faces going to be at Claires tomorrow? Looking forward to seeing you if the are. Xx 2010-04-02 1509 Kiwi > didn't know Claire had a thing. kinda want to see Tiny anyway. 2010-04-02 1511 Kiwi < Is Tiny visiting? Bring him to Claires!? How are you? X
![]() |
2011-02-11
, 10:24
|
|
Posts: 533 |
Thanked: 1,341 times |
Joined on Dec 2010
@ Italy
|
#127
|
The Following User Says Thank You to sakya For This Useful Post: | ||
![]() |
2011-02-14
, 13:17
|
|
Posts: 533 |
Thanked: 1,341 times |
Joined on Dec 2010
@ Italy
|
#128
|
bool SmsSender::saveMsgToSentFolder(QString number, QString message) { bool result = false; QString partNumber = number.right(7); RTComElEvent* ev = rtcom_el_event_new(); RTCOM_EL_EVENT_SET_FIELD(ev, service, g_strdup(QString("RTCOM_EL_SERVICE_SMS").toLatin1().data())); RTCOM_EL_EVENT_SET_FIELD(ev, event_type, g_strdup(QString("RTCOM_EL_EVENTTYPE_SMS_OUTBOUND").toLatin1().data())); RTCOM_EL_EVENT_SET_FIELD(ev, start_time, time(NULL)); RTCOM_EL_EVENT_SET_FIELD(ev, end_time, time(NULL)); RTCOM_EL_EVENT_SET_FIELD(ev, is_read, TRUE); RTCOM_EL_EVENT_SET_FIELD(ev, remote_ebook_uid, 0); RTCOM_EL_EVENT_SET_FIELD(ev, local_uid, g_strdup(QString("ring/tel/ring").toLatin1().data())); RTCOM_EL_EVENT_SET_FIELD(ev, local_name, g_strdup(QString("<SelfHandle>").toLatin1().data())); RTCOM_EL_EVENT_SET_FIELD(ev, remote_uid, number.toLatin1().data()); RTCOM_EL_EVENT_SET_FIELD(ev, remote_name, g_strdup(QString("").toLatin1().data())); RTCOM_EL_EVENT_SET_FIELD(ev, group_uid, g_strdup(partNumber.toLatin1().data())); RTCOM_EL_EVENT_SET_FIELD(ev, free_text, g_strdup(message.toUtf8().data())); int id = rtcom_el_add_event(m_El, ev, NULL); if (id >= 0){ QUuid uid = QUuid::createUuid(); rtcom_el_add_header(m_El, id, QString("message-token").toLatin1().data(), uid.toString().toLatin1().data(), NULL); result = true; } rtcom_el_event_free(ev); return result; }
![]() |
2011-02-14
, 14:24
|
Posts: 53 |
Thanked: 20 times |
Joined on Jan 2010
|
#129
|
![]() |
2011-02-28
, 13:46
|
Posts: 11 |
Thanked: 9 times |
Joined on Jul 2010
|
#130
|
ERR: Failed to send at+cmgf command
I can easily add this feature, but is it what you want/need?
To avoid simultaneous database writes I'll add an "IMMEDIATE TRANSACTION", thanks.