From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: Patch: "Added missing DCS handling in stkutil and stk" Description
Date: Fri, 03 Sep 2010 16:10:40 -0500 [thread overview]
Message-ID: <4C816450.4020907@gmail.com> (raw)
In-Reply-To: <AANLkTikRo0aM549pBa5G=Muh8oQUcTZc5KQM82G0Yq1o@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1789 bytes --]
Hi Jeevaka,
On 09/02/2010 08:59 PM, Jeevaka Prabu Badrappan wrote:
> Hi Andrzej,
>
>> There are two cases:
>> * Get Inkey/Get Input, where the answer is actual text, in this case
>> the dcs can be determined automatically,
>>
>> * Send USSD where we're sending the "8.15 Text string" but the
>> contents don't actually have to contain a string, it may be any data
>> that the network sends us. So to me it makes more sense to handle
>> this using a separate structure like you did in your original patch,
>> which contains len, dcs and contents.
>
> Yes, I undestand for the Get Inkey/Get Input, dcs is determined
> automatically. Currently, we are providing one function for building
> each data object specificed in 3GPP specification. If we provide a new
> structure, then we need to provide a new function for building the
> text string data object. This will result in having 2
> build_dataobj_text( existing one for handling Get Inkey and Get Input)
> and build_dataobj_ussdtext(new one for handling the section 8.15),
I agree with Andrew completely here.
In effect your modifications to build_dataobj_text are doing this
anyway. You're also forcing the Display Text, Get Input, Get Inkey, etc
objects to care about details of USSD, which they really shouldn't. The
code will be much simpler to follow if we use a different structure for
this particular case.
> which is deviating from the existing ones. If we extend the existing
> structure and add generalised handling which is done now in this
> patch, we won't be deviating from the existing things.
Actually the spec is deviating from the intended purpose of the Text
data object (which should contain Text), so handling it specifically is
actually better.
Regards,
-Denis
next prev parent reply other threads:[~2010-09-03 21:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-02 14:16 Patch: "Added missing DCS handling in stkutil and stk" Description Jeevaka.Badrappan
2010-09-03 0:57 ` andrzej zaborowski
2010-09-03 1:59 ` Jeevaka Prabu Badrappan
2010-09-03 21:10 ` Denis Kenzior [this message]
2010-09-06 9:34 ` Jeevaka.Badrappan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C816450.4020907@gmail.com \
--to=denkenz@gmail.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.