Re: [SailfishDevel] Javascript Object problem

2015-03-20 Thread Luis Manuel Ramos Da Costa
I don't know if this can help, but Javascript and QML work in separate
process, and because of this any variable change on JS to be read in QML
(or vice-versa) should be readed using a onXXXChanged (XXX bein the
variable name).

I had a similar problem with reading values from a JSON object, where the
QML was returning -1 from a variable where the value number, 100 for
example, was already lodaded.

2015-03-19 12:50 GMT+00:00 Andrey Kozhevnikov coderusin...@gmail.com:

 Hello!

 Can someone help me to understand why this simple code working bad:
 https://gist.github.com/CODeRUS/3911cfe69ab9866e99da
 Just click on Add button and compare input and result id inside Object.
 It's different.

 Best regards,
 Andrey
 ___
 SailfishOS.org Devel mailing list
 To unsubscribe, please send a mail to devel-unsubscribe@lists.
 sailfishos.org

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] QtMultimedia support

2015-02-25 Thread Luis Manuel Ramos Da Costa
Dear Florian,

Have you tried with SoundEffect ? I had problems with Audio and now I am
using SoundEffect, maybe this can work.

Best Regards,
Luis Da Costa

2015-02-25 6:21 GMT+00:00 Florian Desneux florian.desn...@gmail.com:

 Hello,

 Do you plan a support for QML QtMultimedia (mediaPlayer) for the VM?

 If been told on the Jolla forum that it's not supported.

 Is there a way to play mp3 sound in QML on Sailfish or nothing exists for
 the moment on the VM?

 I'm on Windows btw.

 Regards

 P.S.: first time I post through a mailing list :) There is always a first
 time you will say...


 --
 *Florian Desneux*


 ___
 SailfishOS.org Devel mailing list
 To unsubscribe, please send a mail to
 devel-unsubscr...@lists.sailfishos.org

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] How to show the Connection Dialog ?

2015-02-23 Thread Luis Manuel Ramos Da Costa
Thank you for your answer.

Is this an harbour viable solution ?

Best Regards,
Luis Da Costa

2015-02-23 10:21 GMT+00:00 Kimmo Lindholm kimmo.lindh...@eke.fi:

  at least over dbus with e.g.



 dbus-send --type=method_call --print-reply
 --dest=com.jolla.lipstick.ConnectionSelector /
 com.jolla.lipstick.ConnectionSelectorIf.openConnection string:wlan



 *From:* devel-boun...@lists.sailfishos.org [mailto:
 devel-boun...@lists.sailfishos.org] *On Behalf Of *Luis Manuel Ramos Da
 Costa
 *Sent:* 23. helmikuuta 2015 1:24
 *To:* Sailfish OS Developers
 *Subject:* [SailfishDevel] How to show the Connection Dialog ?



 Hello Everyone,

 I've been making an application which connects to the internet in order to
 parse the json code and get the informations to show on the screen.

 I am using javascript to do all the work, but I can't find a way to show
 the Connection Dialog when there is Internet Connection ON.

 How can I do this ?

 Best Regards,

 Luis Da Costa

 ___
 SailfishOS.org Devel mailing list
 To unsubscribe, please send a mail to
 devel-unsubscr...@lists.sailfishos.org

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] How to show the Connection Dialog ?

2015-02-23 Thread Luis Manuel Ramos Da Costa
Thank you :)

Just one last question, can I call dbus-send over QML or Javascript ? Or do
I have to use C++ for that ?

2015-02-23 11:12 GMT+00:00 Andrey Kozhevnikov coderusin...@gmail.com:

  yes dbus calls are allowed for harbour

 23.02.2015 15:33, Luis Manuel Ramos Da Costa пишет:

   Thank you for your answer.

  Is this an harbour viable solution ?

  Best Regards,
  Luis Da Costa

 2015-02-23 10:21 GMT+00:00 Kimmo Lindholm kimmo.lindh...@eke.fi:

  at least over dbus with e.g.



 dbus-send --type=method_call --print-reply
 --dest=com.jolla.lipstick.ConnectionSelector /
 com.jolla.lipstick.ConnectionSelectorIf.openConnection string:wlan



 *From:* devel-boun...@lists.sailfishos.org [mailto:
 devel-boun...@lists.sailfishos.org] *On Behalf Of *Luis Manuel Ramos Da
 Costa
 *Sent:* 23. helmikuuta 2015 1:24
 *To:* Sailfish OS Developers
 *Subject:* [SailfishDevel] How to show the Connection Dialog ?



 Hello Everyone,

 I've been making an application which connects to the internet in order
 to parse the json code and get the informations to show on the screen.

 I am using javascript to do all the work, but I can't find a way to show
 the Connection Dialog when there is Internet Connection ON.

 How can I do this ?

 Best Regards,

 Luis Da Costa

 ___
 SailfishOS.org Devel mailing list
 To unsubscribe, please send a mail to
 devel-unsubscr...@lists.sailfishos.org




 ___
 SailfishOS.org Devel mailing list
 To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org



 ___
 SailfishOS.org Devel mailing list
 To unsubscribe, please send a mail to
 devel-unsubscr...@lists.sailfishos.org

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

[SailfishDevel] How to show the Connection Dialog ?

2015-02-22 Thread Luis Manuel Ramos Da Costa
Hello Everyone,

I've been making an application which connects to the internet in order to
parse the json code and get the informations to show on the screen.

I am using javascript to do all the work, but I can't find a way to show
the Connection Dialog when there is Internet Connection ON.

How can I do this ?

Best Regards,
Luis Da Costa
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Sailfish OS porting request

2015-02-16 Thread Luis Manuel Ramos Da Costa
Don't be so negatif :) Remember that Android with the same age wasn't as
good and as inovative as SailfishOS (I had a HTC Dream I know what I
suffered xD)

Best Regards,
Luis Da Costa

2015-02-16 10:24 GMT+00:00 Goulagman goulag...@gmail.com:

 Hi Himanshu,

 Since Sailfish OS doesn't even work well on the Jolla, I would suggest you
 to stick to Android if it's your only phone ;). I've been using it since
 the beginning and I'm counting days to my next birthday so I can ask for an
 Android device.

 My 2 cents,

 Alexandre.

 On Fri, Feb 13, 2015 at 3:17 PM, Anand.R.Kris anandrk...@gmail.com
 wrote:

 Hi Himanshu,

 I suggest the below forums for discussions related to installing
 SailfishOS on other mobiles.

1.

IRC channel #sailfishos-porters where you can get help.
2.

http://forum.xda-developers.com/jolla-sailfish/general
3.

http://talk.maemo.org/


 On Fri, Feb 13, 2015 at 4:18 PM, Himanshu Shahi 
 himanshugeeky...@gmail.com wrote:

 Hello I am fan of Sailfish OS , I don't own a Jolla device but can I ask
 you to officially support our device. Its called Xiaomi Redmi 1S. I know
 you wouldnt consider the request of one person but still can you port a
 Sailfish OS to the device. Please

 ___
 SailfishOS.org Devel mailing list
 To unsubscribe, please send a mail to
 devel-unsubscr...@lists.sailfishos.org




 --
 Cheers,
 Anand Radhakrishnan
 When there is a drive, there is a path. [C:\]

 ___
 SailfishOS.org Devel mailing list
 To unsubscribe, please send a mail to
 devel-unsubscr...@lists.sailfishos.org



 ___
 SailfishOS.org Devel mailing list
 To unsubscribe, please send a mail to
 devel-unsubscr...@lists.sailfishos.org

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Problem with playing sounds in first application

2015-02-04 Thread Luis Manuel Ramos Da Costa
Thank you for your help.

Which is weird is that I can play the music, but after it ends I can't play
it again.

The status begins at 3 then 6 when play, and 2 when ending playing. When I
press the status stays at 2.

I'll try to use SoundEffectin order to see if it solves anything, anyway
making the song 4 or more seconds doesn't solve the problem, but thank you
for the proposition :)

Best Regards,
Luis Da Costa

2015-02-04 13:07 GMT+00:00 Juho Hämäläinen juho.hamalai...@tieto.com:

 On 04.02.2015 01:13, Luis Manuel Ramos Da Costa wrote:

 Hello Everyone,

 I've started developing for Jolla today, I am quite familiarez with the
 Qt/C++ language but not enough with the QML part.

  Audio {
  id  : whipSound
  loops   : Audio.Infinite
  source:qrc:/sounds/resources/sounds/whipSound.flac
  }
  }
 }


 For this particular case if you are going to play your sample only once,
 remove the loops part, with loops Audio.Infinite the sample will loop
 indefinitely until the playback is stopped.

 As to just playing short samples, SoundEffect is better suited to the
 task. SoundEffect unfortunately doesn't accept flac files as source, you'll
 need to use wav instead, but as the samples won't be long anyway it's not
 that bad. Using SoundEffect the above code part would be something like

 SoundEffect {
 id  : whipSound
 source  : qrc:/sounds/resources/sounds/whipSound.wav
 }

  And I have a problem with this. The song plays one time by taping on the
 picture (the song is a .flac file with 1second long of audio), and after
 that if I press the picture again it simply doesn't play.


 This sounds like a bug (which I couldn't reproduce when quickly testing
 (as you described it). I only saw that trying to play 1 second long flac
 with Audio always failed, raising the length to 4s and the sample played
 fine. Something is wrong anyway so I'll investigate more.


 --
 juho
 ___
 SailfishOS.org Devel mailing list
 To unsubscribe, please send a mail to devel-unsubscribe@lists.
 sailfishos.org

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org