Re: Developing virtual keyboard plugin for Maemo 5

2010-02-08 Thread Kimmo Hämäläinen
On Mon, 2010-02-08 at 14:40 +0100, ext kokilakr kr wrote:
> Hello All,
> 
...
> Following documentation
> 
> http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Generic_Platform_Components/Extending_Hildon_Input_Methods
> 
> says hildon_im_ui_button_set_* APIs are supported. But when verified
> in  header file hildon-im-ui.h there aren't any of the APIs starting
> from  hildon_im_ui_button_set_

This documentation seems out-dated. Some of that API has been removed.
Please report a bug for it to get it updated.

-Kimmo

> 
> So does it mean we cannot modify virtual keyboard plugin?
> 
> Or are these APIs moved somewhere else?
> 
> Please help..
> 
> Thanks,
> 
> 
> -- Forwarded message --
> From: kokilakr kr 
> Date: Fri, Feb 5, 2010 at 2:40 PM
> Subject: Change layout of virtual keyboard
> To: maemo-developers@maemo.org
> 
> 
> 
> Hello,
> 
> Following link informs Maemo 5 allows us to modify virtual keyboard
> layout.
> 
> http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Generic_Platform_Components/Extending_Hildon_Input_Methods
> 
> Just wanted to know can we replace the system (default) virtual
> keyboard? (i.e. I want to display my custom keyboard system wide).
> 
> Thanks in advance
> 
> 
> 
> 
> 
> 

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Maemo 5 and hw accelerated X.Org?

2010-02-08 Thread Kuba Irzabek

W dniu 08-12-15 12:40, Quim Gil pisze:

Hi Tuomas,

ext Tuomas Kulve wrote:

I was also interested to see if Nokia has accelerated the X.Org
server with the PowerVR hardware but unfortunately I didn't find the
X.Org server sources (nor a video driver) in the release. I understand
that X server isn't needed for the SDK but neither would be the kernel.

Any plans on releasing the X.Org sources (or actually the video driver)?
It would be interesting to test Maemo stuff with accelerated X server on
existing OMAP3 hardware, like the Beagle Board.


All this is still in development. The plan is to publish the open
components with the beta SDK.

Some of the acceleration graphics code go under components maintained by
Maemo SW in the Kernel and Xorg. We plan to open those.

Many others are directly tied to PowerVR and they come as binaries only.
Decisions on their licensing depend on Imagination, who owns the technology.

By the way, it is also our interest that the community can put their
hands on Maemo 5 using OMAP3 hardware available. Ideas and help are welcome.



Is xserver in Maemo 5 (Nokia N900 OMAP 3) using hardware acceleration 
(SGX)? I cannot find confirmation on that anywhere. I found inforamtion 
that accelerated user interface on omap 3 can be done using qt embedded 
or clutter and not xserver. Where can I find more on that topic?

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


OpenJDK / Sun JRE & MicroEmu (Java on Maemo)

2010-02-08 Thread Gunter Ohrner
(Following a suggestion on the users mailing list, I'm re-posting my 
question here.)

Hi!

I'd like to know if OpenJDK or Sun JRE work reliably and stable on the 
N900 and if MicroEmu works well enough to support some Java ME MIDlets, 
especially DB Railnavigator, a public transport travel planner.

Unfortunately I do not (yet) own an N900 and there does not seem to be a 
full emulator for testing the complete environment with ARM binaries on 
an x86 host.

I already found and read the following ressources, which sound rather 
promising:

* http://wiki.maemo.org/Java
* http://wiki.maemo.org/CamSWL_OpenJDK_on_N900
* http://talk.maemo.org/showthread.php?t=37405
* http://www.microemu.org/

I also tested DB Railnavigator with Java SE 6 and MicroEmu 2.0.4 on my 
x86 Linux Notebook, which seems to work pretty good, except some 
problems with fullscreen mode.

* http://railnavigator.bahn.de/bin/pf/query-p2w.exe/dn?p2wMode=h2g
  (Lower half of page.)

Maybe someone already has some experience with OpenJDK / Sun JRE on his 
N900 and can tell me how usuable it works, and maybe someone could even 
test DB Railnavigator to check if it's starting and running sufficiently 
fast on this platform?

Greetings,

  Gunter

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: how to make a splash screen with Qt

2010-02-08 Thread Timo Härkönen
Hi

2010/2/8 Bernd Stramm 

>  On 08/02/10 14:15, Timo Härkönen wrote:
>
> Hi
>
>
>>  You need to set a window property that tells HD to skip the transitions:
>>
>> static void set_no_transitions (Display *dpy, Window w)
>> {
>>  Atom no_trans;
>>  int one = 1;
>>  no_trans = XInternAtom (dpy, "_HILDON_WM_ACTION_NO_TRANSITIONS", False);
>>  XChangeProperty (dpy, w, no_trans,
>>   XA_CARDINAL, 32, PropModeReplace,
>>   (unsigned char *)&one, 1);
>> }
>>
>
> Thanks for the hint. I updated the wiki page with this information.
>
> -Timo
>
>   Isn't this fixed in Qt 4.6? It seems to work on the FREMANTLE_X86. Also
> says that a few centimers down on the wiki.
>
> Yes but the current stable Qt for Maemo is still 4.5. Qt 4.6 is only
> available from extras-devel currently. Anyway it's good information to
> people working with 4.5
>

-Timo

>
>> --Kimmo
>>
>> >
>> > thank you in advance;
>> >
>> > ___
>> > maemo-developers mailing list
>> > maemo-developers@maemo.org
>> > https://lists.maemo.org/mailman/listinfo/maemo-developers
>>
>> ___
>> maemo-developers mailing list
>> maemo-developers@maemo.org
>> https://lists.maemo.org/mailman/listinfo/maemo-developers
>>
>
>
>
> ___
> maemo-developers mailing 
> listmaemo-develop...@maemo.orghttps://lists.maemo.org/mailman/listinfo/maemo-developers
>
>
>
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
>
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: how to make a splash screen with Qt

2010-02-08 Thread Bernd Stramm

On 08/02/10 14:15, Timo Härkönen wrote:

Hi


You need to set a window property that tells HD to skip the
transitions:

static void set_no_transitions (Display *dpy, Window w)
{
 Atom no_trans;
 int one = 1;
 no_trans = XInternAtom (dpy, "_HILDON_WM_ACTION_NO_TRANSITIONS",
False);
 XChangeProperty (dpy, w, no_trans,
  XA_CARDINAL, 32, PropModeReplace,
  (unsigned char *)&one, 1);
}


Thanks for the hint. I updated the wiki page with this information.

-Timo

Isn't this fixed in Qt 4.6? It seems to work on the FREMANTLE_X86. Also 
says that a few centimers down on the wiki.




--Kimmo

>
> thank you in advance;
>
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org 
> https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org 
https://lists.maemo.org/mailman/listinfo/maemo-developers




___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers
   


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Testing apps

2010-02-08 Thread Thomas Waelti
Virtual machines :-)
I have one in which I develop and one for testing. The latter has a filebackup 
of the full machine so I can just dump it back to the initial state if needed.
-Tom

>
> Ive built a command-line app. I can bring up the Maemo UI and run the tool
> from Terminal just fine (from inside its source folder), however related
> utilities that come with the tool dont work - Im assuming I need to do a
> make install to fully test it.
>
> I could install it but then Im 'polluting' my dev environment with
> something that may not work and may be hard to remove all traces of
> correctly. What's a good strategy to test then? Should I make a package
> and use the package manager to install, test and uninstall? How do
> developers test apps like this?
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


RE: Does the get_service_provider_name method only return a nameif the SIM is a USIM?

2010-02-08 Thread Aldon Hynes
Faheem,

   Brilliant.  This is really helpful.  I look forward to exploring this
more.

Aldon

-Original Message-
From: maemo-developers-boun...@maemo.org
[mailto:maemo-developers-boun...@maemo.org]on Behalf Of Faheem Pervez
Sent: Monday, February 08, 2010 1:33 PM
To: Dawid Lorenz
Cc: maemo-developers@maemo.org
Subject: Re: Does the get_service_provider_name method only return a
nameif the SIM is a USIM?


CID is easy: dbus-send --system --print-reply --type=method_call
--dest=com.nokia.phone.net /com/nokia/phone/net
Phone.Net.get_registration_status

The following snippet, from
http://www.bleb.org/software/maemo/telephony-maemo.c, explains the
return values:
DBUS_TYPE_BYTE, &status,
DBUS_TYPE_UINT16, &lac,
DBUS_TYPE_UINT32, &cell_id,
DBUS_TYPE_UINT32, &operator_code,
DBUS_TYPE_UINT32, &country_code,
DBUS_TYPE_BYTE, &network_type,
DBUS_TYPE_BYTE, &supported_services,
DBUS_TYPE_INT32, &net_err,

--

Anyway, thanks to all for the answers. I'll be lazy and just listen
for the "operator_name_change" signal; it's easier then trying to
determine if the SIM card has an SPN set and using "get_operator_name"
with the MNC and MCC determined by doing "get_registration_status" -
not worth it for something that just reads /etc/operator_settings. :)

Best Regards,
Faheem

On Mon, Feb 8, 2010 at 6:07 PM, Dawid Lorenz  wrote:
> Anyway, since I've seen it is possible to issue dbus-send commands to get
> current network name, I thought there maybe are similar methods to get
> LAC/CID etc.
>
> --
> Dawid 'evad' Lorenz * http://adl.pl
>
> null://I would love to change the world, but they won't give me the source
> code
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
>
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: how to make a splash screen with Qt

2010-02-08 Thread Timo Härkönen
Hi


> You need to set a window property that tells HD to skip the transitions:
>
> static void set_no_transitions (Display *dpy, Window w)
> {
>  Atom no_trans;
>  int one = 1;
>  no_trans = XInternAtom (dpy, "_HILDON_WM_ACTION_NO_TRANSITIONS", False);
>  XChangeProperty (dpy, w, no_trans,
>   XA_CARDINAL, 32, PropModeReplace,
>   (unsigned char *)&one, 1);
> }
>

Thanks for the hint. I updated the wiki page with this information.

-Timo


> --Kimmo
>
> >
> > thank you in advance;
> >
> > ___
> > maemo-developers mailing list
> > maemo-developers@maemo.org
> > https://lists.maemo.org/mailman/listinfo/maemo-developers
>
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Does the get_service_provider_name method only return a nameif the SIM is a USIM?

2010-02-08 Thread Faheem Pervez
CID is easy: dbus-send --system --print-reply --type=method_call
--dest=com.nokia.phone.net /com/nokia/phone/net
Phone.Net.get_registration_status

The following snippet, from
http://www.bleb.org/software/maemo/telephony-maemo.c, explains the
return values:
DBUS_TYPE_BYTE, &status,
DBUS_TYPE_UINT16, &lac,
DBUS_TYPE_UINT32, &cell_id,
DBUS_TYPE_UINT32, &operator_code,
DBUS_TYPE_UINT32, &country_code,
DBUS_TYPE_BYTE, &network_type,
DBUS_TYPE_BYTE, &supported_services,
DBUS_TYPE_INT32, &net_err,

--

Anyway, thanks to all for the answers. I'll be lazy and just listen
for the "operator_name_change" signal; it's easier then trying to
determine if the SIM card has an SPN set and using "get_operator_name"
with the MNC and MCC determined by doing "get_registration_status" -
not worth it for something that just reads /etc/operator_settings. :)

Best Regards,
Faheem

On Mon, Feb 8, 2010 at 6:07 PM, Dawid Lorenz  wrote:
> Anyway, since I've seen it is possible to issue dbus-send commands to get
> current network name, I thought there maybe are similar methods to get
> LAC/CID etc.
>
> --
> Dawid 'evad' Lorenz * http://adl.pl
>
> null://I would love to change the world, but they won't give me the source
> code
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
>
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Packaging questions

2010-02-08 Thread Ajai Khattri
On Mon, 8 Feb 2010, Jeremiah Foster wrote:

> This means you do not have an original tarball of your package that has the 
> suffix orig.tar.gz.
> 
> Take a look at the debian documentation here which should help: 
> http://www.debian.org/doc/maint-guide/ch-first.en.html#s-dh_make

Hmmm.. the docs says:

"After this execution of dh_make, a copy of the upstream tarball is 
created as gentoo_0.9.12.orig.tar.gz in the parent directory to 
accommodate the creation of the non-native Debian source package with the 
diff.gz."

Which seems to imply that dh_make creates the orig tarball...

UPDATE: I used the -f flag to point to the original tarball "outside" the 
build directory and it seems to have worked.



-- 
Aj.

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Packaging questions

2010-02-08 Thread Ajai Khattri
On Mon, 8 Feb 2010, Jeremiah Foster wrote:

> > Im trying to create my first Maemo package
> 
> Awesome! :)

Yes, Maemo needs more developers and more software! :-)

> That depends, but for the current situation, I would say no. Firstly, 
> creating multiple binary packages is harder than a single binary, though 
> not by much. I recommend you start out with just a single binary if you 
> can.

OK, but Im curious: what would be an example of a package with multiple 
binaries?

> > 2) I got an error saying it could not find package.orig.tar.gz - what does 
> > that mean?
> 
> This means you do not have an original tarball of your package that has the 
> suffix orig.tar.gz.
> 
> Take a look at the debian documentation here which should help: 
> http://www.debian.org/doc/maint-guide/ch-first.en.html#s-dh_make

So, to clarify, I need to have a tarball of the original source inside the 
untarred tarball build directory? :-)

> You have to specify the license the software is under yourself. From the man 
> page for dh_make:
> 
> "OPTIONS
>-c, --copyright 
>   Usetype  in  copyright file.   can be 
> gpl, lgpl, artistic or bsd.  If this field is not specified the copyright 
> file has a space to fill in which sort of license is
>   used. The field is case-insensitive so -c GPL works as well as 
> -c gpl."

I was following the Maemo docs which dont mention anything about licenses. 

Maybe there ought to be a link to the dh_make man page from there?

> You may want to review this document: http://www.debian.org/doc/maint-guide/

Thanks for this and the other links.



-- 
Aj.

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Does the get_service_provider_name method only return a nameif the SIM is a USIM?

2010-02-08 Thread Dawid Lorenz
On 8 February 2010 17:55, Aki Niemi  wrote:

> > If I could join (aka steal ;) this thread, I'd also be interested in
> > any methods that would return network registration specific details,
> > such as LAC, CID, network type (ie. GSM/EDGE/WCDMA/HSPA) etc.
>
> Then, may I suggest you take a look at oFono [1] instead? oFono is a
> completely open source telephony stack, which will at some point be
> replacing the current Maemo stack. It's already available in
> extras-devel.


Thanks, I've been looking at oFono briefly over the weekend and I've seen
some bits in their sources that could be potentially interesting to me.
However, as the level of my C and/or Maemo general development comprehension
is very low, I can't get my head around this too quickly -- just yet. ;) I
am thinking to get into Maemo development using Python sometime soon'ish, as
Python seems to be closest to my current role of LAMP web application
developer.

Anyway, since I've seen it is possible to issue dbus-send commands to get
current network name, I thought there maybe are similar methods to get
LAC/CID etc.

-- 
Dawid 'evad' Lorenz * http://adl.pl

null://I would love to change the world, but they won't give me the source
code
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Does the get_service_provider_name method only return a nameif the SIM is a USIM?

2010-02-08 Thread Aki Niemi
ma, 2010-02-08 kello 18:40 +0100, ext Dawid Lorenz kirjoitti:
> If I could join (aka steal ;) this thread, I'd also be interested in
> any methods that would return network registration specific details,
> such as LAC, CID, network type (ie. GSM/EDGE/WCDMA/HSPA) etc.

Then, may I suggest you take a look at oFono [1] instead? oFono is a
completely open source telephony stack, which will at some point be
replacing the current Maemo stack. It's already available in
extras-devel.

Cheers,
Aki

[1] http://ofono.org

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


RE: Does the get_service_provider_name method only return a nameif the SIM is a USIM?

2010-02-08 Thread Aldon Hynes
Aki, et al., 

   I am trying to understand and share as much as I can about how the Nokia 
N900 works so that we can all work together as developers.  Personally, I don't 
have any immediate need to determine the carrier for my own coding.  However, I 
the better I understand what is available, the better ideas I can come up with 
for applications.

   As an example, there have been talk about being able to determine if one is 
roaming or using ones regular carrier.  That might be useful in some 
applications.  Could I build applications that meet country specific legal 
requirements based on MCC?  There are probably a whole bunch of other ideas 
that people would have if they knew what values are really available and how 
easiest to access them.

   Dawid's response illustrates for examples of the sort of stuff that I 
imagine people would be interested in.

Aldon

-Original Message-
From: Aki Niemi [mailto:aki.ni...@nokia.com]
Sent: Monday, February 08, 2010 12:35 PM
To: ext Aldon Hynes
Cc: maemo-developers@maemo.org
Subject: RE: Does the get_service_provider_name method only return a
nameif the SIM is a USIM?


ma, 2010-02-08 kello 16:50 +0100, ext Aldon Hynes kirjoitti:
> I realize that they are mostly available over D-Bus, but not
> officially documented or supported.  That is part of the reason I sent
> a message to this list in case any developers, or even folks at Nokia
> could unofficially share information that other developers might find
> helpful.

Sure, what is it that you're trying to do exactly?

Cheers,
Aki

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Does the get_service_provider_name method only return a nameif the SIM is a USIM?

2010-02-08 Thread Dawid Lorenz
On 8 February 2010 17:35, Aki Niemi  wrote:

> > I realize that they are mostly available over D-Bus, but not
> > officially documented or supported.  That is part of the reason I sent
> > a message to this list in case any developers, or even folks at Nokia
> > could unofficially share information that other developers might find
> > helpful.
>
> Sure, what is it that you're trying to do exactly?


If I could join (aka steal ;) this thread, I'd also be interested in any
methods that would return network registration specific details, such as
LAC, CID, network type (ie. GSM/EDGE/WCDMA/HSPA) etc. Basically, what I'm
looking forward to see and/or implement at some point in future is
equivalent of CellTrack application for Symbian, used to keep track of
cellular base stations. See: http://www.afischer-online.de/sos/celltrack/

-- 
Dawid 'evad' Lorenz * http://adl.pl

null://there is no place like 127.0.0.1
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


RE: Does the get_service_provider_name method only return a nameif the SIM is a USIM?

2010-02-08 Thread Aki Niemi
ma, 2010-02-08 kello 16:50 +0100, ext Aldon Hynes kirjoitti:
> I realize that they are mostly available over D-Bus, but not
> officially documented or supported.  That is part of the reason I sent
> a message to this list in case any developers, or even folks at Nokia
> could unofficially share information that other developers might find
> helpful.

Sure, what is it that you're trying to do exactly?

Cheers,
Aki

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Does the get_service_provider_name method only return a name if the SIM is a USIM?

2010-02-08 Thread Aki Niemi
ma, 2010-02-08 kello 08:09 +0100, ext Hartti Suomela kirjoitti:

> In short, the digits for both MNC and MCC are stored in 4 bit fields
> in the resulting 3 bytes
>      
> mcc2 mcc1 mnc3 mcc3 mnc2 mnc1

Note that the MNC can be either 2 or 3 digits long. In the former case,
it's padded with 0xF.

Cheers,
Aki


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Packaging questions

2010-02-08 Thread Jeremiah Foster
Hi Ajai!

On Feb 8, 2010, at 6:19 AM, Ajai Khattri wrote:
> 
> Im trying to create my first Maemo package

Awesome! :)

> and I had a few questions:
> 
> 1) This package has a main binary, but also has additional 
> binaries/scripts and library files, so do I select 'Multiple binaries' 
> when running dh_make ?

That depends, but for the current situation, I would say no. Firstly, creating 
multiple binary packages is harder than a single binary, though not by much. I 
recommend you start out with just a single binary if you can.
> 
> 2) I got an error saying it could not find package.orig.tar.gz - what does 
> that mean?

This means you do not have an original tarball of your package that has the 
suffix orig.tar.gz.

Take a look at the debian documentation here which should help: 
http://www.debian.org/doc/maint-guide/ch-first.en.html#s-dh_make

> 
> 3) The summary dh_make printed said the license was 'blank' ?

You have to specify the license the software is under yourself. From the man 
page for dh_make:

"OPTIONS
   -c, --copyright 
  Usetype  in  copyright file.   can be gpl, 
lgpl, artistic or bsd.  If this field is not specified the copyright file has a 
space to fill in which sort of license is
  used. The field is case-insensitive so -c GPL works as well as -c 
gpl."



You may want to review this document: http://www.debian.org/doc/maint-guide/
> 
> 
> 
> -- 
> Aj.
> 
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
> 

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Ovi Store and VAT

2010-02-08 Thread Jeremiah Foster
I think this is off-topic for this list Benoit. You may want to contact OVI 
directly.

Jeremiah

On Feb 5, 2010, at 8:10 AM, Benoît HERVIER wrote:

> Hi, 
> 
> I've try to register myself on ovistore but my enterprise didn't have a vat 
> number as it is exempted from vat (European VAT not applicable, net prices 
> (Art. 293B CGI)). 
> 
> Did you think it will be availaible in short time for company where vat 
> didn't apply or does i should stop to hope and publish my games as a 
> shareware on non-free extras and manage paiement myself on my website ? 
> 
> regards,
> 
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


RE: Does the get_service_provider_name method only return a nameif the SIM is a USIM?

2010-02-08 Thread Aldon Hynes
Aki, et al.,

   I realize that they are mostly available over D-Bus, but not officially 
documented or supported.  That is part of the reason I sent a message to this 
list in case any developers, or even folks at Nokia could unofficially share 
information that other developers might find helpful.

Anyone?

Aldon

-Original Message-
From: Aki Niemi [mailto:aki.ni...@nokia.com]
Sent: Monday, February 08, 2010 10:43 AM
To: ext Aldon Hynes
Cc: maemo-developers@maemo.org
Subject: RE: Does the get_service_provider_name method only return a
nameif the SIM is a USIM?


ma, 2010-02-08 kello 14:27 +0100, ext Aldon Hynes kirjoitti:
> Is there documentation somewhere about appropriate methods, either Dbus,
> sysfs, API calls, etc. for retrieving these various values?  Likewise, how
> this would work with Alternative Line Service?

These are mostly available over D-Bus, but the interfaces are not
officially documented nor is there any support available. Not sure about
the ALS part; I assume ALS is orthogonal to network names, but might be
wrong here.

Cheers,
Aki

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


RE: Does the get_service_provider_name method only return a nameif the SIM is a USIM?

2010-02-08 Thread Aki Niemi
ma, 2010-02-08 kello 14:27 +0100, ext Aldon Hynes kirjoitti:
> Is there documentation somewhere about appropriate methods, either Dbus,
> sysfs, API calls, etc. for retrieving these various values?  Likewise, how
> this would work with Alternative Line Service?

These are mostly available over D-Bus, but the interfaces are not
officially documented nor is there any support available. Not sure about
the ALS part; I assume ALS is orthogonal to network names, but might be
wrong here.

Cheers,
Aki

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: [New Developer]: Questions - Python Packaging / Free or Non-Free / Software Licensing

2010-02-08 Thread Sanjeev (EIPI)
On 2/8/10, Andrew Flegg  wrote:
> On Mon, Feb 8, 2010 at 00:18, Sanjeev (EIPI)
>  wrote:
>>
>> As I said, I am new at this, so I did not see some of these issues before
>> starting development.  The points you make are quite valid, and I did not
>> realize that python was distributed as source.  That may sound obvious to
>> many, but I am not a s/w person at all.
>>
>> I wonder how independant developers are making use of this API then?  It
>> confuses me greatly.
>
> In my opinion, you should go to "best efforts"; and here are some
> suggestions to try and keep the key (slightly) hidden:
>
> 1) non-free package
> ~~~
>   * Create a non-free (i.e. binary) package which contains your API
> keys encrypted in some way (perhaps just XORing the values) and
> a small C program which decrypts them.
>
>   * Create your Python package as normal, with a `Depends' on the
> non-free package and call the small C program from within your
> app.
>
> It's not "real" security, but that should be OK. The biggest problem I
> can see is that the C program would then be callable by any other
> developer.
>
> 2) Retrieve keys at install time
> 
>
>   * Create your Python package as normal, but ensure it does not
> contain the keys.
>
>   * In your package's postinst you can be fairly sure there's a
> network connection, so retrive the keys from a known URL.
>
>   * You could even have it so that the URL is a small little PHP
> script which has a list of MD5s for the main Python file and
> that this is sent as a query parameter. When a new version is
> released you get the package from Extras and add the MD5 to
> the PHP file. You could even XOR things with the MD5 sent so
> that you get an extra layer of obscurity.
>
>> FWIW - the application I made provides a simple UI so that a user
>> can enter an airline, and flight number.  The app then uses the
>> flightstats.com API to search for the flight's current status.
>> The app provides a list of airlines so that the user does not have
>> to know the airline code.
>
> Sounds excellent.
>
> It's worth bearing in mind that almost every app using this API, on
> every platform will be able to have the keys retrieved unless there is
> an in-built security mechanism such as that being developed for Maemo
> 6. However, even then, distribution mechanisms could be the weakest
> link.
>
> At some point, flightstats.com will have have to trust a device
> (whether N900, desktop, Nexus One or jailbroken iPhone) which could be
> in a malicious user's hands.
>
> Hope that helps,
>
> Andrew
>
> --
> Andrew Flegg -- mailto:and...@bleb.org  |  http://www.bleb.org/
>

Thank you for the ideas, Andrew.  I will have to think about the best
method that I can provide obscurity that is within my means at the
moment. Retrieving the keys at install time sounds like a good
candidate.

I have packaging headaches right now that I need to resolvle.  Once
those are squared away, I ll tackle the key obscurity issue.

Thanks again!

Sanjeev
-- 
EIPI
Mobile Tablets! Blog: http://mobiletablets.blogspot.com
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Maemo Fremantle Documentation Toolchain and Baseline PreFinal versions released for comments

2010-02-08 Thread Jarmo.Tikka
Hi,

The Maemo Documentation Infrastructure project has reached PreFinal release for
the Maemo Documenation Toolchain development. This release is done to allow
Maemo communtiy to review and give feedback for the toolchain.

Also Maemo Documentation Baseline for Fremantle that uses Documentation
Toolchain  has been released as PreFinal for comments.

This Fremantle Documentation Baseline includes following documents:
-   Maemo Documentation Guidelines
-   Maemo PC Connectivity Tutorial
-   Maemo Eclipse Tutorial
-   Maemo Flasher-3.5 Tutorial
-   Maemo SDK Virtual Image Tutorial
-   Maemo For Symbian Developers Guide

Maemo Documentation Toolchain and Baseline delivery archives can be downloaded
from official Maemo Development Environment Downloads page here:
http://tablets-dev.nokia.com/maemo-dev-env-downloads.php

Cheers,
//Jarmo

***

MAEMO DOCUMENTATION TOOLCHAIN DETAILS

* Toolchain version: Maemo Documentation Toolchain version 0.2.4 - PreFinal
* Release date: 08.02.2010
* Technologies supported: LaTeX, PDF, HTML, MediaWiki, Midgard
* Download link: http://tablets-dev.nokia.com/maemo-dev-env-downloads.php

Maemo base releases supported

* Maemo Fremantle 5.x releases
* Maemo Diablo 4.1.2 releases

Linux distributions supported

* Ubuntu 9.04 Janunty Jackalope (and later)
* Debian 5.0 Lenny (and later)


FILES INCLUDED TO MAEMO DOCUMENTATION TOOLCHAIN DELIVERY

Maemo specific packages:
* README - readme file for the Maemo documentation toolchain
* maemodoc-toolchain_0.2.4   - Maemo documentation scripts
* maemodoc-toolchain-wikify_0.2.4- MediaWiki conversion script
* maemodoc-toolchain-mediawiki_0.2.4 - MediaWiki import environment
* latex2html_2008-2maemo2- Maemo updated latex2html tool

Debian Lenny specific packages (newer versions of packages)
* libboost-regex1.40.0_1.40.0-2
* libicu42_4.2.1-3_i386.deb
* source-highlight_3.1-2_i386.deb


SHORT DESCRIPTION

* Maemo Documentation Toolchain includes only wellknown open source tools.
* Installation of Maemo Documentation Toolchain uses local repository for
  those packages that Nokia has modified or that do not yet have later
  enough version available for standard Debian or Ubuntu distribution.
* Maemo Documentation Toolchain is based on LaTeX and uses latex2html
  and pdflatex tools to produce high quality PDF and HTML versions of
  Maemo documents.
* Easy to use scripts are provided to automate documentation generation
  from LaTeX with command line and menu interfaces.
* For HTML version of documents tools are provided to convert them to
  the MediaWiki import format.
* For MediaWiki import format documents tools are provided to import
  them to the MediaWiki service.
* MediaWiki import only updates wiki pages if same updated document gets
  imported to the same location in MediaWiki as the previous import.
* For HTML version of documents tools are provided to import them to
  the maemo.org Midgard.
* Maemo Documentation Guidelines LaTeX document provides an example
  and instructions how to create Maemo documents using Maemo
  Documentation Toolchain so that high quality PDF, HTML and MediaWiki
  conversions are possible.


INSTALLATION

- Unpack the toolchain package tarball to some convenient location.

  $ tar -C /path/to/local/repo -xzf maemodoc-toolchain_0.2.4.tar.gz


- Tell apt where to find the packages

  Create a file /etc/apt/sources.list.d/maemodoc-toolchain-local.list
  with the contents.

deb file:///path/to/local/repo/maemodoc-toolchain /

  and tell apt to update its list of available packages

$ sudo apt-get update


- Install the toolchain.

$ sudo apt-get install maemodoc-toolchain


- Optionally install the wiki import tool.

$ sudo apt-get install maemodoc-toolchain-mediawiki

  This is only required if you want to be able to import wikified
  documentation into MediaWiki and will pull in MediaWiki, Apache and
  MySQL as dependencies but will /not/ touch their configuration.


TOOLCHAIN USAGE

The executables are installed in /usr/bin.

- `maemodoc-toolchain' consists of the following scripts

- maemodoc-menu a simple frontend for maemodoc-html and
maemodoc-pdf ; can be used to generate HTML
and PDF from and to wikify Maemo LaTeX documents

- maemodoc-html a LaTeX-HTML conversion tool

- maemodoc-pdf  a LaTeX-PDF conversion tool

- maemodoc-scaleimage   a tool for automatically scaling and rotating
images to conform to the Maemo documentation
size constraints


- `maemodoc-toolchain-wikify' pulled in as a dependency, contains

- maemodoc-wikify   a tool for (media)wikifying HTML generated
by maemodoc-html


- `mae

Re: [New Developer]: Questions - Python Packaging / Free or Non-Free / Software Licensing

2010-02-08 Thread Ville M. Vainio
On Mon, Feb 8, 2010 at 2:36 PM, Edward Johns  wrote:

> Rather than an external c program you could consider making a c
> extension that you can import into Python.
>
> Take look at cython (I seem to remember a tutorial on this in the pymaemo 
> pages)

All that stuff can be easily circumvented easily by just editing the
source code and printing the key after it is acquired. Or, hooking
into the network communication. Or, whatever.

This kind of security is unimplementable locally without hardware
support, the best you can get is a small degree of obscurity.

-- 
Ville M. Vainio
http://tinyurl.com/vainio
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Developing virtual keyboard plugin for Maemo 5

2010-02-08 Thread kokilakr kr
Hello All,

I downloaded an example virtual keyboard plugin, built it and install it on
emulator (sbox-FREMANTLE_X86).
I was able to successfully install and modify default plugin using GConf
for,

/apps/osso/inputmethod/default-plugins/stylus

/apps/osso/inputmethod/default-plugins/finger

But on loading plugin, it gives error
"undefined symbol: hildon_im_ui_button_set_active"

Following documentation

http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Generic_Platform_Components/Extending_Hildon_Input_Methods

says hildon_im_ui_button_set_* APIs are supported. But when verified in
header file hildon-im-ui.h there aren't any of the APIs starting from
hildon_im_ui_button_set_

So does it mean we cannot modify virtual keyboard plugin?

Or are these APIs moved somewhere else?

Please help..

Thanks,


-- Forwarded message --
From: kokilakr kr 
Date: Fri, Feb 5, 2010 at 2:40 PM
Subject: Change layout of virtual keyboard
To: maemo-developers@maemo.org


Hello,

Following link informs Maemo 5 allows us to modify virtual keyboard layout.

http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Generic_Platform_Components/Extending_Hildon_Input_Methods

Just wanted to know can we replace the system (default) virtual keyboard?
(i.e. I want to display my custom keyboard system wide).

Thanks in advance
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


RE: Does the get_service_provider_name method only return a nameif the SIM is a USIM?

2010-02-08 Thread Aldon Hynes
Is there documentation somewhere about appropriate methods, either Dbus,
sysfs, API calls, etc. for retrieving these various values?  Likewise, how
this would work with Alternative Line Service?

Aldon

-Original Message-
From: maemo-developers-boun...@maemo.org
[mailto:maemo-developers-boun...@maemo.org]on Behalf Of Aki Niemi
Sent: Monday, February 08, 2010 6:29 AM
To: ext Faheem Pervez
Cc: maemo-developers@maemo.org List
Subject: Re: Does the get_service_provider_name method only return a
nameif the SIM is a USIM?


la, 2010-02-06 kello 11:10 +0100, ext Faheem Pervez kirjoitti:
> As said in the title: dbus-send --system --type=method_call
> --print-reply --dest=com.nokia.phone.SIM /com/nokia/phone/SIM
> Phone.Sim.get_service_provider_name returns a blank string. As I only
> have a T-Mobile SIM to be trying this out with, I'd like to know if a
> string is only returned if a USIM is inserted. Or maybe I'm invoking
> it in the wrong manner?

Not all SIM cards have the SPN field set. Overall, there are four
sources of names for network operators:

  * Service Provider Name (SPN) field on the SIM
  * CPHS operator name on the SIM card
  * "Hard-coded" name based on a list that GSMA publishes
periodically This is typically stored on the modem firmware
  * NITZ indications that the network sends

What gets displayed on the home screen, for instance, is some
combination of these names, depending on certain conditions set on the
SIM card, and whether the device is roaming or not.

Cheers,
Aki

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: [New Developer]: Questions - Python Packaging / Free or Non-Free / Software Licensing

2010-02-08 Thread Edward Johns
> 1) non-free package
> ~~~
>  * Create a non-free (i.e. binary) package which contains your API
>    keys encrypted in some way (perhaps just XORing the values) and
>    a small C program which decrypts them.
>
Rather than an external c program you could consider making a c
extension that you can import into Python.

Take look at cython (I seem to remember a tutorial on this in the pymaemo pages)

Ed
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Getting a CC: for cauldon mails (extras-devel)

2010-02-08 Thread Anderson Lizardo
On Sat, Feb 6, 2010 at 5:11 PM, Ed Bartosh  wrote:
> As far as I remember autobuilder doesn't use 'Maintainer' or any other
> field to prevent spamming of innocent people from upstream projects.
> It uses email from /etc/passed instead. Your email should be put in
> there by admins when they gave you upload rights.

IIRC an e-mail is sent to the address in the Maintainer: field once
the package is imported into the extras-devel repository (and again
when it is "promoted" to other repositories like extras-testing and
extras). I know that because I always see these e-mails on the
pymaemo-developers mailing list moderation queue because PyMaemo
packages have the mailing list address in the Maintainer field and
autobuilder address is not subscribed to the list.

Not sure if this has changed after the server migration, though.

Regards,
-- 
Anderson Lizardo
OpenBossa Labs - INdT
Manaus - Brazil
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Does the get_service_provider_name method only return a name if the SIM is a USIM?

2010-02-08 Thread Aki Niemi
la, 2010-02-06 kello 11:10 +0100, ext Faheem Pervez kirjoitti:
> As said in the title: dbus-send --system --type=method_call
> --print-reply --dest=com.nokia.phone.SIM /com/nokia/phone/SIM
> Phone.Sim.get_service_provider_name returns a blank string. As I only
> have a T-Mobile SIM to be trying this out with, I'd like to know if a
> string is only returned if a USIM is inserted. Or maybe I'm invoking
> it in the wrong manner?

Not all SIM cards have the SPN field set. Overall, there are four
sources of names for network operators:

  * Service Provider Name (SPN) field on the SIM
  * CPHS operator name on the SIM card
  * "Hard-coded" name based on a list that GSMA publishes
periodically This is typically stored on the modem firmware
  * NITZ indications that the network sends

What gets displayed on the home screen, for instance, is some
combination of these names, depending on certain conditions set on the
SIM card, and whether the device is roaming or not.

Cheers,
Aki

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: how to make a splash screen with Qt

2010-02-08 Thread Kimmo Hämäläinen
On Mon, 2010-02-08 at 09:50 +0100, ext ibrahim wrote:
> hello there ;
> 
> I was wondering how to make a splash screen for my application using Qt, 
> I found this link : 
> http://wiki.maemo.org/Qt4_Hildon#QSplashScreen_not_fully_compatible_with_Hildon-Desktop
>  
> 
> telling that it is not compitable with maemo, So, it tried many 
> workarounds (like creating a fullscreen window above my main window, and 
> then hiding it after a while, But it blinks when it hide and the main 
> view of my application is shown minimized when spalsh screen disappears.
> Also tried to make my  main view window's central widget to be a splash 
> screen widget and after a while i replace it with the original  central 
> widget of the main view But it failed too)
> 
> So, I wonder if you have any other way/Maemo API to allow a splash 
> screen to be properly shown .

You need to set a window property that tells HD to skip the transitions:

static void set_no_transitions (Display *dpy, Window w)
{
  Atom no_trans;
  int one = 1;
  no_trans = XInternAtom (dpy, "_HILDON_WM_ACTION_NO_TRANSITIONS", False);
  XChangeProperty (dpy, w, no_trans,
   XA_CARDINAL, 32, PropModeReplace,
   (unsigned char *)&one, 1);
}

--Kimmo

> 
> thank you in advance;
> 
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


how to make a splash screen with Qt

2010-02-08 Thread ibrahim

hello there ;

I was wondering how to make a splash screen for my application using Qt, 
I found this link : 
http://wiki.maemo.org/Qt4_Hildon#QSplashScreen_not_fully_compatible_with_Hildon-Desktop 

telling that it is not compitable with maemo, So, it tried many 
workarounds (like creating a fullscreen window above my main window, and 
then hiding it after a while, But it blinks when it hide and the main 
view of my application is shown minimized when spalsh screen disappears.
Also tried to make my  main view window's central widget to be a splash 
screen widget and after a while i replace it with the original  central 
widget of the main view But it failed too)


So, I wonder if you have any other way/Maemo API to allow a splash 
screen to be properly shown .


thank you in advance;

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Maemo code in Linux kernel?

2010-02-08 Thread Rémi Denis-Courmont
On Friday 05 February 2010 11:45:16 ext Yves-Alexis Perez, you wrote:
> On 04/02/2010 13:13, Rémi Denis-Courmont wrote:
> > I am surely missing some pieces. Not that some of the N900-related
> > contributions were merged upstream after the 2.6.28 kernel.
> > Obviously, there are also some parts which haven't been merged, or not
> > yet.
> 
> I wanted to ask a question about the already upstreamed stuff. Is it
> maintained in the linus tree? I mean, I guess the development is made in
> Nokia tree (which is not public, sadly), but once the first upstreaming
> is done, are the updates pushed regularly or is the stuff maintained
> only privately (which then makes it harder to follow upstream development).

All of what I listed (and I definitely missed some bits) are in Torvalds tree. 
There is a little bit more in the Linux OMAP tree.

-- 
Rémi Denis-Courmont
Nokia Devices R&D, Maemo Software, Helsinki
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers