[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to write a phone number ?
From: |
Pawel Kot |
Subject: |
Re: How to write a phone number ? |
Date: |
Tue, 17 Feb 2004 21:13:01 +0100 (CET) |
On Tue, 17 Feb 2004, Reiner Steib wrote:
> On Tue, Feb 17 2004, Pawel Kot wrote:
>
> > On Mon, 16 Feb 2004, Reiner Steib wrote:
> >
> >> The memory_type entries are different:
> >>
> >> - gnokii: "SM"
> >>
> >> - xgnokii: "A"
> >
> > Changed. xgnokii uses now SM and ME instead A and B.
>
> It doesn't work for me. AFAICS, your change (in CListCompareFunc)
> isn't sufficient.
That's right. I have no idea how I overlooked it. Thank you.
> I could fix the xgnokii _export_ with the following patch:
This one applied.
> But _importing_ a gnokii generated file[1] in xgnokii still fails.
> Probably the function ParseLine() in xgnokii_contacts.c, line 2841,
> has to be changed too:
Okay, I'll test it in few minutes (hope xgnokii will work for me).
> ,----
> | /* FIXME: This is very similar to gnokii.c: decodephonebook */
> | static bool ParseLine(gn_phonebook_entry * entry, gint * num, gchar * buf)
> | [...]
> | if (!strncmp(buf, "B;", 2)) {
> | entry->memory_type = GN_MT_ME;
> | buf += 2;
> | } else if (!strncmp(buf, "A;", 2)) {
> | entry->memory_type = GN_MT_SM;
> | buf += 2;
> | } else if (!strncmp(buf, "ME;", 3)) {
> | entry->memory_type = GN_MT_ME;
> | buf += 3;
> | } else if (!strncmp(buf, "SM;", 3)) {
> | entry->memory_type = GN_MT_SM;
> | buf += 3;
> | } else
> | return FALSE;
> `----
>
> But I'm not sure about this. Probably it would be better to use
> decodephonebook() from gnokii.c instead, also for xgnokii.
This looks perfectly OK. Probably somethins wrong few lines below...
thanks again!
pkot
--
mailto:address@hidden
http://www.gnokii.org/
- Re: How to write a phone number ?, Hadmut Danisch, 2004/02/02
- Re: How to write a phone number ?, Hadmut Danisch, 2004/02/02
- Re: How to write a phone number ?, Pawel Kot, 2004/02/05
- Re: How to write a phone number ?, Reiner Steib, 2004/02/05
- Re: How to write a phone number ?, Pawel Kot, 2004/02/15
- Re: How to write a phone number ?, Reiner Steib, 2004/02/16
- Re: How to write a phone number ?, Pawel Kot, 2004/02/16
- Re: How to write a phone number ?, Reiner Steib, 2004/02/17
- Re: How to write a phone number ?,
Pawel Kot <=
- Re: How to write a phone number ?, Pawel Kot, 2004/02/17
- Re: How to write a phone number ?, Hadmut Danisch, 2004/02/17
- Re: How to write a phone number ?, Pawel Kot, 2004/02/17
- Re: How to write a phone number ?, Reiner Steib, 2004/02/18
- Re: How to write a phone number ?, Pawel Kot, 2004/02/18
Re: How to write a phone number ?, Pawel Kot, 2004/02/18