lists.maemo-developers at jamie-thompson
Sep 6, 2011, 7:24 PM
Post #1 of 3
Just wondering...there's a code dump of this component on Gitorious:
...but AFAICS it appears to be the pre PR1.1 code (it's missing a few of
the API changes and uses the original DB name 'el.db' rather than the
updated 'el-v1.db' name.
The SDK headers all proclaim it's LGPL, as does the older source
dump...so what do I have to do to get the newer code out of Nokia?
...on a related note (and the source of my renewed interest in this this
evening), I've just been looking at the flags field on the events in the DB.
All seems logical enough until you look at some live data.
I have this in my flags table:
> sqlite> select * from flags;
> 1|2|RTCOM_EL_FLAG_CHAT_GROUP|1|Groupchat message (no valid channel_id)
> 2|2|RTCOM_EL_FLAG_CHAT_ROOM|2|MUC/Room message (with valid channel_id)
> 3|2|RTCOM_EL_FLAG_CHAT_OPAQUE|4|Channel identifier is opaque
> 4|2|RTCOM_EL_FLAG_CHAT_OFFLINE|16|Message was received while user was offline
> 5|3|RTCOM_EL_FLAG_SMS_PENDING|1|The SMS is in pending state
> 6|3|RTCOM_EL_FLAG_SMS_TEMPORARY_ERROR|2|The SMS has an error and sending should be retried
> 7|3|RTCOM_EL_FLAG_SMS_PERMANENT_ERROR|4|The SMS has an unrecoverable error
..however, I have column values of 16 & 17 for SMS messages as you can
> 10206|3|11|1312837153|1312837152|0|1|1|17|0|0|ring/tel/ring|<SelfHandle>|<remote#>||Message 1|<gid>
> 10207|3|11|1312837220|1312837189|1312837220|1|0|16|0|0|ring/tel/ring|<SelfHandle>|<remote#>||Reply 1|<gid>
> 10208|3|11|1312837309|1312837309|0|1|1|16|0|0|ring/tel/ring|<SelfHandle>|<remote#>||Message 2|<gid>
...and again here:
> 11124|3|11|1314996498|1314996502|1314996498|1|0|16|0|0|ring/tel/ring|<SelfHandle>|<remote#>||Message 1|<gid>
> 11125|3|11|1314996675|1314996675|0|1|1|16|0|0|ring/tel/ring|<SelfHandle>|<remote#>||reply 1|<gid>
> 11126|3|11|1314996721|1314996725|1314996720|1|0|16|0|0|ring/tel/ring|<SelfHandle>|<remote#>||Message 2|<gid>
...which makes no sense whatsoever. I've looked though the old code and
it doesn't nothing fancy...so all I can conclude is that the
rtcom-messaging-ui is getting confused and setting flags for
RTCOM_EL_FLAG_CHAT_OFFLINE as the user was offline whilst
sending/receiving SMSes. If so...that's really bad, as you kinda have to
be able to rely on the flags being for the right event type for them to
have any meaning!
maemo-developers mailing list
maemo-developers [at] maemo