Re: [SailfishDevel] qml dbus send SMS

2015-03-17 Thread Alfonso Martone
If you use a shell to execute dbus-send, you may need to quote the "quoted" message string. Here this works for me from command-line (note that this does not update the database of SMS messages and does not let you know if it was actually sent): dbus-send --system --print-reply --dest=org.ofono /r

Re: [SailfishDevel] qml dbus send SMS

2015-03-17 Thread Michael Fuchs
This is exactly what the dbus call does. But your approach looks simpler, will try this one as well. On Tuesday 17 March 2015 19:16:20 Jonni Rainisto wrote: > Just a reminder to people that harbour QA will most likely reject > applications that send sms messages through dbus without opening offic

Re: [SailfishDevel] qml dbus send SMS

2015-03-17 Thread Jonni Rainisto
Just a reminder to people that harbour QA will most likely reject applications that send sms messages through dbus without opening official sms application. As recomended way is to open sms application with sms: tag (mailto: for email) where user can press send button himself. Like Qt.openUrlEx

Re: [SailfishDevel] qml dbus send SMS

2015-03-17 Thread Michael Fuchs
On Wednesday 18 March 2015 00:05:55 Andrey Kozhevnikov wrote: > smsIf.typedCall("startSMS", [{"type":"as", "value":[""]}, {"type":"s", > "value":smsText.text}]) Thanks, that works. I was already close to this one, but didnt find out, how to define an array of strings.

Re: [SailfishDevel] qml dbus send SMS

2015-03-17 Thread Andrey Kozhevnikov
you need to use different method: smsIf.typedCall("startSMS", [{"type":"as", "value":[""]}, {"type":"s", "value":smsText.text}]) 17.03.2015 23:49, Michael Fuchs пишет: Hi there, this is my first post in this list, so hello to everyone. I want to write a small App, which helps writing SMS fo

Re: [SailfishDevel] Update previous page

2015-03-17 Thread Alejandro Exojo
El Tuesday 17 March 2015, Chris Walker escribió: > The problems for me are 1) I need to attach models to lots of the > tables in the CAMRA database file and I struggle with models, and 2) I > cannot make the app connect to two databases. In doing item 1, I would > also want the app to update a prev

[SailfishDevel] qml dbus send SMS

2015-03-17 Thread Michael Fuchs
Hi there, this is my first post in this list, so hello to everyone. I want to write a small App, which helps writing SMS for booking a parking ticket in Vienna/Austria and later other cities as well. As i read the recommended way for sending messages from qml is using dbus. I found this comman

Re: [SailfishDevel] Update previous page

2015-03-17 Thread Chris Walker
On Tue, 17 Mar 2015 19:16:53 +0500 Andrey Kozhevnikov wrote: > No, you wrong. In your link read " Connecting Signals to Methods and > Signals". > > 17.03.2015 19:11, Florian Desneux пишет: > > Great news: I succeed it :) Thanks Andrey! > > > > Side note: dialog.readPropertyChanged should be >

Re: [SailfishDevel] Update previous page

2015-03-17 Thread Andrey Kozhevnikov
No, you wrong. In your link read " Connecting Signals to Methods and Signals". 17.03.2015 19:11, Florian Desneux пишет: Great news: I succeed it :) Thanks Andrey! Side note: dialog.readPropertyChanged should be dialog.*_on_*ReadPropertyChanged (see http://doc.qt.io/qt-5/qtqml-syntax-signals.

Re: [SailfishDevel] Update previous page

2015-03-17 Thread Florian Desneux
Great news: I succeed it :) Thanks Andrey! Side note: dialog.readPropertyChanged should be dialog.*on*ReadPropertyChanged (see http://doc.qt.io/qt-5/qtqml-syntax-signals.html) for people who want to achieve this in the future. 2015-03-17 14:07 GMT+01:00 Florian Desneux : > I'm afraid I don't und

Re: [SailfishDevel] Update previous page

2015-03-17 Thread Florian Desneux
I'm afraid I don't understand or I'm doing my stuff in the wrong way... I think I must read some documentation about signal... Andrey: Your example suggests that I need a property readProperty on my 3th page and connect it to a signal still on my 3th page so my second page is aware if the change?

Re: [SailfishDevel] Update previous page

2015-03-17 Thread François
Hi Florian, When you mark a file as read, your model should be updated and the list on the previous page should be updated accordingly (this is done automatically). Hope this can help you. À mar. mars 17 13:01:04 2015 GMT+0100, Florian Desneux a écrit : > Hello, > > I'm wondering how can I r

Re: [SailfishDevel] Update previous page

2015-03-17 Thread Andrey Kozhevnikov
pageStack.push returning you page object, so you can interact with it. for example: var dialog = pageStack.push(Qt.resolvedUrl("SomeDialog.qml")) dialog.readPropertyChanged.connect(function() { markAsRead(dialog.readProperty) }) or you can use signal inside your page instead of property. 17.

[SailfishDevel] Update previous page

2015-03-17 Thread Florian Desneux
Hello, I'm wondering how can I refresh the page when the little white round in the corner is clicked or a swipe left to right from the corner is triggered? Meaning: I'm on my 3th app page, I trigger an action (i.e. mark as read the file), I go back to my 2th page on which there is a list of files

Re: [SailfishDevel] (no subject)

2015-03-17 Thread Tone Kastlunger
I believe SDL library is open sourced on SailfihsOS; perhaps you could submit a patch that fixes the issue? Best, tk On Mon, Mar 16, 2015 at 10:05 PM, Iosif Hamlatzis wrote: > Unfortunately the SDL_SetHint function didn't work, the game still only > closes as if you hold the device in portrait