gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A graphical way to show what xgnokii can do with your phone


From: Daniele Forsi
Subject: A graphical way to show what xgnokii can do with your phone
Date: Mon, 09 Jan 2006 22:50:41 +0100
User-agent: Mozilla Thunderbird 1.0.7 (X11/20050923)

I was thinking of a way to decide which phone I should buy if mine breaks.
Sure it must be well supported by gnokii ;-) but at the moment it's not easy to understand which models supports what.

Since xgnokii has a single array to decide what menus it should render, it was easy to write a small C program to build a table with some icons; those interested in seeing this page should go to
http://www.forsi.it/gnokii/xgnokii-features.html
comments are welcome

A table like that would be useful for libgnokii too, but not all drivers use an array (some use a switch statement); and it would be interesting to compare against xgnokii. Maybe it would be better a Perl(?) script called by the Makefile and the results uploaded to gnokii.org at each new release (hint, hint!), but in C you know you are using the same data structures as xgnokii while in Perl you should parse some C-syntax.

What I did is to wrote a very small C program to loop the models[] array using this one as reference

flag_name flags[] = {
        { PM_CALLERGROUP, "Caller group", "kuser.png" },
        { PM_NETMONITOR, "Netmonitor", "display.png" },
        { PM_KEYBOARD, "Keyboard", "keyboard.png" },
        { PM_SMS, "SMS", "kmail.png" },
        { PM_CALENDAR, "Calendar", "date.png" },
        { PM_DTMF, "DTMF", "arts.png" },
        { PM_DATA, "Data", "modem.png" },
        { PM_SPEEDDIAL, "Speed dial", "cache.png" },
        { PM_EXTPBK, "Ext. PBX", "network.png" },
        { PM_AUTHENTICATION, "Authentication", "kgpg.png" },
        { PM_FOLDERS, "Folders", "folder.png" },
        { 0, NULL, NULL }
};

For example these are two lines from xgnokii array

{"6108",  "RH-4", 0 },
{"6110", "NSE-3", PM_CALLERGROUP | PM_CALENDAR | PM_NETMONITOR | PM_KEYBOARD | PM_SMS | PM_DTMF | PM_DATA | PM_SPEEDDIAL | PM_AUTHENTICATION },

and these are the resulting HTML lines (heavily edited)

<tr>
<td>6108<td>RH-4<td><td><td><td><td><td><td><td><td><td><td>
</tr>

<tr>
<td>6110
<td>NSE-3
<td><img src="img/kuser.png">
<td><img src="img/display.png">
<td><img src="img/keyboard.png">
<td><img src="img/kmail.png">
<td><img src="img/date.png">
<td><img src="img/arts.png">
<td><img src="img/modem.png">
<td><img src="img/cache.png">
<td>
<td><img src="img/kgpg.png">
<td>
</tr>

--
Daniele




reply via email to

[Prev in Thread] Current Thread [Next in Thread]