Using proc command in Maemo code

2010-05-13 Thread Pallavi Kandhare
Hi,
When /proc command is used in Maemo code it displays names of all running 
applications on the system. I also want to display names (and not PID) 
of all applications which are running / active in emulator. 
Pls can anybody guide how can i do the same.
 
Thanks.


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


RE: QR-Code

2010-05-13 Thread Simon Pickering

 Is there a project to QT QR-Code ? 

Take a look at the Qt branch of the maemo-barcode Garage project, or install
mBarcode from extras-devel.

We use libzbar for the QR decoding (thanks derf for writing the decoder) via
a Gstreamer wrapper (thanks ensonic).

More developers for the core of mBarcode and especially plugins always
welcome as my time is currently rather short and I think Svenn-Arne is
suffering from the same problem.

 Thank's !

Cheers,


Simon 

 -Original Message-
 From: maemo-developers-boun...@maemo.org 
 [mailto:maemo-developers-boun...@maemo.org] On Behalf Of 
 Roberto Teixeira
 Sent: 13 May 2010 03:01
 To: maemo-developers@maemo.org
 Subject: QR-Code
 
 Hi !Is there a project to QT QR-Code
 

 
 Is there a project to QT QR-Code ?
 
 Thank's !
 
 

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


Re: QR-Code

2010-05-13 Thread Daniil Ivanov
Hi all!

  I think libzbar is for barcode reading, while libqrencode suits for
QR reading.

Thanks, Daniil.

On Thu, May 13, 2010 at 11:26 AM, Simon Pickering
s.g.picker...@bath.ac.uk wrote:

 Is there a project to QT QR-Code ?

 Take a look at the Qt branch of the maemo-barcode Garage project, or install
 mBarcode from extras-devel.

 We use libzbar for the QR decoding (thanks derf for writing the decoder) via
 a Gstreamer wrapper (thanks ensonic).

 More developers for the core of mBarcode and especially plugins always
 welcome as my time is currently rather short and I think Svenn-Arne is
 suffering from the same problem.

 Thank's !

 Cheers,


 Simon

 -Original Message-
 From: maemo-developers-boun...@maemo.org
 [mailto:maemo-developers-boun...@maemo.org] On Behalf Of
 Roberto Teixeira
 Sent: 13 May 2010 03:01
 To: maemo-developers@maemo.org
 Subject: QR-Code

 Hi !Is there a project to QT QR-Code



 Is there a project to QT QR-Code ?

 Thank's !



 ___
 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: QR-Code

2010-05-13 Thread Daniil Ivanov
Hi Simon!

  QR is not mentioned in Debian package description.
  http://packages.debian.org/sid/libzbar0
  I think maintainer should be contacted.

Thanks, Daniil.

On Thu, May 13, 2010 at 11:50 AM, Simon Pickering
s.g.picker...@bath.ac.uk wrote:
 Hi Daniil,

   I think libzbar is for barcode reading, while libqrencode
 suits for QR reading.

 Libzbar decodes many 1D and also QR code barcodes (i.e. barcode - text),
 libqrencode encodes text to create a QR code barcode (i.e. text - barcode).

 I've no idea which direction the original questioner wanted, but I imagine
 it will be decoding a barcode to get the text contained therein, rather than
 encoding text.

 But who knows! ;)


 Simon



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


Enhanced Recorder App

2010-05-13 Thread Rainer Dorsch
Hello,

I am looking for a recorder which is able to start recording and stop 
recording when the button at the headset is pressed. Usecase: phone is 
somewhare in the pocket and I want to do recording.

I did not see an app able to do this. Now I am wondering how much effort it 
would be to create a simple app like this myself (I am a programer, have 
scratchbox setup, but no hildon and codec experience).

Spec of the up:

- Three buttons: New, Save, Start/Stop recording
- Start/Stop recording should also work from headset button when recording up 
is up and screen blancked.

What I would appreciate are answers to
- Is there an app which I could take as starting point?

Depending on what is missing of the app if there is any
- Pointer to a hello world app with buttons
- Would you rather recommend C or python (I am more fluent in C/C++, but I see 
a lot of python apps and applets)?
- Pointer to codec to use for audio encoding
- Pointer how to use headset button.

I certainly tried recorder and filed a bug report 
https://bugs.maemo.org/show_bug.cgi?id=9903 some time ago. Since the author 
has a Nokia address Marko Nykanen marko.ja.nyka...@nokia.com I suspect 
recorder has a closed source license Nokia app. Since there is no action on 
the bug report I assume Nokia has no interest in supplying that features and 
since source code is not available it is also impossible to enhance the 
existing app.

Thanks,
Rainer

-- 
Rainer Dorsch
Lärchenstr. 6
D-72135 Dettenhausen
07157-734133
email: rdor...@web.de
jabber: rdor...@jabber.org
GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F  8F59 E3A8 C538 7519 141E
Full GPG key: http://pgp.mit.edu/


signature.asc
Description: This is a digitally signed message part.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


RE: QR-Code

2010-05-13 Thread Simon Pickering
Hi Daniil,
 
   QR is not mentioned in Debian package description.
   http://packages.debian.org/sid/libzbar0
   I think maintainer should be contacted.

It was introduced fairly recently (in 0.9 iirc) and fwiw we have 0.10 in the
extras-devel feed iirc. 

See here: http://zbar.sourceforge.net/

Cheers,


Simon



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


Re: Enhanced Recorder App

2010-05-13 Thread Thomas Troy

 I certainly tried recorder and filed a bug report
 https://bugs.maemo.org/show_bug.cgi?id=9903 some time ago. Since the
 author
 has a Nokia address Marko Nykanen marko.ja.nyka...@nokia.com I suspect
 recorder has a closed source license Nokia app. Since there is no action on
 the bug report I assume Nokia has no interest in supplying that features
 and
 since source code is not available it is also impossible to enhance the
 existing app.


Maemo-recorder \ recorder is open source and the code is garage page and scm
are at https://garage.maemo.org/projects/maemo-recorder/

There is also a link to the source of the latest version on the package page
on maemo.org
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: upstart and dbus

2010-05-13 Thread b0unc3
On Thu, May 13, 2010 at 11:33 AM, Graham Cobb
g+...@cobb.uk.netg%2b...@cobb.uk.net
 wrote:

 On Thursday 13 May 2010 00:27:21 Faheem Pervez wrote:
  On 5/13/10, Graham Cobb g+...@cobb.uk.net g%2b...@cobb.uk.net wrote:
   Faheem, what were you using as the start condition for your upstart
   script? I
   would have assumed that if it were anything after start on started
 dbus
   then the waitdbus would be unnecessary.
 
  I was using:
  start on started dbus
  stop on stopping dbus
  stop on stopped fmtx

 Thanks Faheem.  From your experience, it seems that start on started dbus
 is
 not good enough to know that dbus really is available so we should all get
 into the habit of adding the following into upstart scripts that need dbus
 (or which need run-standalone.sh), to avoid obscure race conditions:

 pre-start script
/usr/sbin/waitdbus system
 end script


I found that if I use :
 start on started hildon-desktop

as starting condition, I don't need to put the pre-start script


 Graham
 ___
 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: upstart and dbus

2010-05-13 Thread Graham Cobb
On Thursday 13 May 2010 11:40:24 b0unc3 wrote:
 I found that if I use :
  start on started hildon-desktop

 as starting condition, I don't need to put the pre-start script

You are probably right.  If hildon-desktop has started, users could be running 
apps so everything must be set up correctly!  The problem is really only for 
apps which want to start before hildon-desktop.

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


Re: Enhanced Recorder App

2010-05-13 Thread Rainer Dorsch
Am Donnerstag, 13. Mai 2010 schrieb Thomas Troy:
  I certainly tried recorder and filed a bug report
  https://bugs.maemo.org/show_bug.cgi?id=9903 some time ago. Since the
  author
  has a Nokia address Marko Nykanen marko.ja.nyka...@nokia.com I suspect
  recorder has a closed source license Nokia app. Since there is no action
  on the bug report I assume Nokia has no interest in supplying that
  features and
  since source code is not available it is also impossible to enhance the
  existing app.

 Maemo-recorder \ recorder is open source and the code is garage page and
 scm are at https://garage.maemo.org/projects/maemo-recorder/

 There is also a link to the source of the latest version on the package
 page on maemo.org

Many thanks for the link, that is very good news.

Is there documentation how I can access the headset microphone button?

Is there an easy way to find out under which license a package comes, e.g.

~ $ apt-cache show recorder
Package: recorder
Priority: optional
Section: user/multimedia
Installed-Size: 240
Maintainer: Marko Nykanen marko.ja.nyka...@nokia.com
Architecture: armel
Version: 0.3.4
Replaces: maemo-recorder
Depends: libatk1.0-0 (= 1.24.0), libc6 (= 2.5.0-1), libcairo2, libdbus-1-3 
(= 1.1.4), libdbus-glib-1-2 (= 0.76), libfontconfig1 (= 2.6.0), 
libfreetype6 (= 2.3.9), libgconf2-6 (= 2.13.5), libglib2.0-0 (= 2.20.0), 
libgstreamer0.10-0 (= 0.10.23), libgtk2.0-0 (= 2:2.12.9-0osso1), 
libhildon1, libhildonfm2 (= 1:2.28+0m5), libmodest-dbus-client, 
libosso-gnomevfs2-0, libosso1 (= 2.23), libpango1.0-0, libpixman-1-0 (= 
0.13.2), libpng12-0 (= 1.2.13-4), libx11-6, libxml2 (= 2.6.32), 
libxrender1, zlib1g (= 1:1.2.1)
Filename: pool/fremantle/free/r/recorder/recorder_0.3.4_armel.deb
Size: 83172
MD5sum: 3a7b9826ebbe54c76b058d4a1e8b1b70
SHA1: eaa683cf59eba877eaed889c0039060240a1df26
SHA256: 5035c7a26c4b313838ff15ebd2be965b2dbe292c104f515d3f5dfa396e2df45a
Description: Voice Recorder
 A simple graphical utility for recording audio from microphone.
Bugtracker: https://bugs.maemo.org/enter_bug.cgi?product=recorder
Maemo-Display-Name: Recorder
Maemo-Icon-26:
[...]

~ $

does not show it.

Thanks,
Rainer

-- 
Rainer Dorsch
Lärchenstr. 6
D-72135 Dettenhausen
07157-734133
email: rdor...@web.de
jabber: rdor...@jabber.org
GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F  8F59 E3A8 C538 7519 141E
Full GPG key: http://pgp.mit.edu/


signature.asc
Description: This is a digitally signed message part.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Problem running installed app (using icon)

2010-05-13 Thread saurabh aggarwal
I have created a deb package of my application, and installed it on the
device using dpkg. I can see the icon, and I can see that the binary has
been copied to /usr/bin.

But, when I try to run the app using the icon, it tries to launch, but then
exits. I can see my process for a few seconds using ps.

If I run my app using the terminal by using the command /usr/bin/myapp, it
works fine. The app launches without a problem.

I wrote a file log at the very first line of my main, and I can't find it
when I run using the icon, but is visible if I launch through command line.
But ps does show my process for a few seconds when launched through icon.

Any ideas on how to debug.

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


Re: Problem running installed app (using icon)

2010-05-13 Thread Faheem Pervez
Start by posting the desktop file.

On Thu, May 13, 2010 at 12:23 PM, saurabh aggarwal
aggarwal.saur...@gmail.com wrote:
 Any ideas on how to debug.


Best Regards,
Faheem

 Regards,
 -Saurabh

 ___
 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: Problem running installed app (using icon)

2010-05-13 Thread saurabh aggarwal
Here it is -

[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Name=myapp
Exec=/usr/bin/myapp
Icon=myapp
X-Maemo-Category=Main
X-Window-Icon=myapp
X-Window-Icon-Dimmed=myapp

On Thu, May 13, 2010 at 4:56 PM, Faheem Pervez tripp...@gmail.com wrote:

 Start by posting the desktop file.

 On Thu, May 13, 2010 at 12:23 PM, saurabh aggarwal
 aggarwal.saur...@gmail.com wrote:
  Any ideas on how to debug.
 

 Best Regards,
 Faheem

  Regards,
  -Saurabh
 
  ___
  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: Problem running installed app (using icon)

2010-05-13 Thread saurabh aggarwal
If I replace Exec below with
Exec=osso-xterm /usr/bin/FiCall

The app now starts but it also launches an XTerm (with the app running in
foreground) as expected.

But, this is not what I want. I want to run the application without the
console.

-Saurabh

On Thu, May 13, 2010 at 5:01 PM, saurabh aggarwal 
aggarwal.saur...@gmail.com wrote:

 Here it is -

 [Desktop Entry]
 Encoding=UTF-8
 Version=0.1
 Type=Application
 Name=myapp
 Exec=/usr/bin/myapp
 Icon=myapp
 X-Maemo-Category=Main
 X-Window-Icon=myapp
 X-Window-Icon-Dimmed=myapp


 On Thu, May 13, 2010 at 4:56 PM, Faheem Pervez tripp...@gmail.com wrote:

 Start by posting the desktop file.

 On Thu, May 13, 2010 at 12:23 PM, saurabh aggarwal
 aggarwal.saur...@gmail.com wrote:
  Any ideas on how to debug.
 

 Best Regards,
 Faheem

  Regards,
  -Saurabh
 
  ___
  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: Problem running installed app (using icon)

2010-05-13 Thread b0unc3
On Thu, May 13, 2010 at 1:31 PM, saurabh aggarwal 
aggarwal.saur...@gmail.com wrote:

 Here it is -

 [Desktop Entry]
 Encoding=UTF-8
 Version=0.1
 Type=Application
 Name=myapp
 Exec=/usr/bin/myapp
 Icon=myapp
 X-Maemo-Category=Main
 X-Window-Icon=myapp
 X-Window-Icon-Dimmed=myapp


I bet you need a valid osso context reference in your app. And also a good
.service file (post it here if you have still problems)
Follow this guide :
http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Application_Development/Writing_a_new_maemo_application




 On Thu, May 13, 2010 at 4:56 PM, Faheem Pervez tripp...@gmail.com wrote:

 Start by posting the desktop file.

 On Thu, May 13, 2010 at 12:23 PM, saurabh aggarwal
 aggarwal.saur...@gmail.com wrote:
  Any ideas on how to debug.
 

 Best Regards,
 Faheem

  Regards,
  -Saurabh
 
  ___
  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: Problem running installed app (using icon)

2010-05-13 Thread saurabh aggarwal
Ok, here's the Noob question -
1) Do all apps need a .service file
2) What is the need when my application doesn't listen to any dbus event?

BTW, my app is a QT application.

-Saurabh

On Thu, May 13, 2010 at 5:22 PM, b0unc3 b0u...@email.it wrote:



 On Thu, May 13, 2010 at 1:31 PM, saurabh aggarwal 
 aggarwal.saur...@gmail.com wrote:

 Here it is -

 [Desktop Entry]
 Encoding=UTF-8
 Version=0.1
 Type=Application
 Name=myapp
 Exec=/usr/bin/myapp
 Icon=myapp
 X-Maemo-Category=Main
 X-Window-Icon=myapp
 X-Window-Icon-Dimmed=myapp


 I bet you need a valid osso context reference in your app. And also a good
 .service file (post it here if you have still problems)
 Follow this guide :
 http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Application_Development/Writing_a_new_maemo_application




 On Thu, May 13, 2010 at 4:56 PM, Faheem Pervez tripp...@gmail.comwrote:

 Start by posting the desktop file.

 On Thu, May 13, 2010 at 12:23 PM, saurabh aggarwal
 aggarwal.saur...@gmail.com wrote:
  Any ideas on how to debug.
 

 Best Regards,
 Faheem

  Regards,
  -Saurabh
 
  ___
  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: Using proc command in Maemo code

2010-05-13 Thread Dave Neary
Hi,

Pallavi Kandhare wrote:
 When /proc command is used in Maemo code it displays names of all
 running applications on the system. I also want to display names (and
 not PID) of all applications which are running / active in emulator.
 Pls can anybody guide how can i do the same.

The command like of the application is in /proc/pid/cmdline

Cheers,
Dave.

-- 
maemo.org docsmaster
Email: dne...@maemo.org
Jabber: bo...@jabber.org

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


Re: Problem running installed app (using icon)

2010-05-13 Thread b0unc3
On Thu, May 13, 2010 at 2:17 PM, saurabh aggarwal 
aggarwal.saur...@gmail.com wrote:

 Ok, here's the Noob question -
 1) Do all apps need a .service file


Yes, if you want your app to appear in the task navigator menu.


 2) What is the need when my application doesn't listen to any dbus event?


DBus and osso context are not related.



 BTW, my app is a QT application.


You can browse the source of some other qt apps to see how to get this done.



 -Saurabh


 On Thu, May 13, 2010 at 5:22 PM, b0unc3 b0u...@email.it wrote:



 On Thu, May 13, 2010 at 1:31 PM, saurabh aggarwal 
 aggarwal.saur...@gmail.com wrote:

 Here it is -

 [Desktop Entry]
 Encoding=UTF-8
 Version=0.1
 Type=Application
 Name=myapp
 Exec=/usr/bin/myapp
 Icon=myapp
 X-Maemo-Category=Main
 X-Window-Icon=myapp
 X-Window-Icon-Dimmed=myapp


 I bet you need a valid osso context reference in your app. And also a good
 .service file (post it here if you have still problems)
 Follow this guide :
 http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Application_Development/Writing_a_new_maemo_application




 On Thu, May 13, 2010 at 4:56 PM, Faheem Pervez tripp...@gmail.comwrote:

 Start by posting the desktop file.

 On Thu, May 13, 2010 at 12:23 PM, saurabh aggarwal
 aggarwal.saur...@gmail.com wrote:
  Any ideas on how to debug.
 

 Best Regards,
 Faheem

  Regards,
  -Saurabh
 
  ___
  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: Enhanced Recorder App

2010-05-13 Thread Thomas Waelti
Perhaps you could help me to add this function to my recaller widget? It's 
written in Python and the source can be downloaded fro the repos.
That would be the easiest way for sure.
-Tom



 Hello,

 I am looking for a recorder which is able to start recording and stop
 recording when the button at the headset is pressed. Usecase: phone is
 somewhare in the pocket and I want to do recording.

 I did not see an app able to do this. Now I am wondering how much effort it
 would be to create a simple app like this myself (I am a programer, have
 scratchbox setup, but no hildon and codec experience).

 Spec of the up:

 - Three buttons: New, Save, Start/Stop recording
 - Start/Stop recording should also work from headset button when recording up
 is up and screen blancked.

 What I would appreciate are answers to
 - Is there an app which I could take as starting point?

 Depending on what is missing of the app if there is any
 - Pointer to a hello world app with buttons
 - Would you rather recommend C or python (I am more fluent in C/C++, but I see
 a lot of python apps and applets)?
 - Pointer to codec to use for audio encoding
 - Pointer how to use headset button.

 I certainly tried recorder and filed a bug report
 https://bugs.maemo.org/show_bug.cgi?id=9903 some time ago. Since the author
 has a Nokia address Marko Nykanen marko.ja.nyka...@nokia.com I suspect
 recorder has a closed source license Nokia app. Since there is no action on
 the bug report I assume Nokia has no interest in supplying that features and
 since source code is not available it is also impossible to enhance the
 existing app.

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


Re: Problem running installed app (using icon)

2010-05-13 Thread Daniil Ivanov
Hi b0unc3!

On Thu, May 13, 2010 at 4:41 PM, b0unc3 b0u...@email.it wrote:


 On Thu, May 13, 2010 at 2:17 PM, saurabh aggarwal
 aggarwal.saur...@gmail.com wrote:

 Ok, here's the Noob question -
 1) Do all apps need a .service file

 Yes, if you want your app to appear in the task navigator menu.

No, not true! Only if you offer DBus methods. This not connected to
navigator menu,
whatever it is.


 2) What is the need when my application doesn't listen to any dbus event?

 DBus and osso context are not related.

No, not true! They are. Osso initializes dbus as well.



 BTW, my app is a QT application.

 You can browse the source of some other qt apps to see how to get this done.


 -Saurabh

 On Thu, May 13, 2010 at 5:22 PM, b0unc3 b0u...@email.it wrote:


 On Thu, May 13, 2010 at 1:31 PM, saurabh aggarwal
 aggarwal.saur...@gmail.com wrote:

 Here it is -

 [Desktop Entry]
 Encoding=UTF-8
 Version=0.1
 Type=Application
 Name=myapp
 Exec=/usr/bin/myapp
 Icon=myapp
 X-Maemo-Category=Main
 X-Window-Icon=myapp
 X-Window-Icon-Dimmed=myapp

 I bet you need a valid osso context reference in your app. And also a
 good .service file (post it here if you have still problems)
 Follow this guide :
 http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Application_Development/Writing_a_new_maemo_application


 On Thu, May 13, 2010 at 4:56 PM, Faheem Pervez tripp...@gmail.com
 wrote:

 Start by posting the desktop file.

 On Thu, May 13, 2010 at 12:23 PM, saurabh aggarwal
 aggarwal.saur...@gmail.com wrote:
  Any ideas on how to debug.
 

 Best Regards,
 Faheem

  Regards,
  -Saurabh
 
  ___
  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



If you have service file then you need to set application name on dbus
interface or it will be killed after start
of application in 2 seconds. Also you need X-Osso-Service line in
desktop file. However, this is not your case.

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


Re: Problem running installed app (using icon)

2010-05-13 Thread Daniil Ivanov
Hi Saurabh!

  Could you post output of the command:
  dpkg -L your_package_name

Thanks, Daniil.

On Thu, May 13, 2010 at 10:50 PM, Daniil Ivanov daniil.iva...@gmail.com wrote:
 Hi b0unc3!

 On Thu, May 13, 2010 at 4:41 PM, b0unc3 b0u...@email.it wrote:


 On Thu, May 13, 2010 at 2:17 PM, saurabh aggarwal
 aggarwal.saur...@gmail.com wrote:

 Ok, here's the Noob question -
 1) Do all apps need a .service file

 Yes, if you want your app to appear in the task navigator menu.

 No, not true! Only if you offer DBus methods. This not connected to
 navigator menu,
 whatever it is.


 2) What is the need when my application doesn't listen to any dbus event?

 DBus and osso context are not related.

 No, not true! They are. Osso initializes dbus as well.



 BTW, my app is a QT application.

 You can browse the source of some other qt apps to see how to get this done.


 -Saurabh

 On Thu, May 13, 2010 at 5:22 PM, b0unc3 b0u...@email.it wrote:


 On Thu, May 13, 2010 at 1:31 PM, saurabh aggarwal
 aggarwal.saur...@gmail.com wrote:

 Here it is -

 [Desktop Entry]
 Encoding=UTF-8
 Version=0.1
 Type=Application
 Name=myapp
 Exec=/usr/bin/myapp
 Icon=myapp
 X-Maemo-Category=Main
 X-Window-Icon=myapp
 X-Window-Icon-Dimmed=myapp

 I bet you need a valid osso context reference in your app. And also a
 good .service file (post it here if you have still problems)
 Follow this guide :
 http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Application_Development/Writing_a_new_maemo_application


 On Thu, May 13, 2010 at 4:56 PM, Faheem Pervez tripp...@gmail.com
 wrote:

 Start by posting the desktop file.

 On Thu, May 13, 2010 at 12:23 PM, saurabh aggarwal
 aggarwal.saur...@gmail.com wrote:
  Any ideas on how to debug.
 

 Best Regards,
 Faheem

  Regards,
  -Saurabh
 
  ___
  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



 If you have service file then you need to set application name on dbus
 interface or it will be killed after start
 of application in 2 seconds. Also you need X-Osso-Service line in
 desktop file. However, this is not your case.

 Thanks, Daniil.

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


Qt question: How to automatically enable numeric input mode for a field?

2010-05-13 Thread Sudheer K .






Hi,

I want to create a phone number field (QLineEdit) in my configuration widget. 
User can enter numbers and '+' or 'p' characters in the field.

The key thing is I don't want the users to use the Fn key everytime they have 
to edit the number. Application should automatically enable number entry and 
allow users to enter numbers only. Users can use Fn key to enter '+' or 'p' if 
needed.

The expected functionality is similar to adding a new phone number for a 
contact in addressbook. How can I do this in Qt? 

Regards,
Sudheer

  
_
The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with 
Hotmail. 
http://www.windowslive.com/campaign/thenewbusy?tile=multicalendarocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Qt question: How to automatically enable numeric input mode for a field?

2010-05-13 Thread Ram Kurvakat
use input method hints


- Original Message -
From: Sudheer K.
Sent: 05/13/10 11:04 PM
To: Maemo Dev Mailing List
Subject: Qt question: How to automatically enable numeric input mode for a 
field?

 Hi,

I want to create a phone number field (QLineEdit) in my configuration widget. 
User can enter numbers and '+' or 'p' characters in the field.

The key thing is I don't want the users to use the Fn key everytime they have 
to edit the number. Application should automatically enable number entry and 
allow users to enter numbers only. Users can use Fn key to enter '+' or 'p' if 
needed.

The expected functionality is similar to adding a new phone number for a 
contact in addressbook. How can I do this in Qt? 

Regards,
Sudheer


-
The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with 
Hotmail. Get busy. 
http://www.windowslive.com/campaign/thenewbusy?tile=multicalendarocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Qt question: How to automatically enable numeric input mode for a field?

2010-05-13 Thread Ram Kurvakat
sorry my previous message was sent before I finished typing...

anyways

use input method hints..
http://doc.trolltech.com/4.6/qt.html#InputMethodHint-enum 
http://doc.trolltech.com/4.6/qt.html#InputMethodHint-enum 

something like this


- Original Message -
From: Sudheer K.
Sent: 05/13/10 11:04 PM
To: Maemo Dev Mailing List
Subject: Qt question: How to automatically enable numeric input mode for a 
field?

 Hi,

I want to create a phone number field (QLineEdit) in my configuration widget. 
User can enter numbers and '+' or 'p' characters in the field.

The key thing is I don't want the users to use the Fn key everytime they have 
to edit the number. Application should automatically enable number entry and 
allow users to enter numbers only. Users can use Fn key to enter '+' or 'p' if 
needed.

The expected functionality is similar to adding a new phone number for a 
contact in addressbook. How can I do this in Qt? 

Regards,
Sudheer


-
The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with 
Hotmail. Get busy. 
http://www.windowslive.com/campaign/thenewbusy?tile=multicalendarocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Qt question: How to automatically enable numeric input mode for a field?

2010-05-13 Thread Ram Kurvakat
I dont know whats wrong with my mail client now, a control C just sends the 
message
so sorry my previous message(s) were sent before I finished typing...

anyways

use input method hints..
http://doc.trolltech.com/4.6/qt.html#InputMethodHint-enum 
http://doc.trolltech.com/4.6/qt.html#InputMethodHint-enum 

something like this

linedit-setInputMethodHints(Qt::ImhDigitsOnly);

-
krk969




- Original Message -
From: Sudheer K.
Sent: 05/13/10 11:04 PM
To: Maemo Dev Mailing List
Subject: Qt question: How to automatically enable numeric input mode for a 
field?

 Hi,

I want to create a phone number field (QLineEdit) in my configuration widget. 
User can enter numbers and '+' or 'p' characters in the field.

The key thing is I don't want the users to use the Fn key everytime they have 
to edit the number. Application should automatically enable number entry and 
allow users to enter numbers only. Users can use Fn key to enter '+' or 'p' if 
needed.

The expected functionality is similar to adding a new phone number for a 
contact in addressbook. How can I do this in Qt? 

Regards,
Sudheer


-
The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with 
Hotmail. Get busy. 
http://www.windowslive.com/campaign/thenewbusy?tile=multicalendarocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


RE: Qt question: How to automatically enable numeric input mode for a field?

2010-05-13 Thread Sudheer K .



Date: Fri, 14 May 2010 00:34:48 +0200
From: rkma...@gmx.com
Subject: RE: Qt question: How to automatically enable numeric input mode for  
afield?
To: scifi@hotmail.com; maemo-developers@maemo.org



hi sudheer, as far as I know this is what its actually supposed to do , else 
it may be a bug.

btw this works only in QT4.6.
http://doc.trolltech.com/qt-maemo-4.6/qgraphicsitem.html#inputMethodHints


ive tried this in a spin box and it works.

-
krk969


Hi Ram,


Here is the code that I am using. The hint is working fine for virtual 
keyboard, but I am looking for a physical keyboard solution. The physical 
keyboard input mode should automatically change to numeric for this field. What 
am I missing here?

lineEditCallingCardNumber = new QLineEdit(formLayoutWidget);

lineEditCallingCardNumber-setObjectName(QString::fromUtf8(lineEditCallingCardNumber));

lineEditCallingCardNumber-setInputMethodHints(Qt::ImhDialableCharactersOnly);
  
_
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


RE: Qt question: How to automatically enable numeric input mode for a field?

2010-05-13 Thread Ram Kurvakat
have you tried this

- Original Message -
From: Sudheer K.
Sent: 05/13/10 11:54 PM
To: rkma...@gmx.com, Maemo Dev Mailing List
Subject: RE: Qt question: How to automatically enable numeric input mode for a 
field?


-
Date: Fri, 14 May 2010 00:34:48 +0200
From: rkma...@gmx.com
Subject: RE: Qt question: How to automatically enable numeric input mode for a 
field?
To: scifi@hotmail.com; maemo-developers@maemo.org

hi sudheer, as far as I know this is what its actually supposed to do , else 
it may be a bug.

btw this works only in QT4.6.
 http://doc.trolltech.com/qt-maemo-4.6/qgraphicsitem.html#inputMethodHints 
 http://doc.trolltech.com/qt-maemo-4.6/qgraphicsitem.html#inputMethodHints 
 http://doc.trolltech.com/qt-maemo-4.6/qgraphicsitem.html#inputMethodHints 


ive tried this in a spin box and it works.

-
krk969


Hi Ram,


Here is the code that I am using. The hint is working fine for virtual 
keyboard, but I am looking for a physical keyboard solution. The physical 
keyboard input mode should automatically change to numeric for this field. What 
am I missing here?

 lineEditCallingCardNumber = new QLineEdit(formLayoutWidget);
 
lineEditCallingCardNumber-setObjectName(QString::fromUtf8(lineEditCallingCardNumber));
 lineEditCallingCardNumber-setInputMethodHints(Qt::ImhDialableCharactersOnly);

-
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. 
Learn more. 
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


RE: Qt question: How to automatically enable numeric input mode for a field?

2010-05-13 Thread Ram Kurvakat
have you tried this hint ? ( this worked for the spin box, I could use the 
hardware keyboard without pressing Fn )

Qt::ImhDigitsOnly

Qt::ImhFormattedNumbersOnly didnt work for me , for the spin box , I needed a 
dot (.) , since I was using a double spinbox. I'll be raising a bug for that, 
perhaps even the hint you are using below has similar issues.

WHen I spoke to some QT team members , what they told me was this should be 
done by default for some widgets, for example the spinbox there
shouldnt be a need to explicitly hint, it should be default, so it seems there 
could be issues to iron out here.

try using the above working hint and see how it goes.

-krk969


- Original Message -
From: Sudheer K.
Sent: 05/13/10 11:54 PM
To: rkma...@gmx.com, Maemo Dev Mailing List
Subject: RE: Qt question: How to automatically enable numeric input mode for a 
field?


-
Date: Fri, 14 May 2010 00:34:48 +0200
From: rkma...@gmx.com
Subject: RE: Qt question: How to automatically enable numeric input mode for a 
field?
To: scifi@hotmail.com; maemo-developers@maemo.org

hi sudheer, as far as I know this is what its actually supposed to do , else 
it may be a bug.

btw this works only in QT4.6.
 http://doc.trolltech.com/qt-maemo-4.6/qgraphicsitem.html#inputMethodHints 
 http://doc.trolltech.com/qt-maemo-4.6/qgraphicsitem.html#inputMethodHints 
 http://doc.trolltech.com/qt-maemo-4.6/qgraphicsitem.html#inputMethodHints 


ive tried this in a spin box and it works.

-
krk969


Hi Ram,


Here is the code that I am using. The hint is working fine for virtual 
keyboard, but I am looking for a physical keyboard solution. The physical 
keyboard input mode should automatically change to numeric for this field. What 
am I missing here?

 lineEditCallingCardNumber = new QLineEdit(formLayoutWidget);
 
lineEditCallingCardNumber-setObjectName(QString::fromUtf8(lineEditCallingCardNumber));
 lineEditCallingCardNumber-setInputMethodHints(Qt::ImhDialableCharactersOnly);

-
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. 
Learn more. 
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


RE: Qt question: How to automatically enable numeric input mode for a field?

2010-05-13 Thread Sudheer K .


Date: Fri, 14 May 2010 01:04:19 +0200
From: rkma...@gmx.com
Subject: RE: Qt question: How to automatically enable numeric input mode for   
a   field?
To: scifi@hotmail.com; maemo-developers@maemo.org



have you tried this hint  ? ( this worked for the spin box, I could use the 
hardware keyboard without pressing Fn )

Qt::ImhDigitsOnly

Qt::ImhFormattedNumbersOnly didnt work for me , for the spin box , I needed a 
dot (.) , since I was using a double spinbox. I'll be raising a bug for that, 
perhaps even the hint you are using below has similar issues.

WHen I spoke to some QT team members , what they told me was this should be 
done by default for some widgets, for example the spinbox there
shouldnt be a need to explicitly hint, it should be default, so it seems there 
could be issues to iron out here.

try using the above working hint and see how it goes.

-krk969

Ram,

I have tried Qt::ImhDigitsOnly and it works as expected. It will switch the 
physical and virtual keyboard to numeric input only. I guess I will use it at 
this moment (I don't really need p and + characters in the field). Thanks for 
your help.

Regards,
Sudheer
  
_
Hotmail is redefining busy with tools for the New Busy. Get more from your 
inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Problem running installed app (using icon)

2010-05-13 Thread saurabh aggarwal
Here is the output of dpkg -L

 /.
/usr
/usr/share
/usr/share/applications
/usr/share/applications/hildon
/usr/share/applications/hildon/myApp.desktop
/usr/share/doc
/usr/share/doc/myApp
/usr/share/doc/myApp/changelog.Debian.gz
/usr/share/icons
/usr/share/icons/hicolor
/usr/share/icons/hicolor/40x40
/usr/share/icons/hicolor/40x40/apps
/usr/share/icons/hicolor/40x40/apps/myApp.png
/usr/share/icons/hicolor/64x64
/usr/share/icons/hicolor/64x64/apps
/usr/share/icons/hicolor/64x64/apps/myApp.png
/usr/share/icons/hicolor/26x26
/usr/share/icons/hicolor/26x26/apps
/usr/share/icons/hicolor/26x26/apps/myApp.png
/usr/bin
/usr/bin/myApp


On Fri, May 14, 2010 at 1:22 AM, Daniil Ivanov daniil.iva...@gmail.comwrote:

 Hi Saurabh!

  Could you post output of the command:
  dpkg -L your_package_name

 Thanks, Daniil.

 On Thu, May 13, 2010 at 10:50 PM, Daniil Ivanov daniil.iva...@gmail.com
 wrote:
  Hi b0unc3!
 
  On Thu, May 13, 2010 at 4:41 PM, b0unc3 b0u...@email.it wrote:
 
 
  On Thu, May 13, 2010 at 2:17 PM, saurabh aggarwal
  aggarwal.saur...@gmail.com wrote:
 
  Ok, here's the Noob question -
  1) Do all apps need a .service file
 
  Yes, if you want your app to appear in the task navigator menu.
 
  No, not true! Only if you offer DBus methods. This not connected to
  navigator menu,
  whatever it is.
 
 
  2) What is the need when my application doesn't listen to any dbus
 event?
 
  DBus and osso context are not related.
 
  No, not true! They are. Osso initializes dbus as well.
 
 
 
  BTW, my app is a QT application.
 
  You can browse the source of some other qt apps to see how to get this
 done.
 
 
  -Saurabh
 
  On Thu, May 13, 2010 at 5:22 PM, b0unc3 b0u...@email.it wrote:
 
 
  On Thu, May 13, 2010 at 1:31 PM, saurabh aggarwal
  aggarwal.saur...@gmail.com wrote:
 
  Here it is -
 
  [Desktop Entry]
  Encoding=UTF-8
  Version=0.1
  Type=Application
  Name=myapp
  Exec=/usr/bin/myapp
  Icon=myapp
  X-Maemo-Category=Main
  X-Window-Icon=myapp
  X-Window-Icon-Dimmed=myapp
 
  I bet you need a valid osso context reference in your app. And also a
  good .service file (post it here if you have still problems)
  Follow this guide :
 
 http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Application_Development/Writing_a_new_maemo_application
 
 
  On Thu, May 13, 2010 at 4:56 PM, Faheem Pervez tripp...@gmail.com
  wrote:
 
  Start by posting the desktop file.
 
  On Thu, May 13, 2010 at 12:23 PM, saurabh aggarwal
  aggarwal.saur...@gmail.com wrote:
   Any ideas on how to debug.
  
 
  Best Regards,
  Faheem
 
   Regards,
   -Saurabh
  
   ___
   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
 
 
 
  If you have service file then you need to set application name on dbus
  interface or it will be killed after start
  of application in 2 seconds. Also you need X-Osso-Service line in
  desktop file. However, this is not your case.
 
  Thanks, Daniil.
 

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


Undefined reference error

2010-05-13 Thread Pallavi Kandhare
Hi,
I have 2 files : list1.h and list1.c, and I call some functions defined in 
list1.h in main function of main.c. 
list1.h is included in both list1.c and main.c.
Still i am getting the following error :
/test1file/src/main.c undefined reference to function-name
 
The list1.o file is not created. What changes do i need to make to my Makefile 
in order to remove this error.
 
Regards.


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