Re: [SailfishDevel] Keep an application running without keeping the window open

2018-02-19 Thread Kimmo Lindholm
Yes. That is one case.

From: Marcin Mielniczuk [mailto:marmistrz...@gmail.com]
Sent: 19. helmikuuta 2018 9:55
To: Sailfish OS Developers; Kimmo Lindholm
Subject: Re: [SailfishDevel] Keep an application running without keeping the 
window open


Do I understand correctly that the dbus daemons run as usual systemd --user 
daemons and simply communicate over dbus?

On 18.02.2018 22:59, Kimmo Lindholm wrote:
One small daemon you can take a look is my call fhasher 
https://github.com/kimmoli/callflasher
for complex one, take a look at tohkbd2 . it has 2 daemons, system and user, 
and ui app that all communicate together over dbus

-kimmo

Lähettäjä: Devel [mailto:devel-boun...@lists.sailfishos.org] Puolesta Marcin 
Mielniczuk
Lähetetty: sunnuntai 18. helmikuuta 2018 21.29
Vastaanottaja: Adam Pigg <a...@piggz.co.uk><mailto:a...@piggz.co.uk>; Sailfish 
OS Developers <devel@lists.sailfishos.org><mailto:devel@lists.sailfishos.org>
Aihe: Re: [SailfishDevel] Keep an application running without keeping the 
window open

Is there any minimal example I could take a look at? I've never done anything 
more with dbus than dbus-send.
On 17.02.2018 22:06, Adam Pigg wrote:
Hi

You could create a dbus service for the application to talk to.  The gui 
application can launch the dbus service if it isnt running, and connect next 
time it is opened, leaving it running in the background.
Adam

On Sat, 17 Feb 2018 at 20:58 rinigus 
<rinigus@gmail.com<mailto:rinigus@gmail.com>> wrote:
Hi,

from the point of view of portability, having a split GUI and backend should be 
nicely portable. Even focusing on systemd would cover large portion of Linux 
distributions, but you don't have to include any systemd dependencies as such. 
On desktop, it would allow you to move the backend into dedicated hardware, if 
you wish. Also, it would survive X11 crashes as a bonus. So, if you plan to run 
it 24x7, service running on the background is a good way of doing it.

But maybe someone has better idea.

Cheers,

Rinigus

On Sat, Feb 17, 2018 at 9:16 PM, Marcin Mielniczuk 
<marmistrz...@gmail.com<mailto:marmistrz...@gmail.com>> wrote:

I'm not sure if that's a good choice when trying to achieve portability. 
Usually on desktop you'd rather have a monolithic application with just 
minimize to tray.

Any other options?

On 05.02.2018 10:33, rinigus wrote:
Hi,

the obvious solution is to run service that is 24/7 on and separate client for 
GUI. That's what stock messaging is doing. I would recommend it and use some 
simple messaging API for communicating between them. There are probably many 
APIs to choose that will allow you to set it up simply.

If you can withstand short shutdown of the service then you can combine it into 
the same application. It would require that application will start in GUI or 
server mode depending on command line option. If started in GUI mode, you would 
have to

* shut down service via systemd
* establish new connections

and on GUI exit you would have to

* drop all connections
* start service via systemd

The latter is the way OSM Scout Server works with the adjustment that its using 
systemd sockets to keep it switched off when user is not accessing it. Note 
that it was done for historical reasons (signaling between parts was 
implemented via Qt) and since its mostly used as a service anyway (users don't 
need to access GUI for weeks).

I would still recommend splitting service/GUI parts and use some messaging 
protocol in between. Myself I would have used zeromq, but you could choose 
probably many others.

Cheers,

Rinigus

On Mon, Feb 5, 2018 at 11:17 AM, Marcin Mielniczuk 
<marmistrz...@gmail.com<mailto:marmistrz...@gmail.com>> wrote:
Hi,

When creating SFOS applications which should run 24/7 (e.g. IMs) we
would like to achieve similar behavior as the stock applications, e.g.
the stock e-mail client: the sync (*) runs in the background, even
though the application is closed. A window staying open just to make
sure the sync goes on clutters the open app view and makes it more
difficult to manage the open applications.

On a desktop DE one would simply minimize the application to tray.
Alternatively, one could create a daemon which the client app would
communicate with using UNIX sockets, but it greatly increases the
complexity of the application and slows down the development.

What's the easiest way to keep the sync process in the background
without keeping the window open?

Regards,
Marcin

(*) when speaking sync, I mean any kind of waiting for a remote event,
no matter if it's done by idle TCP (which is good) or HTTP polling
(which is not good)


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





___

SailfishOS.org Devel m

Re: [SailfishDevel] Keep an application running without keeping the window open

2018-02-18 Thread Kimmo Lindholm
One small daemon you can take a look is my call fhasher 
https://github.com/kimmoli/callflasher
for complex one, take a look at tohkbd2 . it has 2 daemons, system and user, 
and ui app that all communicate together over dbus

-kimmo

Lähettäjä: Devel [mailto:devel-boun...@lists.sailfishos.org] Puolesta Marcin 
Mielniczuk
Lähetetty: sunnuntai 18. helmikuuta 2018 21.29
Vastaanottaja: Adam Pigg ; Sailfish OS Developers 

Aihe: Re: [SailfishDevel] Keep an application running without keeping the 
window open

Is there any minimal example I could take a look at? I've never done anything 
more with dbus than dbus-send.
On 17.02.2018 22:06, Adam Pigg wrote:
Hi

You could create a dbus service for the application to talk to.  The gui 
application can launch the dbus service if it isnt running, and connect next 
time it is opened, leaving it running in the background.
Adam

On Sat, 17 Feb 2018 at 20:58 rinigus 
> wrote:
Hi,

from the point of view of portability, having a split GUI and backend should be 
nicely portable. Even focusing on systemd would cover large portion of Linux 
distributions, but you don't have to include any systemd dependencies as such. 
On desktop, it would allow you to move the backend into dedicated hardware, if 
you wish. Also, it would survive X11 crashes as a bonus. So, if you plan to run 
it 24x7, service running on the background is a good way of doing it.

But maybe someone has better idea.

Cheers,

Rinigus

On Sat, Feb 17, 2018 at 9:16 PM, Marcin Mielniczuk 
> wrote:

I'm not sure if that's a good choice when trying to achieve portability. 
Usually on desktop you'd rather have a monolithic application with just 
minimize to tray.

Any other options?

On 05.02.2018 10:33, rinigus wrote:
Hi,

the obvious solution is to run service that is 24/7 on and separate client for 
GUI. That's what stock messaging is doing. I would recommend it and use some 
simple messaging API for communicating between them. There are probably many 
APIs to choose that will allow you to set it up simply.

If you can withstand short shutdown of the service then you can combine it into 
the same application. It would require that application will start in GUI or 
server mode depending on command line option. If started in GUI mode, you would 
have to

* shut down service via systemd
* establish new connections

and on GUI exit you would have to

* drop all connections
* start service via systemd

The latter is the way OSM Scout Server works with the adjustment that its using 
systemd sockets to keep it switched off when user is not accessing it. Note 
that it was done for historical reasons (signaling between parts was 
implemented via Qt) and since its mostly used as a service anyway (users don't 
need to access GUI for weeks).

I would still recommend splitting service/GUI parts and use some messaging 
protocol in between. Myself I would have used zeromq, but you could choose 
probably many others.

Cheers,

Rinigus

On Mon, Feb 5, 2018 at 11:17 AM, Marcin Mielniczuk 
> wrote:
Hi,

When creating SFOS applications which should run 24/7 (e.g. IMs) we
would like to achieve similar behavior as the stock applications, e.g.
the stock e-mail client: the sync (*) runs in the background, even
though the application is closed. A window staying open just to make
sure the sync goes on clutters the open app view and makes it more
difficult to manage the open applications.

On a desktop DE one would simply minimize the application to tray.
Alternatively, one could create a daemon which the client app would
communicate with using UNIX sockets, but it greatly increases the
complexity of the application and slows down the development.

What's the easiest way to keep the sync process in the background
without keeping the window open?

Regards,
Marcin

(*) when speaking sync, I mean any kind of waiting for a remote event,
no matter if it's done by idle TCP (which is good) or HTTP polling
(which is not good)


___
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

Re: [SailfishDevel] how to disable swipe (from left, from right) on Silica PageStack

2018-02-18 Thread Kimmo Lindholm
Set backNavigation and forwardNavigation to false when you dont want to allow 
navigation.
(not tested, just looked from sources)

ref 
https://github.com/dm8tbr/sailfishsilica-qt5/blob/master/usr/lib/qt5/qml/Sailfish/Silica/Page.qml#L88

-kimmo

Lähettäjä: Devel [mailto:devel-boun...@lists.sailfishos.org] Puolesta Zoltán 
Lutor
Lähetetty: sunnuntai 18. helmikuuta 2018 19.08
Vastaanottaja: Sailfish OS Developers 
Aihe: [SailfishDevel] how to disable swipe (from left, from right) on Silica 
PageStack

Hi,
Is there any possibility for enabling/disabling 'horizontal' gestures on Page 
of PageStack?
[Or in general in the applciation]
Mainly form left-to-right, it is quite annoying when accidentally one leaves 
game page...

Thx,
Zoltan

[https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]

Virus-free. 
www.avast.com


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

Re: [SailfishDevel] Nemo DBus typedCall

2017-06-11 Thread Kimmo Lindholm
You’re missing the property name. You need:

string:Powered variant:boolean:true

ref:
https://together.jolla.com/question/56437/i-would-like-to-toggle-internet-connectivity-via-terminal-with-dbus/

typedCall('SetProperty', [ {'type':'s', 'value': 'Powered'}, {'type':'v', 
'value': valuet}], …);

ref: https://talk.maemo.org/archive/index.php/t-92303.html


-kimmo

From: Devel [mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Dylan Van 
Assche via Devel
Sent: 10. kesäkuuta 2017 12:45
To: Sailfish OS Developers mailing list
Subject: [SailfishDevel] Nemo DBus typedCall

Hi devs,

I'm playing around with the Nemo DBus QML plugin but I'm a little bit stuck 
when using the function typedCall().




DBusInterface {

id: wifi

bus: DBus.SystemBus

service: 'net.connman'

path: '/net/connman/technology/wifi'

iface: 'net.connman.Technology'



signalsEnabled: true



function setState(powered) {

var value = powered? 'true': 'false'

typedCall('SetProperty',

  {'type':'s', 'value':value},

  function() { console.log('[INFO] wifi power state set') },

  function() { console.log('[ERROR] wifi power state 
failed') })

}



function propertyChanged(name, value) {

console.log("WiFi changed NAME=%1 VALUE=%2".arg(name).arg(value))

}

}

But it seems that I'm doing something wrong when I try to enable/disable wifi. 
It's my first attempts with DBus but I have managed to read the signals with 
the plugin without any issues.

Cheers,
Dylan

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

Re: [SailfishDevel] Custom in-app icons

2017-03-04 Thread Kimmo Lindholm
Hi,

You need to make your own iconprovider. Explained here 
https://together.jolla.com/question/44325/iconbutton-how-to-use-own-icons-with-highlight/
 

-kimmo
-Original Message-
From: Devel [mailto:devel-boun...@lists.sailfishos.org] On Behalf Of decon
Sent: 4. maaliskuuta 2017 18:09
To: devel
Subject: [SailfishDevel] Custom in-app icons

Hi,

Does anyone know how to use custom icons (monocrome) with Silica theme 
highlighting?

If I do as described at https://sailfishos.org/develop/docs/jolla-ambient/ it 
works with Silica icons, but I have not managed to do it with custom icons. The 
following code displays the icon, but highlighting does not work when clicking 
on the icon.

IconButton {
icon.source: "qrc:/icons/z1.00/icon-m-case-sensitive.png?" + (pressed ?

 Theme.highlightColor :

 Theme.primaryColor)
onClicked: { console.log("Clicked icon") } }

There were no error messages in the log either.
___
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] Troubleshooting *DAV

2017-01-05 Thread Kimmo Lindholm
openssl requires full chain bundles, it can’t do discoveries on the fly, like 
browsers do.

From: Devel [mailto:devel-boun...@lists.sailfishos.org] On Behalf Of E.S. 
Rosenberg
Sent: 5. tammikuuta 2017 22:03
To: Sailfish OS Developers
Subject: Re: [SailfishDevel] Troubleshooting *DAV

Hi Chirs et al,
Sorry it took me a while had another look today.
Through your instructions I found the following line:
Jan 05 21:38:41 Sailfish carddav-client[2705]: [W] 
CardDav::sslErrorsOccurred:451 - void CardDav::sslErrorsOccurred(const 
QList&) SSL errors occurred, aborting: ("The issuer certificate of a 
locally looked up certificate could not be found", "No certificates could be 
verified")

This reminded me of the fact that SSL checkers had pointed out that I was not 
using the fullchain cert, though browsers seemed (both on Jolla and desktop 
Linux) to still trust my server it seems the carddav client did need the full 
chain, after turning that on it started working.
Side question:
Will changes I make server side to my contacts sync back into my phone or 
should I edit my contacts on the phone only? (I recall there are 2 contact dbs 
one that only root can edit and the other one 'overlays' it)
Thanks!
Eli

2016-12-21 2:35 GMT+02:00 Chris Adams 
>:
Hi Eli,

Sorry for top posting but I'm on OWA which doesn't handle quoting unfortunately.
Please see 
https://sailfishos.org/wiki/CalDAV_and_CardDAV_Community_Contributions#Sync_Logs
 for information about collecting debug output from the C*DAV plugins.

Your issue sounds a lot like https://bugs.merproject.org/show_bug.cgi?id=1689 
although it may not be due to a captive portal in your case but instead some 
particular SSL response case which we may not handle correctly.

Best regards,
Chris.


From: Devel 
[devel-boun...@lists.sailfishos.org] 
on behalf of E.S. Rosenberg 
[es.rosenberg+sailfishos@gmail.com]
Sent: Wednesday, December 21, 2016 8:12 AM
To: Sailfish OS Developers
Subject: [SailfishDevel] Troubleshooting *DAV

Hi everyone,
This is mainly to the gals and girls working on the *DAV support.

Can anyone give me some pointers on how to trouble shoot on the Jolla side?


Problem details:
I set up a sogo 3 (nightly) server to have something to sync my
calander and contacts against.

When I create the *DAV account it allows me to save but then it
immediately after that when it tries to sync fails with "Account needs
to be updated" (new password).

On the server side I see the following 4 requests come in while I am
creating the account:
 [ip] "PROPFIND /SOGo/dav/[user] HTTP/1.1" 401 0/85 0.198 - - 0
 [ip] "PROPFIND /SOGo/dav/[user] HTTP/1.1" 207 324/85 0.274 - - 0
 [ip] "PROPFIND /SOGo/dav/[user] HTTP/1.1" 207 364/120 0.203 - - 0
 [ip] "PROPFIND /SOGo/dav/[user]/Calendar/ HTTP/1.1" 207 473/273 0.213
2124 77% 0

After which no further requests are seen *ever*, not after I enter a
new password or anything else.

Connection (jolla): 3/4G (carrier grade NAT)
Server side: https, allowing only TLS >= 1.0 and strong ciphers.

So any suggestions on how to further troubleshoot this are very welcome.

Thanks!
Eli
___
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] ngfd ini files documentation

2016-12-29 Thread Kimmo Lindholm
fyi 
https://together.jolla.com/question/37387/music-playback-is-interrupted-if-a-notification-occurs-while-notification-volume-is-muted/

From: Devel [mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Krzysztof 
Lesiak
Sent: 29. joulukuuta 2016 22:38
To: Sailfish OS Developers
Subject: Re: [SailfishDevel] ngfd ini files documentation


Alright, now I've switched to using libngf-qt5 for my testing application so I 
don't have to rely on triggering the right notifications.



Plus, I've found the config lines interfering with my music playback:



sound.stream.media.role = notification
sound.stream.droid.device.additional-route = AUDIO_DEVICE_OUT_SPEAKER



When those two are commented out in an event file, the notification tone is 
played "on top" of the currently played music.

The first one is the main offender because it mutes playback, but if the second 
is left uncommented, there are audio hitches at the beginning and the end of 
notification tone playback.



I literally just came up with it and haven't tested it thoroughly, but if there 
aren't any unwanted effects introduced by my changes, is there any way I could 
propose a patch for inclusion into a future update? This was one of my main 
annoyances with the OS and I think it makes for a far better user experience if 
music playback isn't completely muted on certain types of events.

Also, if there are any sailors responsible for ngfd reading this list, what do 
you think about this?



Regards,

Krzysztof

On 26.12.2016 12:20, Kimmo Lindholm wrote:
For testing, you can use e.g. a python script, see here 
https://talk.maemo.org/showthread.php?t=92303

-kimmo


From: Devel [mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Krzysztof 
Lesiak
Sent: 26. joulukuuta 2016 12:41
To: devel@lists.sailfishos.org<mailto:devel@lists.sailfishos.org>
Subject: [SailfishDevel] ngfd ini files documentation


Hi all,



I wanted to ask if there is any documentation on ngfd, specifically about the 
event .ini files. I'd like to prevent IM/SMS tones muting audio playback 
because it's pretty annoying to me when I'm listening to music. Someone on IRC 
already pointed me to ngfd being responsible for that policy, but there isn't 
any real documentation in the git repository. Can anyone explain the general 
format of the .ini files in events.d? Also, is there a better way to test my 
changes than sending myself messages from another device?



Best Regards,

Krzysztof




___

SailfishOS.org Devel mailing list

To unsubscribe, please send a mail to 
devel-unsubscr...@lists.sailfishos.org<mailto:devel-unsubscr...@lists.sailfishos.org>

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

Re: [SailfishDevel] ngfd ini files documentation

2016-12-26 Thread Kimmo Lindholm
For testing, you can use e.g. a python script, see here 
https://talk.maemo.org/showthread.php?t=92303

-kimmo


From: Devel [mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Krzysztof 
Lesiak
Sent: 26. joulukuuta 2016 12:41
To: devel@lists.sailfishos.org
Subject: [SailfishDevel] ngfd ini files documentation


Hi all,



I wanted to ask if there is any documentation on ngfd, specifically about the 
event .ini files. I'd like to prevent IM/SMS tones muting audio playback 
because it's pretty annoying to me when I'm listening to music. Someone on IRC 
already pointed me to ngfd being responsible for that policy, but there isn't 
any real documentation in the git repository. Can anyone explain the general 
format of the .ini files in events.d? Also, is there a better way to test my 
changes than sending myself messages from another device?



Best Regards,

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

Re: [SailfishDevel] How to make cover display the firstPage scaled

2016-12-02 Thread Kimmo Lindholm
cover: null

From: Devel [mailto:devel-boun...@lists.sailfishos.org] On Behalf Of joao 
morgado
Sent: 2. joulukuuta 2016 4:05
To: devel@lists.sailfishos.org
Subject: [SailfishDevel] How to make cover display the firstPage scaled

Hi sailors

My app UI is very simple, basically is just a timer clock, so the cover should 
look the same but scaled to fit Cover's size.
Afaik, android apps have the same behaviour, the cover is just a scaled down 
display of the app fullscrean display.
The following code works but doenst scale the content:


initialPage: Component { FirstPage { } }

cover: initialPage //Qt.resolvedUrl("cover/CoverPage.qml")





So any ideias how to solve this ?



Thanks

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

Re: [SailfishDevel] Documentation for mlite5

2016-11-05 Thread Kimmo Lindholm
Seems it is fixed in sailfishapp.prf
Earlier, adding PKGCONFIG did break things. Now those are already in, so just 
adding PKGCONFIG += mlite5 is enough.

ref: https://sailfishos.org/develop/sdk-overview/develop-packaging-apps/

-kimmo


From: Devel [mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Marcin 
Mielniczuk
Sent: 5. marraskuuta 2016 11:30
To: Sailfish OS Developers
Subject: Re: [SailfishDevel] Documentation for mlite5


Why do I need CONFIG += link_pkgconfig? It seemed to work with only PKGCONFIG 
+= mlite5, but maybe I just didn't find the pitfall.



And I didn't have PKGCONFIG += sailfishapp at all in my pro, just CONFIG += 
sailfishapp

Marcin
On 05.11.2016 08:07, Kimmo Lindholm wrote:
Yes. +1 for docs.

PKGCONFIG is a good way doing ir.

In .pro

CONFIG += link_pkgconfig sailfishapp
PKGCONFIG += mlite5 sailfishapp

in .spec
BuildRequires: pkgconfig(mlite5)


-kimmo


Lähettäjä: Devel 
<devel-boun...@lists.sailfishos.org><mailto:devel-boun...@lists.sailfishos.org> 
käyttäjän Marcin Mielniczuk 
<marmistrz...@gmail.com><mailto:marmistrz...@gmail.com> puolesta
Lähetetty: 4. marraskuuta 2016 22:29:02
Vastaanottaja: Sailfish OS Developers
Aihe: [SailfishDevel] Documentation for mlite5

Is there any online documentation regarding mlite5? I'm not really sure
how I should use it in my project, whether I should include 
or . What is the preferred way of achieving decent
linking? I found some examples using PKGCONFIG - is it the good way?

There should be at least a minimal example in the README, the rest can
be derived from the doxygen comments. But, since the doxygen comments
are already there, why not put the docs online?

--
Marcin


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




___

SailfishOS.org Devel mailing list

To unsubscribe, please send a mail to 
devel-unsubscr...@lists.sailfishos.org<mailto:devel-unsubscr...@lists.sailfishos.org>

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

Re: [SailfishDevel] Documentation for mlite5

2016-11-05 Thread Kimmo Lindholm
Yes. +1 for docs.

PKGCONFIG is a good way doing ir.

In .pro

CONFIG += link_pkgconfig sailfishapp
PKGCONFIG += mlite5 sailfishapp

in .spec

BuildRequires: pkgconfig(mlite5)


-kimmo


Lähettäjä: Devel  käyttäjän Marcin 
Mielniczuk  puolesta
Lähetetty: 4. marraskuuta 2016 22:29:02
Vastaanottaja: Sailfish OS Developers
Aihe: [SailfishDevel] Documentation for mlite5

Is there any online documentation regarding mlite5? I'm not really sure
how I should use it in my project, whether I should include 
or . What is the preferred way of achieving decent
linking? I found some examples using PKGCONFIG - is it the good way?

There should be at least a minimal example in the README, the rest can
be derived from the doxygen comments. But, since the doxygen comments
are already there, why not put the docs online?

--
Marcin


___
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] SilicaWebView, google sign-in button and app authorization

2016-10-16 Thread Kimmo Lindholm
But that should start for new ones on 20th oct, and full blockage april 2017 ?
So you should be still fine.

(this is not helping you problem though)

From: Devel [mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Oleg Linkin
Sent: 16. lokakuuta 2016 17:28
To: Sailfish OS Developers
Subject: Re: [SailfishDevel] SilicaWebView, google sign-in button and app 
authorization

I don't know, but 
http://www.theregister.co.uk/2016/08/23/google_to_block_web_views_from_using_its_oauth/

2016-10-16 16:43 GMT+03:00 Slava Monich 
>:
Please excuse my ignorance but how can the server possibly tell the difference 
between the browser and a webview sending exactly the same HTTP requests? Just 
curious.

Cheers,
-Slava

There is no working solution because google prohibited oauth authorization via 
webviews

2016-10-16 15:02 GMT+03:00 >:
Care to share your code?

Oleg Linkin kirjoitti ma lokakuuta 10 09:08:52 2016 GMT+0300:
> Hello developers.
> I try to implement authorization via google in my applications but I have
> one problem.
> In sailfish browser authorization works the next way:
> Click on google sign-in button
> Open new page with google authorization
> Denied/Grant permissions to app
> Page closed automatically
> Page with google sign-in button reloaded automatically
>
> But in webview the last 2 steps doesn't work. Does anybody has ideas how I
> can do this?
>
> Thx
>


___
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] PageStack: from push pushAttached directly to initialPage

2016-09-08 Thread Kimmo Lindholm
Is this what you are looking for??


function getBottomPageId()
{
return pageStack.find( function(page)
{
return (page._depth === 0)
})
}

 

pageStack.pop(getBottomPageId(), PageStackAction.Immediate)
/* Remove all except bottom page, Thansk for Acce:
* 
https://together.jolla.com/question/44103/how-to-remove-all-except-bottom-page-from-pagestack/#post-id-44117
*/

.

used e.g. here 
https://github.com/kimmoli/valuelogger/blob/master/qml/valuelogger.qml 

-kimmo

-Original Message-
From: Devel [mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Andrey 
Kozhevnikov
Sent: 8. syyskuuta 2016 19:15
To: Sailfish OS Developers; devel@lists.sailfishos.org
Subject: Re: [SailfishDevel] PageStack: from push pushAttached directly to 
initialPage

for find function you might set objectName of your page

-- Исходное сообщение --
От: "Michael Fuchs" 
Кому: devel@lists.sailfishos.org
Отправлено: 08.09.2016 22:52:09
Тема: Re: [SailfishDevel] PageStack: from push pushAttached directly to 
initialPage

>The find function looks promising.
>
>But where do I set the id of the mainPage, which is accessible via 
>pageStack?
>
>ApplicationWindow
>{
> id: app
> initialPage: Component { id: here?; TaskList { id:here?; } }
>
>}
>
>
>Am 08.09.2016 um 17:16 schrieb Andrey Kozhevnikov:
>>pageStack.pop(id of mainPage or page found using pageStack.find 
>>function)
>>
>>-- Исходное сообщение --
>>От: "Michael Fuchs" 
>>Кому: devel@lists.sailfishos.org
>>Отправлено: 08.09.2016 19:39:39
>>Тема: Re: [SailfishDevel] PageStack: from push pushAttached directly 
>>to
>>initialPage
>>
>>>Thanks for your attention. ;)
>>>
>>>I guess I got it:
>>>
>>>onClicked: pageStack.replaceAbove(null, app.initialPage);
>>>
>>>...works for me.
>>>
>>>
>>>
>>>
>>>Am 08.09.2016 um 13:18 schrieb Michael Fuchs:
Hi guys,

I got a question about the PageStack.

I got a main page and a filter page, which can be push() 'ed or
pushAttached() several times. Either via PullDownMenu or swipe to 
left.
I would like to have another item in the pulldownmenu, which lets me
directly go back to the first page ("Back To FirstPage"), no matter 
how
the pages where added to the stack.

Thanks a lot,

Michael.


FirstPage.qml
==
Page {
  ...
   PullDownMenu {
 MenuItem {
   text: qsTr("Filters")
   onClicked: pageStack.navigateForward();
 }
   }
   ...
   onStatusChanged: {
 if (status === PageStatus.Active && pageStack.depth === 1) {
   pageStack.pushAttached(Qt.resolvedUrl("Filters.qml"), {});
 }
   }
}
==

Filters.qml
==
Page {
...
   PullDownMenu {
 MenuItem {
   text: qsTr("Specific Filters")
   onClicked: pageStack.push(Qt.resolvedUrl("Filters.qml"));
 }
 MenuItem {
   text: qsTr("More Filters")
   onClicked: pageStack.navigateForward();
 }
 MenuItem {
   text: qsTr("Back To FirstPage")
   onClicked: /*what to put here*/;
 }
   }
...
   onStatusChanged: {
 if (status === PageStatus.Active && pageStack.depth === 1) {
   pageStack.pushAttached(Qt.resolvedUrl("Filters.qml"), {});
 }
   }
}
==


___
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

___
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] Using QtQuick.Layouts

2016-07-28 Thread Kimmo Lindholm
You need these in QtCreator

https://github.com/CODeRUS/better-sailfishos-qmltypes/tree/Sdk1511/QtQuick/Layouts
 

see https://github.com/CODeRUS/better-sailfishos-qmltypes/blob/Sdk1511/README.md
You can install all or just a bit.

creds to coderus

-kimmo

> -Original Message-
> From: devel-boun...@lists.sailfishos.org [mailto:devel-
> boun...@lists.sailfishos.org] On Behalf Of Marcin Mielniczuk
> Sent: 28. heinäkuuta 2016 17:40
> To: Sailfish OS Developers 
> Subject: Re: [SailfishDevel] Using QtQuick.Layouts
> 
> Michael,
> 
> The whole thing works *in the Emulator*. This is not a problem.
> But the SailfishOS-i486 mersdk target doesn't have it installed. It's not
> needed for deployment but for the local coding (so that I get the code
> completion and no warnings in the editor)
> 
> On 28.07.2016 14:08, Michael Fuchs wrote:
> > Hi,
> >
> > either you install the required package (I guess
> > qt5-qtquickcontrols-layouts) manually via ssh, or you put the
> > dependency in the spec file and deploy the rpm, then it will get
> > installed automatically.
> >
> > regards, Michael.
> >
> >
> >
> > Am 28.07.2016 um 13:18 schrieb Marcin Mielniczuk:
> >> Hi,
> >>
> >> I'm working on a Sailfish app. I want to use a ColumnLayout instead
> >> of a Column to take advantage of convienience properties such as
> >> Layout.fillHeight.
> >>
> >> For some reason the QML import QtQuick.Layouts is missing from
> >> mersdk/targets/SailfishOS-i486/usr/lib/qt5/qml. On the other hand,
> >> the code works perfectly in the Emulator.
> >>
> >> Is there any way to make QtCreator recognize the QtQuick.Layouts
> >> import and suggest autocompletions other than force copying the
> >> module from the Emulator?
> >>
> >> Regards,
> >>
> > ___
> > SailfishOS.org Devel mailing list
> > To unsubscribe, please send a mail to
> > devel-unsubscr...@lists.sailfishos.org
> 
> --
> Marcin
> 
> ___
> 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] Resolution-independent in-app icons

2016-07-22 Thread Kimmo Lindholm
> In theory you could use that to scale application's SVGs on device to target 
> pixel ratio as post-install step, unfortunately it is ran as root and thus 
> cannot be allowed for Store apps. Then you wouldn't need to hardcode the 
> pixel ratios to build time scripts. I'll dig deeper to see what we could do 
> there.

You could run scaling and svg to png (?) on first start, and use pre-scaled 
icons from QStandardPaths::writableLocation(QStandardPaths::ConfigLocation) 
through e.g. your own QQuickImageProvider.
And use some version tag there too, if you want to regenerate them on update. 

Or do scaling on the fly in the QQuickImageProvider and cache scaled images

-kimmo

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


Re: [SailfishDevel] Resolution-independent in-app icons

2016-07-21 Thread Kimmo Lindholm
> Let say I would like to create my custom set of icons for my app. Is there 
> any good approach to figure out (in C++), which icon set is used in the 
> system, which Zx.x?

dconf /desktop/sailfish/silica/theme_pixel_ratio or 
/desktop/sailfish/silica/theme_icon_subdir

access with e.g. in qml 
https://sailfishos.org/develop/docs/nemo-qml-plugin-configuration/qml-org-nemomobile-configuration-configurationvalue.html/
  

in c++ https://git.merproject.org/mer-core/mlite/blob/master/src/mgconfitem.h 

-kimmo

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


Re: [SailfishDevel] pageStack navigation

2016-07-21 Thread Kimmo Lindholm
See here 
ttps://together.jolla.com/question/44103/how-to-remove-all-except-bottom-page-from-pagestack/#post-id-44117

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


Re: [SailfishDevel] browser versus ajax

2016-06-25 Thread Kimmo Lindholm
There is difference with request headers at least.
You can set them, and in my implementation I use arguments on 
onreadystatechanged function(myxhr)

See e.g. this https://github.com/kimmoli/maira/blob/master/qml/maira.qml#L622
and line 649 for content type example

-kimmo


From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Kim Foder
Sent: 25. kesäkuuta 2016 21:41
To: Sailfish OS Developers
Subject: Re: [SailfishDevel] browser versus ajax


> Both captures have 200 response



Yes that much I can understand.



If you look at this picture (from wireshark), you will see that the first 
request is successful, but the second one behaves differently.



Even though it returns a status 200, something is wrong as shown in line 14 & 
15.







I'm using the following code to do both requests:



function execCommand(command)

{

var xhr = new XMLHttpRequest();

xhr.onreadystatechange = function() {

console.log('ReadyState: ' + xhr.readyState);

if(xhr.readyState == 4)

{

console.log('Status: ' + xhr.status);

if (xhr.status == 200){

var fv = xhr.responseText;

console.log('Result: ' + fv);

}}

}

var c = "http://10.5.5.9:8080/; + command;

console.log(c);

xhr.open('GET',c);

xhr.send();

}



And the following to execute the request (in a button onclick event):



execCommand("gp/gpControl/status");



The output for the failing request is:



execCommand: 89 - http//10.5.5.9:8080/gp/gpControl/status

:77 - ReadyState: 1



and after a very long time (at least it feels that way):



:77 - ReadyState: 4

:80 - Status: 0



/Kim



On fredag den 24. juni 2016 13.49.42 CEST Kimmo Lindholm wrote:

> And how it looks with your app?

> Both captures have 200 response

>

> Can show your code too?

>

> -kimmo

>

> -Original Message-

> From: 
> devel-boun...@lists.sailfishos.org<mailto:devel-boun...@lists.sailfishos.org>

> [mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Kim Foder Sent:

> 23. kesäkuuta 2016 23:33

> To: devel@lists.sailfishos.org<mailto:devel@lists.sailfishos.org>

> Subject: [SailfishDevel] browser versus ajax

>

> Hi

>

> I'm trying to make a gopro Hero4 app for Sailfish, but have hit a wall :(

>

> When I send a request to the Hero (for example a status request http://

> 10.5.5.9:8080/gp/gpControl/status) in the address line of a browser (laptop

> or Jolla) I get the expected response, but when I try via ajax from qml I

> get no response (ready state 1 and after a long time ready state 4).

>

> I have captured the IP traffic (in pcap format), but do not have enough

> knowledge to interpret the results.

>

> If anyone here do have the knowledge to help me, I'll be gratefull.

>

> The captured sessions can be downloaded here:

> http://kimfoder.dk/capture.zip.

>

> /Kim

> ___

> SailfishOS.org Devel mailing list

> To unsubscribe, please send a mail to 
> devel-unsubscr...@lists.sailfishos.org<mailto:devel-unsubscr...@lists.sailfishos.org>

> ___

> SailfishOS.org Devel mailing list

> To unsubscribe, please send a mail to 
> devel-unsubscr...@lists.sailfishos.org<mailto:devel-unsubscr...@lists.sailfishos.org>




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

Re: [SailfishDevel] browser versus ajax

2016-06-24 Thread Kimmo Lindholm
And how it looks with your app?
Both captures have 200 response 

Can show your code too?

-kimmo

-Original Message-
From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Kim Foder
Sent: 23. kesäkuuta 2016 23:33
To: devel@lists.sailfishos.org
Subject: [SailfishDevel] browser versus ajax

Hi

I'm trying to make a gopro Hero4 app for Sailfish, but have hit a wall :(

When I send a request to the Hero (for example a status request http://
10.5.5.9:8080/gp/gpControl/status) in the address line of a browser (laptop or
Jolla) I get the expected response, but when I try via ajax from qml I get no 
response (ready state 1 and after a long time ready state 4).

I have captured the IP traffic (in pcap format), but do not have enough 
knowledge to interpret the results.

If anyone here do have the knowledge to help me, I'll be gratefull.

The captured sessions can be downloaded here: http://kimfoder.dk/capture.zip.

/Kim
___
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] [Official Announcement] Join the Sailfish Community Device Program now!

2016-05-26 Thread Kimmo Lindholm
https://jolla.com/jollac

“Pure Sailfish OS 2.0 compatible with Android™ apps”



Lähettäjä: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] Puolesta Luca Donaggio
Lähetetty: 26. toukokuuta 2016 13:59
Vastaanottaja: Sailfish OS Developers 
Aihe: Re: [SailfishDevel] [Official Announcement] Join the Sailfish Community 
Device Program now!

Will this new Jolla C have Android support included? Even if I can rely 90% on 
Sailfosh OS only, there are still a few things I need Android for (mainly a 
bank app). I can't afford a new, developer-only device: to justify the expense 
I need it to become my main, everyday phone too.
Can you please clarify this point?

On Thu, May 26, 2016 at 11:59 AM, Jolla Community 
> wrote:

Dear Jolla community member,

As a thank you for your loyalty, we've just announced a new program for you, 
the Jolla community! By joining the Sailfish Community Device Program, you will 
get access to special content and R sessions, event invitations, and the new 
Sailfish OS smartphone, the limited community edition Jolla C.

Join the program now 
here.

Read more about the Program in the latest Jolla blog 
post!

On behalf of the whole Jolla team,
James Noori
Community Manager

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



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

Re: [SailfishDevel] Help for Syncthing App

2016-03-14 Thread Kimmo Lindholm
You can also detect device type runtime.

https://github.com/kimmoli/chargemon/blob/master/src/cmon.cpp#L64



-Original Message-
From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Michael Fuchs
Sent: 14. maaliskuuta 2016 18:19
To: devel@lists.sailfishos.org
Subject: Re: [SailfishDevel] Help for Syncthing App

Good point.
But I need it for packaging the proper syncthing binary.


Am 14.03.2016 um 17:03 schrieb Pami Ketolainen:
> On 03/14/2016 04:49 PM, Michael Fuchs wrote:
>> Right, the colons where missing. But this was just an example, which 
>> I know from the documentation. I would need it to have two different 
>> values for tablet and phone. It's got to be sth like:
>>
>> arm: VAR = ARMVALUE
>> x86_32: VAR = x86VALUE
>>
>
> There probably is a way to detect the architecture during build time, 
> but in general that is not the right way to differentiate between 
> different types of devices. Because there could be ARM tablets and x86 
> phones.
>
> Most likely if you need to do some decisions based on the device type, 
> you should do that at run time.
>
___
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] overlapping ComboBoxes

2016-02-24 Thread Kimmo Lindholm
Check your { }

… this comment is not true  } // end of first combo box: interval

-kimmo


From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of mariusz sapinski
Sent: 24. helmikuuta 2016 11:45
To: devel@lists.sailfishos.org
Subject: [SailfishDevel] overlapping ComboBoxes

Hi,
   I have two ComboBoxes in one Column. Code looks a bit like that:

import QtQuick 2.0
import Sailfish.Silica 1.0

Dialog {

id: setupDialog;
allowedOrientations: Orientation.Portrait;

property bool tmpUseMinute: useMinute;
property bool tmpUseKwadrans: useKwadrans;
property bool tmpUsePol: usePol;
property bool tmpUseCala: useCala;


Column {
 id: column;

 height: parent.height; // - (Theme.paddingMedium);
 anchors.leftMargin: Theme.paddingLarge;
 anchors.rightMargin: Theme.paddingLarge;
 width: setupDialog.width;
 spacing: Theme.paddingLarge;

 PageHeader {
 title: qsTr("Settings")
 }

 ComboBox {
 currentIndex: 1
 id: combo1
 label: "interval"
 width: setupDialog.width
 menu: ContextMenu {
 MenuItem {
 text: "1 minute (for test)"
 onClicked: {
 useMinute = true;
 useKwadrans = false;
 usePol = false;
 useCala = false;
 }
 }
 MenuItem {
 text: "15 minutes"
 onClicked: {
 useMinute=false;
 useKwadrans = true;
 usePol = false;
 useCala = false;
 }
 }
 } // end of first combo box: interval

  ComboBox {
 currentIndex: 3
 id: combo2
 label: "duration"
 width: setupDialog.width
 menu: ContextMenu {
 MenuItem {
 text: "20 minutes"
 onClicked: {
 useTwenty = true;
 useThirty = false;
 useFortyFive = false;
 }
 }

 MenuItem {
 text: "30 minutes"
 onClicked: {
 useTwenty=false;
 useThirty = true;
 useFortyFive = false;
 }
 }

 } // endof ContextMenu
} // end of second combo box: duration


} // end of Column

}
}

my unfortunately both boxes overlap on the screen. What am I missing? I thought 
Column should take care that the elements inside are correctly positioned.
Cheers, Mariusz

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

Re: [SailfishDevel] Select multiple values in combobox

2016-02-22 Thread Kimmo Lindholm
Something like this? http://kimmoli.com/tauhkaa/2016035612.png 

Dialog 
https://github.com/kimmoli/maira/blob/master/qml/components/MultiItemPicker.qml
is called from this 
https://github.com/kimmoli/maira/blob/master/qml/fields/MultiSelectField.qml 

ListModel items contains stuff that is passed to the dialog. It is created on 
Component.onCompleted, you'll need to tune that for your needs.
indexes array contains selected ListModel indexes.

Also, what you do when dialog is accepted, is up to you.

-kimmo

-Original Message-
From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Erik Lundin
Sent: 22. helmikuuta 2016 22:51
To: devel@lists.sailfishos.org
Subject: Re: [SailfishDevel] Select multiple values in combobox

Thanks. I may try that solution, though it feels like it should be 
possible to make some kind of list view where you can press items to 
toggle highlight of them.

/Erik

Den 2016-02-22 kl. 04:24, skrev Andrey Kozhevnikov:
> Yes, i did following for my application:
> https://github.com/CODeRUS/powermenu2/blob/master/gui/qmls/pages/ConfigurationPage.qml#L163
>
>
> -- Исходное сообщение --
> От: "Erik Lundin" 
> Кому: devel@lists.sailfishos.org
> Отправлено: 22.02.2016 2:49:38
> Тема: [SailfishDevel] Select multiple values in combobox
>
>> Is it possible make a QML combobox accept multiple selected values? I
>> have tried to look in both the Silica documentation [1] and the Qt
>> documentation [2] but haven't found and answer. Maybe a listview can
>> do it?
>>
>> /Erik
>>
>> [1]
>> https://sailfishos.org/develop/docs/silica/qml-sailfishsilica-sailfish-silica-combobox.html/
>>
>> [2] http://doc.qt.io/qt-5/qml-qtquick-controls-combobox.html
>> ___
>> 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

Re: [SailfishDevel] Beginning Sailfish programming?

2016-01-28 Thread Kimmo Lindholm
1. Install SDk 
https://sailfishos.org/develop/sdk-overview/develop-installation-article/
2. Read some tutorials https://sailfishos.org/develop/tutorials/
3. Check api docs, specially Silica https://sailfishos.org/develop/docs/
4. Read Harbour FAQ https://harbour.jolla.com/faq
5. Code
6. Join us in IRC, e.g.  #sailfishos at freenode – and we like to see the code 
:)

-kimmo

From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Paul Duncan
Sent: 28. tammikuuta 2016 15:59
To: Sailfish OS Developers 
Subject: Re: [SailfishDevel] Beginning Sailfish programming?

Michael,

Thank for the reply - I'm sure I will have more questions later :-)

Just working on installing the development environment. Last time I tried this 
there was no dedicated Linux version, so its nice to see that has improved :-)

Cheers!

Paul.


From: Michael Fuchs 
To: devel@lists.sailfishos.org
Sent: Thursday, 28 January 2016, 13:28
Subject: Re: [SailfishDevel] Beginning Sailfish programming?

You can do a lot of things with qml and you will learn it by just using
it. If you want to play with inputs, take a look at componentgallery in
examples.

IMHO two concepts are important to understand the code more easily:
Signals: http://doc.qt.io/qt-5/qtqml-syntax-signals.html

and the Model/View Concept:
http://doc.qt.io/qt-5/qtquick-modelviewsdata-modelview.html

I started qml by rebuilding a Qt-widget-based app in qml.

Am 28.01.2016 um 14:12 schrieb Paul Duncan:
> Hi All,
>
> I am a reasonably proficient C programmer, but I think what I need is
> some sort of "gentle introduction" into getting something onto the
> screen, getting input etc, on Sailfish. I have the Jolla phone, and also
> have had a Tablet on order for what is probably almost a year now.
>
> So, where do I start? Do I need to get proficient in another language first?
>
> Thanks!
>
> Paul.

>
>
>
>
>
>
> ___
> 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] Usage data via Github Pages?

2016-01-20 Thread Kimmo Lindholm
Ask from github support?

> -Original Message-
> From: devel-boun...@lists.sailfishos.org [mailto:devel-
> boun...@lists.sailfishos.org] On Behalf Of jollail...@gmail.com
> Sent: 20. tammikuuta 2016 16:05
> To: devel@lists.sailfishos.org
> Subject: [SailfishDevel] Usage data via Github Pages?
> 
> Hi,
> 
> I'm using GitHub Pages to host a XML file containing a station list used by my
> app Nettiradio.
> 
> Is it possible to see how many times the file has been requested from the
> server?
> 
> You can see how many times the source files have been viewed on GH, but
> there is no data about the published GH Pages site. One way would be to use
> a redirecting URL and see the amount of redirectered users. Which service
> would you suggest for this?
> 
> Of course, if I end up using a redirecting service, I will make sure the users
> know about this and can opt out via a single button press.
> 
> I'd just like to know how much my app is used since the shy Finns aren't
> providing much feedback while everything works :)
> 
> Cheers,
> jollailija
> 
> --
> Lähetetty Jollastani
> ___
> 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] XmlListModel can't fetch data from a local .xml file

2015-12-11 Thread Kimmo Lindholm
Try one more:

source: Qt.resolvedUrl("xml/asemat.xml")

And to debug, add this:

Component.onCompleted: {
console.log(source.toString())
}

-kimmo

-Original Message-
From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of jollail...@gmail.com
Sent: 11. joulukuuta 2015 19:26
To: devel@lists.sailfishos.org
Subject: [SailfishDevel] XmlListModel can't fetch data from a local .xml file

Hi! Since Nettiradio is ... a net radio, I figured I could use a xml file 
hosted on GitHub as a update-able station database. It works like a charm, but 
in case GitHub goes down or something, I'd like to have a local copy shipped 
with every release. However, XmlListModel doesn't seem to like reading local 
files. I have tried all kinds of local path urls but I can't get it working. 
What am I doing wrong?

If you need to take a look at the code, you can find it at 
https://github.com/jollailija/nettiradio
The xml file I'm trying to read is asemat.xml adn the list model file is 
StationsModel.qml

Cheers,
jollailija
-- 
Lähetetty Jollastani
___
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 make noarch packages?

2015-12-05 Thread Kimmo Lindholm
So I assume you want to make a pure QML application, without executable, not 
just install files around?

This is something I have wanted to do also ages ago, so here is another really 
simple example...

https://github.com/kimmoli/test5-app

You can deploy this as RPM with either arm or i486 target, the RPM will be 
noarch anyways and should contain no binaries.

-kimmo

-Original Message-
From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of jollail...@gmail.com
Sent: 5. joulukuuta 2015 16:27
To: devel@lists.sailfishos.org
Subject: Re: [SailfishDevel] How to make noarch packages?

Андрей Кожевников kirjoitti la joulukuuta 5 14:33:01 2015 GMT+0200:
> Check kimmo template pl
>

Where is that? "Test 5" isn't an app and I can't find any repo from his Github 
called "template". Thanks! 

Br,
me 

-- 
Lähetetty Jollastani
___
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 make noarch packages?

2015-12-04 Thread Kimmo Lindholm
With SDK?

Add 
TEMPLATE = aux
to .pro

add 
BuildArch:  noarch
in spec 

ref https://github.com/kimmoli/test5

-kimmo

-Original Message-
From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of jollail...@gmail.com
Sent: 4. joulukuuta 2015 18:26
To: devel@lists.sailfishos.org
Subject: [SailfishDevel] How to make noarch packages?

Hi,

How can I make noarch packages? I tried googling but I didn't find any 
instructions. I also searched this mailing list for 'noarch', and it's only 
mentioned once in a terminal log.

Cheers, 
jollailija the newbie

-- 
Lähetetty Jollastani
___
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] Installing files in user directory

2015-11-13 Thread Kimmo Lindholm
You could copy/create it from your app to /home/nemo/.config/harbour-nettiradio 
folder on first application start.

e.g. Fingerterm (and tohkbd2) uses this approach.

-kimmo

-Original Message-
From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of jollail...@gmail.com
Sent: 13. marraskuuta 2015 20:29
To: devel@lists.sailfishos.org
Subject: [SailfishDevel] Installing files in user directory

Hi,
I'm developing a net radio app called Nettiradio and I'd like to know how I 
could install files outside the regular /usr/share/harbour-appname. I would 
like to store my station list .txt file at /home/nemo/Nettiradio so the user 
could modify the list using a computer or a text editor app without having to 
use developer mode. I know it's against Harbour rules, but since Nettiradio is 
open source I think they could let it pass :)

Br,
jollailija 

-- 
Lähetetty Jollastani
___
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] Drawing ShaderEffect to Canvas

2015-10-26 Thread Kimmo Lindholm
I think I found a way to do this.

I draw the painting tool to a separate preview canvas, and use this as a 
alpha-mask input for the shader. Then combine this with processed drawing 
canvas contents and view the shader output in realtime.
When user accepts the result, the whole thing is grabbed as an image and drawn 
on top of the main drawing canvas.

PoC with simple shader that swaps RGB --> BRG channels on user selected area: 
https://twitter.com/LiKimmo/status/65855935622144/photo/1

shader code: gl_FragColor = texture2D(source, qt_TexCoord0).brga * 
texture2D(mask, qt_TexCoord0).a;
where source is whole drawing canvas, mask is preview canvas where the actual 
drawing happens - hidden during this process.

grapToImage is still slow, but that delay is suffered only when applying the 
results. Maybe this is place for a Qt feature request, Item::toCanvasImageData

-kimmo

From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Kimmo Lindholm
Sent: 26. lokakuuta 2015 8:55
To: devel@lists.sailfishos.org
Subject: [SailfishDevel] Drawing ShaderEffect to Canvas

Hi,

This relates to my Paint app. Doing tools to modify image, blur, invert, 
colorchannel swap etc. from area under your finger, like realtime brush.

Doing the bitmanipulation with javascript in canvas-onPaint works but even 
simple things like invert are utterly slow.

Then I decided to give ShaderEffect a try. I can successfully get image data 
under mouse from Canvas;

ShaderEffectSource {
sourceItem: myCanvas
sourceRect: Qt.rect(x,y,w,h)
...

The shader outputs the selected part of canvas nicely on screen with 
fragmentShader applied. Looks great.

Now I would like to draw the shader output to my 2nd canvas, which is later 
drawn on top of the actual canvas if accepted by user.

But putImageData(myShader,x,y) does not draw on canvas, and does not give any 
error. (other trials complain that ImageDataObject is invalid)

I managed to do this by calling myCanvas.grabToImage(...) and 
drawImage(result.url) but this is again as slow as the Javascript 
implementation.
Nothing that I can use on realtime-editing. This could be used after masking an 
area where to apply the shader.

If someone has any ideas?

-kimmo

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

[SailfishDevel] Drawing ShaderEffect to Canvas

2015-10-26 Thread Kimmo Lindholm
Hi,

This relates to my Paint app. Doing tools to modify image, blur, invert, 
colorchannel swap etc. from area under your finger, like realtime brush.

Doing the bitmanipulation with javascript in canvas-onPaint works but even 
simple things like invert are utterly slow.

Then I decided to give ShaderEffect a try. I can successfully get image data 
under mouse from Canvas;

ShaderEffectSource {
sourceItem: myCanvas
sourceRect: Qt.rect(x,y,w,h)
...

The shader outputs the selected part of canvas nicely on screen with 
fragmentShader applied. Looks great.

Now I would like to draw the shader output to my 2nd canvas, which is later 
drawn on top of the actual canvas if accepted by user.

But putImageData(myShader,x,y) does not draw on canvas, and does not give any 
error. (other trials complain that ImageDataObject is invalid)

I managed to do this by calling myCanvas.grabToImage(...) and 
drawImage(result.url) but this is again as slow as the Javascript 
implementation.
Nothing that I can use on realtime-editing. This could be used after masking an 
area where to apply the shader.

If someone has any ideas?

-kimmo

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

Re: [SailfishDevel] Drawing ShaderEffect to Canvas

2015-10-26 Thread Kimmo Lindholm
> Yeah grabToImage() is pretty costly due to the pixel readback. What you want
> is to draw your ShaderEffect into a texture and then draw that texture 
> directly
> onto the canvas without going through the pixel readback / CPU memory code
> path that  grabToImage would imply. Not sure how exactly we would swing that
> with the current Canvas design (at least if we take threaded/non-threaded and
> Image codepaths into account), but feel free to open a suggestion for that on
> bugreports.qt.io. Something might happen :)

Will do. Thanks.

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


Re: [SailfishDevel] SailfishOS SDK 1510 and launcher icon for tablet version

2015-10-21 Thread Kimmo Lindholm
FYI: As reference design, which has passed harbour QA, providing all possible 
icon sizes 
https://github.com/kimmoli/paint/commit/8887370a0761673329ae73bd6179e65cca666c53

-kimmo

-Original Message-
From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Martin Kampas
Sent: 21. lokakuuta 2015 7:44
To: Sailfish OS Developers
Subject: Re: [SailfishDevel] SailfishOS SDK 1510 and launcher icon for tablet 
version

On 20.10.2015 19:02, Osmo Salomaa wrote:
> This is the first time I hear this. Is this documented somewhere?

https://harbour.jolla.com/faq#Icons

-Martin
___
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] Detecting larger screen size of the Jolla tablet

2015-10-19 Thread Kimmo Lindholm
afaik emulator does not do all things correctly for the tablet, but

https://sailfishos.org/develop/docs/silica/qml-sailfishsilica-sailfish-silica-sailfish-silica-screen.html/

-kimmo


From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of tisno.de
Sent: 19. lokakuuta 2015 11:03
To: Sailfish OS Developers
Subject: [SailfishDevel] Detecting larger screen size of the Jolla tablet

Hi all,

do anyone know a good way to determine if an app is running on the Jolla phone 
or tablet?
I mean I want to react during runtime to a larger screen. Best would be on the 
QML side or through a property which is set on the C++ side.

I don't want to have a static rpm for each the phone and the tablet. Also 
detecting the architecture (assuming i486 is a tablet) is not a good idea 
because it could be that in the future we see also ARM tablets for Sailfish OS.

One idea would be to take all devices with a higher resolution than 1920 pixel 
width as a tablet device. This would work for now on the Jolla phone and 
tablet. But the optimal way would be to detect the actual screen size e.g. 4.5" 
or 7.8". Do you have an idea how this can be done?

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

Re: [SailfishDevel] qmlRegisterSingletonType not allowed in Harbour?

2015-10-07 Thread Kimmo Lindholm
https://harbour.jolla.com/faq#1.5.0

Own imports must be harbour-app-named.

-kimmo


Lähettäjä: devel-boun...@lists.sailfishos.org 
[devel-boun...@lists.sailfishos.org] käyttäjän Alexander Ladygin 
[fake...@gmail.com] puolesta
Lähetetty: 8. lokakuuta 2015 05:16
Vastaanottaja: Sailfish OS Developers
Aihe: [SailfishDevel] qmlRegisterSingletonType not allowed in Harbour?

Hey everyone!

I've got an app turned down by harbour QA
Validator says
ERROR [/usr/share/harbour-vk-music/qml/pages/SongItem.qml] Import 
'ru.virgi.audioplayerinfo 1.0' is not allowed

is qmlRegisterSingletonType  not allowed or something???
i'm registering it with
qmlRegisterSingletonType("ru.virgi.audioplayerinfo", 1, 0, 
"AudioPlayerInfo", audioplayerinfo_provider);

And it's simple QObject with some properties and signals

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

Re: [SailfishDevel] Harbour is now open for Tablet applications

2015-09-24 Thread Kimmo Lindholm
Just noted that rpm versions needs to be identical for both, armv7hl and i486 
arch binaries.

e.g. harbour-heebo-0.3.2-10.1.armv7hl.rpm and harbour-heebo-0.3.2-10.2.i486.rpm 
will fail to upload in harbour.

-kimmo

> -Original Message-
> From: devel-boun...@lists.sailfishos.org [mailto:devel-
> boun...@lists.sailfishos.org] On Behalf Of Developer Care
> Sent: 24. syyskuuta 2015 16:04
> To: devel@lists.sailfishos.org
> Subject: [SailfishDevel] Harbour is now open for Tablet applications
> 
> Hello,
> 
> With 1.1.9 software update and our SDK with the tablet emulator being
> released [1], Harbour QA team is happy to announce that we will be accepting
> Tablet applications on Harbour from this day forward.
> 
> We have made submitting tablet applications very simple by adding a
> 'compatibility' section in the application submit form on Harbour [2]. From
> there you can choose whether your application is for tablet, phone or both.
> In case your application is architecture independent, i.e. pure QML or Python
> application, then it is already compatible with both of our devices and
> uploading single noarch RPM is enough. However, if your application contains
> compiled code, you need to upload binaries for both armv7hl and i486
> architectures, so that it can be tested on the Jolla tablet and made 
> available for
> the tablet users in Jolla store.
> 
> Keep in mind to check that the version number of your rpmvalidator is 1.30.1.
> Due to a mistake, the current version in the SDK is 1.30. The rpmvalidator
> should be updated to 1.30.1 automatically when used through the web UI, but
> sometimes it might need a second attempt to get to the latest version which
> passes i486 packages.
> 
> For more information, refer to our FAQ page [3], and reply to this thread in
> case of any questions.
> 
> Best regards,
> Harbour QA team
> 
> [1] https://lists.sailfishos.org/pipermail/devel/2015-September/006512.html
> [2] https://lists.sailfishos.org/pipermail/devel/2015-August/006386.html
> [3] https://harbour.jolla.com/faq
> 
> 
> ___
> 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] Can't use QDeviceInfo

2015-09-16 Thread Kimmo Lindholm
do you have such in your .pro

CONFIG += link_pkgconfig
PKGCONFIG += Qt5SystemInfo

?

-kimmo


Lähettäjä: devel-boun...@lists.sailfishos.org 
[devel-boun...@lists.sailfishos.org] kyttjn tw_bolek 
[tw_bo...@op.pl] puolesta
Lähetetty: 16. syyskuuta 2015 23:41
Vastaanottaja: devel@lists.sailfishos.org
Aihe: [SailfishDevel] Can't use QDeviceInfo

Guys, PLEASE, help me, or soon I'll go nuts.

For days I've been struggling to use QtSystemInfo/QDeviceInfo to get IMEI. I 
need to do it in C++, not in QML.

It is properly imported (e.g. #include ), QtCreator 
recognizes it, but every time I try to build the project I end up with 
"undefined reference to `QDeviceInfo::QDeviceInfo(QObject*)'" error.  I tried 
literally everything - no way to make the damn thing work!

deviceInfo = new QDeviceInfo;
always causes undefined reference to `QDeviceInfo::QDeviceInfo(QObject*)'

I'm totally fooled now. Can someone please just post an example code to make it 
work? Just what to add to the default main.cpp file

Thank you very much in advance!
Bolek
___
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] Can't use QDeviceInfo

2015-09-16 Thread Kimmo Lindholm
add sailfishapp also to the PKGCONFIG




Lähettäjä: devel-boun...@lists.sailfishos.org 
[devel-boun...@lists.sailfishos.org] kyttjn tw_bolek 
[tw_bo...@op.pl] puolesta
Lähetetty: 16. syyskuuta 2015 23:55
Vastaanottaja: devel@lists.sailfishos.org
Aihe: [SailfishDevel] Can't use QDeviceInfo

> do you have such in your .pro
> CONFIG += link_pkgconfig
> PKGCONFIG += Qt5SystemInfo

Just added:

CONFIG += sailfishapp \
   link_pkgconfig
PKGCONFIG += Qt5SystemInfo

Now I get:

undefined reference to `SailfishApp::main(int&, char**)'

___
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] Accessing Jolla GPIO without root

2015-09-05 Thread Kimmo Lindholm
Hi,

VDD you can control as nemo. For INT pin you need to export the GPIO as root, 
then you can read it as nemo (IIRC)

https://github.com/kimmoli/i2ctool/blob/master/src/i2cif.cpp#L45

https://github.com/kimmoli/tohkbd2/blob/master/daemon/src/toh.cpp#L75

i also started writing daemon for the gpio management, 
https://github.com/kimmoli/gpio-daemon
but never completed the project.

-kimmo



Lähettäjä: devel-boun...@lists.sailfishos.org 
[devel-boun...@lists.sailfishos.org] käyttäjän Dylan Van Assche 
[dylan.rsca...@gmail.com] puolesta
Lähetetty: 5. syyskuuta 2015 11:02
Vastaanottaja: devel@lists.sailfishos.org
Aihe: [SailfishDevel] Accessing Jolla GPIO without root

Hi Develsailors,

I want to build a Sailfish app which interact with the Adafruit Powerboost 500C.
That's a LiPo charger and booster in one simple package.

The idea is to build a PowerTOH which is smart enough to start charging the 
Jolla when his battery his below a certain percentage. In order to do that I 
need to make an app which can read the INT-pin on the Jolla Phone and can 
control the VDD output.

The VDD-output controls the charging while the INT-pin will read if the 
Powerhalf TOH his battery is low.

Is there a way to access these pins without root in an app?

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

Re: [SailfishDevel] Dialog doesn't register taps

2015-06-10 Thread Kimmo Lindholm
my 5 cents...

SilicaFlickable had no width and no contentHeight, that’s why it propably 
didn’t work.
top-anchors don’t work inside a column.
images with img inside label text ?
put DialogHeader inside flickable (AFAIU) and anchor column to its bottom.

https://gist.github.com/kimmoli/1286171768835306ec6a

-kimmo

(Tested with gistpud)

-Original Message-
From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Thomas Tanghus
Sent: 10. kesäkuuta 2015 18:31
To: Sailfish OS Developers
Subject: Re: [SailfishDevel] Dialog doesn't register taps

On Wednesday 10 June 2015 16:46:15 Michael Fuchs wrote:
 After removing SilicaFlickable (do you need it?) it works.

Your the Man! :)

I honestly can't remember why I thought I needed it :P

 Am 10.06.2015 um 16:03 schrieb Thomas Tanghus:
  Hi
  
  I have a weird issue:
  
  A Dialog with two TextSwitches and a Background area, and none of 
  them registers tapping.
  
  I've been staring myself blind for several days, so now I've gotta 
  ask here for some more eyes ;)
  
  Link to github as it's easier to read:
  
  https://github.com/tanghus/kitchen-timer-qml/blob/master/qml/pages/S
  oundDi
  alog.qml#L34
  
  
  
  ___
  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

--
Med venlig hilsen / Best regards

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

Re: [SailfishDevel] PullDownMenu in a Dialog?

2015-06-10 Thread Kimmo Lindholm
Similar things as earlier.

Don't give y to Pulldownmenu, breaks.
Dialogheader not in Dialog, but in child.

https://gist.github.com/kimmoli/626c838174682c1f6f20

This uses SilicaFlickable as first child of dialog.

-kimmo

Thomas Tanghus kirjoitti to kesäkuuta 11 05:14:07 2015 GMT+0300:
 Hi
 
 I have a Dialog with a SilicaListView as a file picker. Now I want to have a
 PullDownMenu with a single MenuItem to go one level up.
 It kinda works, but the positioning is all messed up.
 
 Problem 1: The indicator is placed a tad below the header, so I made an ugly
 hack setting y:  - Theme.paddingLarge;, but that's not a viable solution.
 
 Problem 2: When the menu is pulled down it appears at the height of the
 DialogHeader below the DialogHeader - if that makes sense? :P
 
 Is a PullDownMenu in a Dialog not supported, or am I doing something wrong?
 
 https://github.com/tanghus/kitchen-timer-qml/blob/master/qml/pages/SoundSelectDialog.qml#L58
 -- 
 Med venlig hilsen / Best regards
 
 Thomas Tanghus

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

Re: [SailfishDevel] What's the correct way to do this?

2015-06-06 Thread Kimmo Lindholm

https://github.com/tonercloud/fuelpad/blob/master/harbour-fuelpad/qml/pages/FuelpadPage.qml#L88

pass carmodel.get(index)  to the function? (or carListview.model.get(index) ) 
instead of model


-kimmo




Lähettäjä: devel-boun...@lists.sailfishos.org 
[devel-boun...@lists.sailfishos.org] käyttäjän Amilcar Santos 
[amilcar.san...@gmail.com] puolesta
Lähetetty: 5. kesäkuuta 2015 20:58
Vastaanottaja: Sailfish OS Developers
Aihe: Re: [SailfishDevel] What's the correct way to do this?

It may be a name collision between carDetails.model (from the database) and 
ListView.model (Qml delegate implemention)..
Try renaming the 'model' colunm in the 'car' table

Bg,
Amilcar

2015-06-05 18:35 GMT+01:00 Krisztian Olah 
fasza2mob...@gmail.commailto:fasza2mob...@gmail.com:
You are passing a carmodel as an argument to carpassDetails, chances are you 
did not define member named id or register in carmodel, but probably that's not 
want to do anyway. You seem to expect carDetails to be some different type, I 
did not find any definition to its type other than it being a QVariant in 
careRecordsPage.qml.

The way you want to pass carDetails is correct, but you are passing the model.

On Fri Jun 5 17:57:52 2015 GMT+0100, Chris Walker wrote:
 On Fri, 5 Jun 2015 16:53:22 +
 Krisztian Olah fasza2mob...@gmail.commailto:fasza2mob...@gmail.com wrote:

  It looks like the object carDetails does not exist in the scope
  you're trying to access it. What scope is your carDetails object in?
  If you could briefly describe in which file each relevant
  function/object  reside, would be helpful.

 I've just pushed the code to github. So would that be better than me
 trying to explain it?

 It's here :-
 https://github.com/tonercloud/fuelpad
 ___
 SailfishOS.org Devel mailing list
 To unsubscribe, please send a mail to 
 devel-unsubscr...@lists.sailfishos.orgmailto:devel-unsubscr...@lists.sailfishos.org

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



--
Amilcar
(djditz in the mix... ;)

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

Re: [SailfishDevel] QtFeedback 5.0 not allowed? Really?

2015-04-29 Thread Kimmo Lindholm
Any news about whitelisting QtFeedback?

-kimmo


 -Original Message-
 From: devel-boun...@lists.sailfishos.org [mailto:devel-
 boun...@lists.sailfishos.org] On Behalf Of Reto Zingg
 Sent: 2. joulukuuta 2014 11:00
 To: devel@lists.sailfishos.org
 Subject: Re: [SailfishDevel] QtFeedback 5.0 not allowed? Really?
 
 Hi,
 
 On 01.12.2014 23:34, sailfishmail wrote:
 
  Another observation:
 
  You're allowed to require qt5-qtfeedback in your RPM-packaging
  according to the faq:
  https://github.com/sailfish-sdk/sdk-harbour-rpmvalidator/blob/1.18/all
  owed_requires.conf
 
 
 It's a mistake that qt5-qtfeedback made it into the allowed_requires.conf 
 file.
 
 It's out for update 10:
 https://github.com/sailfish-sdk/sdk-harbour-
 rpmvalidator/blob/1.21/allowed_requires.conf
 
 As soon as this libQt0Feedback.so.0 naming mess (note the 0 between Qt and
 Feedback!) is clean up, we will allow QtFeedback in Harbour (will probably not
 make it to the next update, but in a later one).
 
 br
 Reto
 
  which installs
 /usr/lib/libQt0Feedback.so.0
 /usr/lib/libQt0Feedback.so.0.0
 /usr/lib/libQt0Feedback.so.0.0.0
 /usr/lib/qt5/qml
 /usr/lib/qt5/qml/QtFeedback
 /usr/lib/qt5/qml/QtFeedback/libdeclarative_feedback.so
 /usr/lib/qt5/qml/QtFeedback/plugins.qmltypes
 /usr/lib/qt5/qml/QtFeedback/qmldir
 
  However, according to
  https://github.com/sailfish-sdk/sdk-harbour-rpmvalidator/blob/1.18/all
  owed_libraries.conf
  and
  https://github.com/sailfish-sdk/sdk-harbour-rpmvalidator/blob/1.18/all
  owed_qmlimports.conf you're not allowed to use what you required to be
  installed.
 
  Maybe some misunderstanding when making the harbour validation scripts?
 
  -Asser
 
  Mon, 01 Dec 2014 22:08:34 +0100
  Peter Pykäläinen peter.pykalai...@gmail.com kirjoitti:
 
  Thanks Kimmo!
 
  That was new.
 
  And it fails:
 
  Libraries
  =
  ERROR [/usr/bin/harbour-sailraid] Cannot link to shared library:
  libQt0Feedback.so.0
  INFO [/usr/bin/harbour-sailraid] Please see our FAQ here:
  https://harbour.jolla.com/faq#Shared_Libraries
  FAILED
 
 
  Requires
  
  ERROR [libQt0Feedback.so.0] Cannot require shared library:
  'libQt0Feedback.so.0'
  INFO [harbour-sailraid] Please see our FAQ here:
  https://harbour.jolla.com/faq#2.6.0 how to use
  '__provides_exclude_from' and '__requires_exclude' .spec file to
  avoid that FAILED
 
  And it fails totally.
  Not fun.
 
  So no vibration then, how can this basic stuff not be accepted?
 
  // Peter Pykäläinen
 
  On 1 December 2014 at 22:57, Kimmo Lindholm kimmo.lindh...@eke.fi
  wrote:
 
Run the pre-validation tool from SDK, if you get green there, it’s
  much closer to approval…
 
 
 
  (I prefer accessing it through browser,
  http://127.0.0.1:8080/C/harbour_tools/ )
 
 
 
  -kimmo
 
 
 
  *From:* devel-boun...@lists.sailfishos.org [mailto:
  devel-boun...@lists.sailfishos.org] *On Behalf Of *Peter Pykäläinen
  *Sent:* Monday, December 01, 2014 10:34 PM
  *To:* Sailfish OS Developers
  *Subject:* Re: [SailfishDevel] QtFeedback 5.0 not allowed? Really?
 
 
 
  Hi,
 
  yes I did, thank you all for your help.
 
  Especially Andrey, you are the man!
 
  Let's see now if this passes harbour QA or not :)
 
 
 
  // Peter Pykäläinen
 
 
 
  On 1 December 2014 at 22:30, Gabriel Böhme
  m.gabrielboe...@googlemail.com wrote:
 
  Have you tried cleaning the project? Helps sometimes.
 
  Am Mon Dec 01 2014 21:18:17 GMT+0100 (CET) schrieb Peter Pykäläinen:
 
  I give up!
 
  Once I figured out how to add the stupid haptics stuff into the
  .pro
  file I
  then get errors on my main when I try to compile:
 
  error: undefined reference to `SailfishApp::application(int,
  char**)' error: undefined reference to `SailfishApp::createView()'
  error: undefined reference to `SailfishApp::pathTo(QString const)'
 
  I have used this kind of code succesfully in my other app and no
  issue there.
 
  Any help would be much appreciated.
 
  My main looks like this:
 
  #ifdef QT_QML_DEBUG
 
  #include QtQuick
 
  #endif
 
 
  #include sailfishapp.h
 
  #include rumbler.h
 
  #include QQuickView
 
  #include QQmlContext
 
  #include QGuiApplication
 
 
 
  int main(int argc, char *argv[])
 
  {
 
   // SailfishApp::main() will display qml/template.qml, if you
  need
  more
 
   // control over initialization, you can use:
 
   //
 
   //   - SailfishApp::application(int, char *[]) to get the
  QGuiApplication *
 
   //   - SailfishApp::createView() to get a new QQuickView *
  instance
 
   //   - SailfishApp::pathTo(QString) to get a QUrl to a
  resource file
 
   //
 
   // To display the view, call show() (will show fullscreen on
  device).
 
 
  //return SailfishApp::main(argc, argv);
 
   QScopedPointerQGuiApplication
  app(SailfishApp::application(argc,
  argv));
 
   QScopedPointerQQuickView view(SailfishApp::createView());
 
 
   Rumbler rumbler;
 
 
   view-rootContext()-setContextProperty(Rumbler

Re: [SailfishDevel] SSH listen address

2015-04-19 Thread Kimmo Lindholm
I'm also not worried on mobile side, but more on allowing ssh in while visiting 
random wlan networks.
If the wlan network configuration had something like home network and public 
network, and ssh logins allowed only on home network ?

I remember also seeing an app for allowing ssh in only after user acceptance on 
phone.

On mobile side, I can activate a public IP for the phone (Saunalahti, Finland) 
but that works only for 3G. 

-kimmo

-Original Message-
From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Ove Kåven
Sent: 19. huhtikuuta 2015 22:07
To: devel@lists.sailfishos.org
Subject: Re: [SailfishDevel] SSH listen address

Den 19. april 2015 18:50, skrev E.S. Rosenberg:
 So this leaves an, I think, interesting question: how do we on the one 
 hand allow SSH access while on the other hand preventing access from 
 GSM/3G/4G?

Is it important? Most likely your carrier is going to firewall you anyway.

As an experiment, I just tried pinging and ssh-ing to my 4G-connected phone, 
but neither worked. That is, I tried to connect to the IP address shown in 
ifconfig rmnet0 (which is showing a real IP address, not NAT), but apparently 
something is blocking it. (And my ssh seems to be listening on all interfaces.) 
So at least for me, there seems to be no need to do anything to prevent such 
access. I'm guessing it's pretty much the same for all carriers.

___
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] App won't start

2015-03-15 Thread Kimmo Lindholm
this works as nemo
systemctl --user restart lipstick

and this as root
systemctl-user restart lipstick

-kimmo

Thanks.
I had to run that as root to make it work.



___
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 Kimmo Lindholm
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

Re: [SailfishDevel] Possible to trigger email app with attachment

2015-02-06 Thread Kimmo Lindholm
launch email app from QML

Qt.openUrlExternally(mailto: h...@hippa.com +
?subject=Bug report +
body=Write here what is wrong...)


Have no experience is this allowed in Harbour?

-kimmo

 -Original Message-
 From: devel-boun...@lists.sailfishos.org [mailto:devel-
 boun...@lists.sailfishos.org] On Behalf Of Kaj-Michael Lang
 Sent: 6. helmikuuta 2015 12:19
 To: devel@lists.sailfishos.org
 Subject: Re: [SailfishDevel] Possible to trigger email app with attachment
 
 On Fri, 2015-02-06 at 15:11 +0500, Andrey Kozhevnikov wrote:
  But it's not allowed for harbour applications, unfortunately.
 
 Oh, how am I not surprised by that.. sigh
 
 --
 Kaj-Michael Lang mil...@tal.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] Harbour and QML import

2015-01-19 Thread Kimmo Lindholm
..and use rpm pre-validation tool in SDK tools, either through QtCreator (left 
toolbar SailfishOs (or Ctrl-5)), or accessing them with  external browser at 
address http://127.0.0.1:8080

-kimmo


just rename your extension import to harbour.it.mupp.core and read 
https://harbour.jolla.com/faq
19.01.2015 15:16, Michele Tameni пишет:
Hi all,
I just got an app rejected in the harbour  as i have in some QML the following 
line:



import it.mupp.core 1.0

where i registered the type as follow in c++ side.

qmlRegisterTypeDownloadManager(it.mupp.core, 1, 0, DownloadManager);

Now, I'm not using any not allowed lib, but just trying to use my own c++ class 
in QML.

Is this really not allowed?
Thankyou.
Michele

--
michele tameni




___

SailfishOS.org Devel mailing list

To unsubscribe, please send a mail to 
devel-unsubscr...@lists.sailfishos.orgmailto:devel-unsubscr...@lists.sailfishos.org

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

Re: [SailfishDevel] Update on SailfishOS roadmap

2015-01-16 Thread Kimmo Lindholm

Credits belong to Stefano, https://twitter.com/zzste/status/556158724847726593 



On 16.01.2015 15:03, Soumya Bijjal wrote:
 * prototyping excrypted filesystem

meant to write encrypted ofcourse, thanks Kimmo for drawing my attention
to it :)

-Soumya

___
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] Sailfish IDE hangs

2015-01-15 Thread Kimmo Lindholm
Had similar non-responsive issues (on win7 x64), but without doing anything, 
just being patient, hangs did stop happening after a few hours.
So far so good.

Heard that others have had similar issues too.

I didn’t found any specific reason for this.

-kimmo

From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of ? ???
Sent: 15. tammikuuta 2015 13:01
To: devel@lists.sailfishos.org
Subject: [SailfishDevel] Sailfish IDE hangs

Hello!
I was using 1407 version of SDK and everything was working fine, now I 
installed 1412 version and IDE just hangs (no processor/disk usage at that 
time) after launch, then after about 30 seconds it is working fine then after 
about 10 seconds hangs again etc. etc. The same happening on 1410 version.
I installed 1407 again and all is working fine again.

I am using windows 8.1 x64.
Maybe you know what can cause this?
Thanks!
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Build with sailfish latest on mer-obs fails, QVariant, double (?)

2015-01-11 Thread Kimmo Lindholm
...lesson learned :)


This is why #defines are a terrible idea when there are alternatives. First, 
the pi number is already defined as M_PI in math.h. 
Second, if you have to do that, and specify constants, use a const double foo 
=  The compile errors (if any) will be much more meaningful.
 
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Build with sailfish latest on mer-obs fails, QVariant, double (?)

2015-01-08 Thread Kimmo Lindholm
Thanks to fellows on #sailfishos

i had made a bad thing: (or bad copypaste)
#define pi (3.14159)

in some other place someone else;
QtMetaTypePrivate::QPairVariantInterfaceImpl pi =  
v.valueQtMetaTypePrivate::QPairVariantInterfaceImpl();

And seems that my #define messed things up.
Now it builds correctly.

-kimmo


From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Kimmo Lindholm
Sent: 8. tammikuuta 2015 11:20
To: devel@lists.sailfishos.org
Subject: [SailfishDevel] Build with sailfish latest on mer-obs fails, QVariant, 
double (?)

My toholed daemon is built on mer-obs, succesfully built previously during 
October.
Now the repo has propably been updated to latest sailfish release, and build 
fails strangely. (Rebuilt for some reason 6th Jan)

That include file trace doesn't help at all.

build-log says this for error:
(Complete log here 
https://build.merproject.org/package/live_build_log/home:kimmoli:tohs/toholed-daemon/sailfish_latest_armv7hl/armv8el
 )

[   62s] In file included from /usr/include/qt5/QtCore/qvariantanimation.h:48:0,
[   62s]  from /usr/include/qt5/QtCore/qpropertyanimation.h:45,
[   62s]  from /usr/include/qt5/QtCore/QtCore:8,
[   62s]  from /usr/include/qt5/QtDBus/QtDBusDepends:2,
[   62s]  from /usr/include/qt5/QtDBus/QtDBus:3,
[   62s]  from src/toholed.cpp:19:
[   62s] /usr/include/qt5/QtCore/qvariant.h: In static member function 'static 
QPairQVariant, QVariant 
QtPrivate::QVariantValueHelperInterfaceQPairQVariant, QVariant 
::invoke(const QVariant)':
[   62s] /usr/include/qt5/QtCore/qvariant.h:789:62: error: no matching function 
for call to 
'QtMetaTypePrivate::QPairVariantInterfaceImpl::QPairVariantInterfaceImpl(double)'
[   62s] /usr/include/qt5/QtCore/qvariant.h:789:62: note: candidates are:
[   62s] /usr/include/qt5/QtCore/qmetatype.h:1247:5: note: 
QtMetaTypePrivate::QPairVariantInterfaceImpl::QPairVariantInterfaceImpl()
[   62s] /usr/include/qt5/QtCore/qmetatype.h:1247:5: note:   candidate expects 
0 arguments, 1 provided
[   62s] /usr/include/qt5/QtCore/qmetatype.h:1236:23: note: templateclass T 
QtMetaTypePrivate::QPairVariantInterfaceImpl::QPairVariantInterfaceImpl(const 
T*)
[   62s] /usr/include/qt5/QtCore/qmetatype.h:1215:7: note: 
QtMetaTypePrivate::QPairVariantInterfaceImpl::QPairVariantInterfaceImpl(const 
QtMetaTypePrivate::QPairVariantInterfaceImpl)
[   62s] /usr/include/qt5/QtCore/qmetatype.h:1215:7: note:   no known 
conversion for argument 1 from 'double' to 'const 
QtMetaTypePrivate::QPairVariantInterfaceImpl'
[   62s] /usr/include/qt5/QtCore/qvariant.h:791:62: error: request for member 
'first' in '3.141589988261834005243144929409027099609e+0', which is of 
non-class type 'double'
[   62s] /usr/include/qt5/QtCore/qvariant.h:796:62: error: request for member 
'second' in '3.141589988261834005243144929409027099609e+0', which is of 
non-class type 'double'
[   62s] make: *** [toholed.o] Error 1
[   62s] make: *** Waiting for unfinished jobs
[   64s] error: Bad exit status from /var/tmp/rpm-tmp.oWhNJy (%build)
[   64s]
[   64s]
[   64s] RPM build errors:
[   64s] Bad exit status from /var/tmp/rpm-tmp.oWhNJy (%build)

Sources are in my bitbucket

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

Re: [SailfishDevel] No RPM built ?

2014-12-03 Thread Kimmo Lindholm
Don't know how you do it, but I use  'deploy project' from the Build menu (not 
from the left-bottom-corner toolbar) and it works for me. 

And iirc my settings are defaults; 
https://app.younited.com/?shareObject=3ca32a4b-94b7-1352-31d5-712020ff2c2f

The rpm appears in ..\build-projectname\RPMS\ -directory.

-kimmo


 -Original Message-
 From: devel-boun...@lists.sailfishos.org [mailto:devel-
 boun...@lists.sailfishos.org] On Behalf Of Franck Routier (perso)
 Sent: 3. joulukuuta 2014 11:05
 To: devel@lists.sailfishos.org
 Subject: Re: [SailfishDevel] No RPM built ?
 
 
 Le 02/12/2014 22:48, Peter Pykäläinen a écrit :
 
  Deploy by building fails for me too. Always has.
  If you are able to deploy to phone then you have the RPM on your disk too.
 
  // Peter Pykäläinen
 
 
 I think it used to work here (but I've not been working on the project for
 months, so my memory might be faulty).
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] No RPM built ?

2014-12-02 Thread Kimmo Lindholm
Hi,

https://gitorious.org/mkpokerplanning/mkpokerplanning/ ?

Try to close project, delete .pro.user, delete build- dir, reopen project, 
Reconfigure it.
then hit deploy.

deployed for me (after adding / after %{_datadir} in yaml)
- '%{_datadir}/harbour-mkpokerplanning'
- '%{_datadir}/harbour-mkpokerplanning/languages'
- '%{_datadir}/icons/hicolor/86x86/apps'
- '%{_datadir}/applications'

-kimmo

From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Franck Routier (perso)
Sent: Tuesday, December 02, 2014 8:36 PM
To: devel@lists.sailfishos.org
Subject: [SailfishDevel] No RPM built ?

Hi,

I am trying to package my app as a RPM, but I don't get any RPM.

The target I choose is  MerSDK-SailfishOS-armv7hl / Release / Deploy By 
Building an RPM Package.

The console output is :



19:28:58: Running steps for project harbour-mkpokerplanning...

19:28:58: Start SDK: Starting MerSDK virtual machine...

19:29:07: Starting: 
/home/franck/.config/SailfishBeta1/mer-sdk-tools/MerSDK/SailfishOS-armv7hl/qmake
 
/home/franck/devel/qt-mobile/harbour-mkpokerplanning/harbour-mkpokerplanning.pro
 -r -spec linux-g++



Building target platforms: armv7hl-meego-linux

Building for target armv7hl-meego-linux

Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.qeXxnF

19:29:11: The process 
/home/franck/.config/SailfishBeta1/mer-sdk-tools/MerSDK/SailfishOS-armv7hl/qmake
 exited normally.

19:29:11: Starting: 
/home/franck/.config/SailfishBeta1/mer-sdk-tools/MerSDK/SailfishOS-armv7hl/make

Building target platforms: armv7hl-meego-linux

Building for target armv7hl-meego-linux

Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.0QhjVX

make: Nothing to be done for `first'.

19:29:12: The process 
/home/franck/.config/SailfishBeta1/mer-sdk-tools/MerSDK/SailfishOS-armv7hl/make
 exited normally.

19:29:12: Elapsed time: 00:14.

In my build-harbour-mkpokerplanning-MerSDK_SailfishOS_armv7hl-Release 
directory, I have no rpm subdir, only these files:

harbour-mkpokerplanningMakefileqrc_images.o
harbour-mkpokerplanning.o  qrc_images.cpp

So, I must be mssing something, but... what ?

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

Re: [SailfishDevel] GPLv3 warning

2014-12-02 Thread Kimmo Lindholm
Just for that your yaml says:

License: GPLv3



Lähettäjä: devel-boun...@lists.sailfishos.org 
[devel-boun...@lists.sailfishos.org] k#228;ytt#228;j#228;n i...@heubergen.me 
[i...@heubergen.me] puolesta
Lähetetty: 2. joulukuuta 2014 21:15
Vastaanottaja: Sailfish OS Developers
Aihe: Re: [SailfishDevel] GPLv3 warning

Hi Franck

I think you get this warning because you use some unfree libraries.

December 2 2014 7:25 PM, Franck Routier (perso) a...@mecadu.org wrote:
 Hi,

 when I build my app, I get a warning saying: Warning GPLv3 related license 
 might be unacceptable.

 What does that mean, and what is this message relative to ?

 Franck
___
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] QtFeedback 5.0 not allowed? Really?

2014-12-01 Thread Kimmo Lindholm
Run the pre-validation tool from SDK, if you get green there, it’s much closer 
to approval…

(I prefer accessing it through browser, http://127.0.0.1:8080/C/harbour_tools/ )

-kimmo

From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Peter Pykäläinen
Sent: Monday, December 01, 2014 10:34 PM
To: Sailfish OS Developers
Subject: Re: [SailfishDevel] QtFeedback 5.0 not allowed? Really?

Hi,
yes I did, thank you all for your help.
Especially Andrey, you are the man!
Let's see now if this passes harbour QA or not :)


// Peter Pykäläinen

On 1 December 2014 at 22:30, Gabriel Böhme 
m.gabrielboe...@googlemail.commailto:m.gabrielboe...@googlemail.com wrote:
Have you tried cleaning the project? Helps sometimes.

Am Mon Dec 01 2014 21:18:17 GMT+0100 (CET) schrieb Peter Pykäläinen:
 I give up!

 Once I figured out how to add the stupid haptics stuff into the .pro file I
 then get errors on my main when I try to compile:

 error: undefined reference to `SailfishApp::application(int, char**)'
 error: undefined reference to `SailfishApp::createView()'
 error: undefined reference to `SailfishApp::pathTo(QString const)'

 I have used this kind of code succesfully in my other app and no issue
 there.

 Any help would be much appreciated.

 My main looks like this:

 #ifdef QT_QML_DEBUG

 #include QtQuick

 #endif


 #include sailfishapp.h

 #include rumbler.h

 #include QQuickView

 #include QQmlContext

 #include QGuiApplication



 int main(int argc, char *argv[])

 {

 // SailfishApp::main() will display qml/template.qml, if you need more

 // control over initialization, you can use:

 //

 //   - SailfishApp::application(int, char *[]) to get the QGuiApplication 
 *

 //   - SailfishApp::createView() to get a new QQuickView * instance

 //   - SailfishApp::pathTo(QString) to get a QUrl to a resource file

 //

 // To display the view, call show() (will show fullscreen on device).


 //return SailfishApp::main(argc, argv);

 QScopedPointerQGuiApplication app(SailfishApp::application(argc, argv));

 QScopedPointerQQuickView view(SailfishApp::createView());


 Rumbler rumbler;


 view-rootContext()-setContextProperty(Rumbler, rumbler);

 view-setSource(SailfishApp::pathTo(qml/harbour-myapp.qml));

 view-show();

 view-showFullScreen();


 return app-exec();

 }





 // Peter Pykäläinen

 On 1 December 2014 at 15:08, Andrey Kozhevnikov 
 coderusin...@gmail.commailto:coderusin...@gmail.com
 wrote:

   I can suggest you to use QtFeedback from Qt side and register QML type.
 
  01.12.2014 18:06, Peter Pykäläinen пишет:
 
Just got my game rejected in Jolla Harbour this morning due to:
 
 
  *Import 'QtFeedback 5.0' is not allowed *
  Is it really so that vibration is not allowed in Harbour apps?
   Is there any alternative?
 
  // Peter Pykäläinen
 
 
  ___
  SailfishOS.org Devel mailing list
  To unsubscribe, please send a mail to 
  devel-unsubscr...@lists.sailfishos.orgmailto:devel-unsubscr...@lists.sailfishos.org
 
 
 
  ___
  SailfishOS.org Devel mailing list
  To unsubscribe, please send a mail to
  devel-unsubscr...@lists.sailfishos.orgmailto:devel-unsubscr...@lists.sailfishos.org
 


--
Gesendet von meinem Jolla
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to 
devel-unsubscr...@lists.sailfishos.orgmailto:devel-unsubscr...@lists.sailfishos.org

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

Re: [SailfishDevel] This is a test email

2014-11-22 Thread Kimmo Lindholm
Hmm, I can't see any mails sent by Chris Sparks to the list , only replies to 
those.

-Original Message-

El Saturday 22 November 2014, Chris Sparks escribió:
 My email tool only has compose, reply and reply-all.  So my choices are 
 limited.

Yes, that's the point. When you compose a message, you start fresh. You fill 
the subject and the body.

When you reply (to all, to list, or just reply), even if you remove everything 
from the body and the subject to fill it from scratch, the MUA still adds the 
headers that I mentioned.
 
 What is an MUA?

Mail User Agent. That's a fancy way to say the program that you use to send 
emails. But it has a purpose, since for people using a webmail, the browser 
is not the culprit for those extra headers. :)

Now I'll stop here my lessons on netiquette and Internet, because Sailfish OS 
is much more fun. ;-)

-- 
Alex (a.k.a. suy) | GPG ID 0x0B8B0BC2
http://barnacity.net/ | http://disperso.net
___
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] Please update tzdata on Sailfish

2014-10-26 Thread Kimmo Lindholm
Isn’t that h-version already outdated ? (5 days ago)
http://www.iana.org/time-zones


From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Andrea Bernabei
Sent: Sunday, October 26, 2014 5:13 PM
To: Sailfish OS Developers
Subject: Re: [SailfishDevel] Please update tzdata on Sailfish

https://github.com/nemomobile/tzdata-timed/commit/907a28d6dc39a7f95a21b2ab158de310fe30a9ad

Cheers,
faenil

2014-10-26 15:23 GMT+01:00 Andrey Kozhevnikov 
coderusin...@gmail.commailto:coderusin...@gmail.com:
Jolla! Please update tzdata in some future hotfix release! Stupid russian 
goverment changed timezones again. Now Moscow have UTC+3 clock. There is tzdata 
2014i available, but Jolla still using tzdata 2013i.

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

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

Re: [SailfishDevel] Call events

2014-10-08 Thread Kimmo Lindholm
Hi, 

I use following dbus approach; 
com.nokia.mce, /com/nokia/mce/signal, com.nokia.mce.signal, 
sig_call_state_ind

Looking for strings ringing, active, none with small state-machine.

When someone calls to the phone, ringing - answered active - not 
answered/hangup none
Making a outgoing call active -- hup none

-kimmo


Lähettäjä: devel-boun...@lists.sailfishos.org 
[devel-boun...@lists.sailfishos.org] k#228;ytt#228;j#228;n Dmitriy Purgin 
[dpur...@gmail.com] puolesta
Lähetetty: 8. lokakuuta 2014 12:05
Vastaanottaja: Sailfish OS Developers
Aihe: Re: [SailfishDevel] Call events

Hi,

the telephony is provided by oFono which has a convenient DBus
interface, [1]. You might as well use libqofono-qt5 [2] binding which
is much easier, but won't be approved by harbour unless you put it as
a private library of your application.

Cheers

[1] https://git.kernel.org/cgit/network/ofono/ofono.git/tree/doc
[2] https://github.com/nemomobile/libqofono

2014-10-08 14:00 GMT+06:00 Kaj-Michael Lang mil...@tal.org:
 Is there some, official harbour approved, way to get notified about
 incoming/outgoing calls start/stop so my app can react to these events ?


 --
 Kaj-Michael Lang mil...@tal.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


Re: [SailfishDevel] Upcoming behavioural change with how graphics resources are handled.

2014-09-29 Thread Kimmo Lindholm
Yes, I did choose this way by the nature of my paint application.
Potentially recording all strokes etc. could consume also some amount of memory,
and maybe make the usage-experience tacky.

On charts etc, I also would redraw, and the data is there.

I have another app where I need to implement that other method too.

-kimmo

On 29 Sep 2014, at 16:43, Mohammed Hassan mohammed.has...@jolla.com wrote:

 On Sat, 27 Sep 2014 16:28:42 +
 Kimmo Lindholm kimmo.lindh...@eke.fi wrote:
 
 Hi,
 
 Just wanted to give a follow-up on this topic;
 
 You are affected if you are drawing on Canvas (and don't want to
 repaint it completely when returning to application) Symptom is that
 canvas gets cleared when going away from application (minimizing it
 to cover)
 
 The simplest way to not allow releasing, add two middle lines in your
 main() as suggested in original email;
 
 view-setSource(SailfishApp::pathTo(qml/ankkuri.qml));
 view-setPersistentOpenGLContext(true); 
 view-setPersistentSceneGraph(true);
 view-show();
 
 I'd personally not recommend doing that just because you don't want to
 repaint. Releasing the resources decreases the memory footprint of the
 application when minimized and allows the system to stay more
 responsive.
 
 If a lot of apps start to not release the GL context and scene graph GL
 bits then that will negatively impact the whole system.
 
 Just my 0.02

I completely agree :) 

Though setting the persistent GL/SG flags is very helpful to get it running 
after the change over, I would suggest that applications try to avoid it when 
possible.

For the case of Canvas, the problem arises if the application uses 
Canvas.FramebufferObject AND relies on the contents of the canvas not being 
cleared between calls to Canvas.onPaint. It should be a pretty rare scenario. 
However, for this specific scenario, there is no good alternative, so it is the 
tool of choice.

cheers,
Gunnar

www.sletta.org

 
 Cheers,
 ___
 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] Upcoming behavioural change with how graphics resources are handled.

2014-09-27 Thread Kimmo Lindholm
Hi,

Just wanted to give a follow-up on this topic;

You are affected if you are drawing on Canvas (and don't want to repaint it 
completely when returning to application)
Symptom is that canvas gets cleared when going away from application 
(minimizing it to cover)

The simplest way to not allow releasing, add two middle lines in your main() as 
suggested in original email;

view-setSource(SailfishApp::pathTo(qml/ankkuri.qml));
view-setPersistentOpenGLContext(true); 
view-setPersistentSceneGraph(true);
view-show();

-kimmo

-Original Message-
From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Gunnar Sletta
Sent: Tuesday, May 06, 2014 12:55 PM
To: devel@lists.sailfishos.org
Subject: [SailfishDevel] Upcoming behavioural change with how graphics 
resources are handled.

Hi,

If you are not using OpenGL directly or the Qt Quick scene graph's C++ API, 
please ignore this mail.

Qt Quick and the scene graphs supports releasing its graphics resources when 
the application is not rendering. This is not a feature we have been taking 
advantage of so far, but as you can guess, it can be quite beneficial on a 
multitasking system to release unused graphics memory.

Once we move our stack to Qt 5.2, we will change the defaults of 
http://qt-project.org/doc/qt-5/qquickwindow.html#setPersistentSceneGraph and 
http://qt-project.org/doc/qt-5/qquickwindow.html#setPersistentOpenGLContext
to be false meaning that when an application is not on screen, its graphics 
memory and OpenGL context will be deleted. 

- Applications using Qt Quick, Sailfish Silica Components combined with 
non-graphical C++ APIs are not affected.
- Applications using only QML-level API, including ShaderEffect or 
CustomParticle, are not affected. 
- Applications using QWindow and QOpenGLContext and not Qt Quick are also not 
affected. 
- Covers are unaffected.

Only applications using Qt Quick, QSG-classes and/or QOpenGLContext and/or raw 
OpenGL calls ARE affected. If this applies to you, there are two ways to deal 
with graphics stuff being released:

1. Don't allow releasing. 

This is a valid scenario in many cases. Shaders have been compiled, resources 
loaded, etc and rebuilding this is difficult, take too long to be feasible or 
some times not possible at all. If so, add the following two lines to your 
main.cpp AFTER you told it to load the QML file and BEFORE you show it.

  QQuickWindow::setPersistentSceneGraph(true);
  QQuickWindow::setPersistentOpenGL(true);

This will revert to the current behaviour where graphics resources are 
retained, even when the application is backgrounded.

2. React and handle it.

Use the QQuickWindow::sceneGraphInvalidated() and 
QOpenGLContext::aboutToBeDestroyed() signals to clean up your graphics 
resources and let your application handle not being shown on screen. 

---

I can't tell you when the change over happens, but we're aiming for some time 
later this year :) I'm giving you an early heads up so you can update your 
applications now if you are affected. Reacting to 
http://qt-project.org/doc/qt-5/qquickwindow.html#sceneGraphInvalidated or 
http://qt-project.org/doc/qt-5/qopenglcontext.html#aboutToBeDestroyed is 
something something you can already do. Same if you want to avoid the issue all 
together and setPersistent(SceneGraph|OpenGL)(true) right away. These APIs have 
been there since Qt 5.0.

---

If you have further questions, please feel free to ask.

cheers,
Gunnar (sletta on IRC)


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


[SailfishDevel] QAudioDecoder support

2014-08-16 Thread Kimmo Lindholm
FYI, my question in Together  
https://together.jolla.com/question/53560/qaudiodecoder-support-missing/

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


Re: [SailfishDevel] app crashed when using Canvas in Dialog page

2014-08-13 Thread Kimmo Lindholm
Do you have virtual keyboard visible when closing dialog?

https://together.jolla.com/question/44780/closing-dialog-with-vkb-active-breaks-canvas-on-returning-page/

-kimmo

From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Samuli Silvius
Sent: Wednesday, August 13, 2014 10:07 PM
To: Sailfish OS Developers
Subject: Re: [SailfishDevel] app crashed when using Canvas in Dialog page

Hi,

Sdk produces this dump, cannot really figure out the reason? Or what backtrace 
you mean?

-Samuli

2014-08-13 21:50 GMT+03:00 Andrey Kozhevnikov 
coderusin...@gmail.commailto:coderusin...@gmail.com:
try to get backtrace and check what exactly is the reason of crash.
14.08.2014 00:49, Samuli Silvius пишет:
Hi,

I have Canvas in Silica Dialog page but app crashes when leaving dialog page 
both with accept or cancel swipe. It does not crash always just quite often.

the code:

Canvas {

id: imageCanvas

visible: isImageUrl

width: imgLoader.sourceSize.width

height: imgLoader.sourceSize.height

renderStrategy: Canvas.Immediate

onPaint: {

var ctx = getContext(2d)

ctx.drawImage(imgLoader, 0, 0)

}

}

Image {

id: imgLoader

visible: false

source: isImageUrl ? url : 

}
The idea is to save image to the gallery in onAccepted if user has selected 
that option as Canvas has save method which can be used to save image to a file.

And it works fine, but causing app to crash sometimes when leaving Dialog page 
with cancel swipe. SDK outputs a long crash dump.

-Samuli


___

SailfishOS.org Devel mailing list

To unsubscribe, please send a mail to 
devel-unsubscr...@lists.sailfishos.orgmailto:devel-unsubscr...@lists.sailfishos.org


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

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

[SailfishDevel] After building app with latest SDK, gives dconf-critical

2014-08-09 Thread Kimmo Lindholm
Hi,

I just started to make some improvements to my paint app, and since last build 
I have updated SDK.
No changes made to the source, SDK builds and deploys without problems.

But when app is launched on phone, I get lots of following errors:

   (process:23185): dconf-CRITICAL **: unable to create file 
'/run/user/10/dconf/user': Permission denied.  dconf will not work properly.

Full here http://pastebin.com/DDK9KZWQ
Application seems to load the screen ok but it is not responding, and soon the 
not responding -popup appears.

If someone could help with this ?

For ref, sources can found from https://github.com/kimmoli/paint

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

Re: [SailfishDevel] After building app with latest SDK, gives dconf-critical

2014-08-09 Thread Kimmo Lindholm
SOLVED thanks to coderus,

For some unk reason this was root:root, not nemo:nemo...

nemo@Jolla ~]$ ls -la /run/user/10/dconf
total 4
drwx-- 2 nemo nemo  60 2014-08-06 17:44 .
drwx-- 9 nemo nemo 200 2014-08-09 12:00 ..
-rw--- 1 root root   2 2014-08-09 10:14 user



From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Kimmo Lindholm
Sent: Saturday, August 09, 2014 11:46 AM
To: devel@lists.sailfishos.org
Subject: [SailfishDevel] After building app with latest SDK, gives 
dconf-critical

Hi,

I just started to make some improvements to my paint app, and since last build 
I have updated SDK.
No changes made to the source, SDK builds and deploys without problems.

But when app is launched on phone, I get lots of following errors:

   (process:23185): dconf-CRITICAL **: unable to create file 
'/run/user/10/dconf/user': Permission denied.  dconf will not work properly.

Full here http://pastebin.com/DDK9KZWQ
Application seems to load the screen ok but it is not responding, and soon the 
not responding -popup appears.

If someone could help with this ?

For ref, sources can found from https://github.com/kimmoli/paint

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

Re: [SailfishDevel] Access Device and User Information

2014-07-26 Thread Kimmo Lindholm
As a workaround, IMEI seems to be available from sysfs:

/sys/devices/system/soc/soc0/imei


Lähettäjä: devel-boun...@lists.sailfishos.org 
[devel-boun...@lists.sailfishos.org] k#228;ytt#228;j#228;n Andreas Heil 
[i...@aheil.de] puolesta
Lähetetty: 26. heinäkuuta 2014 08:14
Vastaanottaja: devel@lists.sailfishos.org
Aihe: [SailfishDevel] Access Device and User Information

Hi all,

first of all, thank you very much for the previous help and suggestions, which 
in fact brought me always a small step forward.

At the moment I stuck with accessing the Jolla's device information.

I am looking for some kind of device ID, IMEI number or something else which is 
unique. If possible I would prefer to access this information via Qt/C++.

I went through the archives and found a couple of similar requests, 
unfortunately, none with satisfying information.

To my understanding, such information might be accessible via Qt Systems which 
seems not available. I currently using a workaraound accessing the MAC address 
of the very first interface I can find to identify the device since this is the 
only unique information I recently found.

Kind regards,
Andreas
___
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] Adding colors the ColorPickerDialog

2014-07-19 Thread Kimmo Lindholm
TJC has answer for this:

https://together.jolla.com/question/18240/more-colors-in-silica-color-picker/

-kimmo

From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Marcin M.
Sent: 19. heinäkuuta 2014 21:43
To: devel@lists.sailfishos.org
Subject: [SailfishDevel] Adding colors the ColorPickerDialog

Hi,

I want to make sure not to make mess in my app. I'd like to add additional 
colors to the ColorPicker. Can I simply append the hexcodes to 
ColorPickerDialog::colors? Or should I do it in another way?

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

Re: [SailfishDevel] Installing powertop failed - Failed to obtain authentification

2014-07-17 Thread Kimmo Lindholm
Fatal error: Failed to obtain authentification

In 1.0.8.19 you need to use pkcon as root (devel-su)




From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Steffen Förster
Sent: 16. heinäkuuta 2014 21:27
To: devel@lists.sailfishos.org
Subject: [SailfishDevel] Installing powertop failed - Failed to obtain 
authentification

Hi

I have to install powertop on my Jolla (my app was rejected).

The install explanation on 
https://together.jolla.com/question/13243/my-app-got-rejected-to-store-because-of-high-power-consumption-how-to-debug-problems/#13247
 failed on my Jolla.

I should execute these three steps:

$ ssu ar mer-tools
$ pkcon refresh
$ pkcon install powertop

--

Step 2 failed with following output:

Refreshing cache
Waiting in queue
Waiting for authentication
Fatal error: Failed to obtain authentification

Step 3 failed with following output:

Command failed: this tool could not find any available package: could not find 
powertop

--

Any suggestions? (Info: wifi is connected, developer mode is active)

Thanks,
Steffen




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

[SailfishDevel] Sailfish OS SDK July update - VirtualBox 4.3.14 for Windows broken

2014-07-16 Thread Kimmo Lindholm
FYI

When installing SDK, I updated also the VirtualBox to latest version, which was 
not so good decision...

Seems that VirtualBox 4.3.14 for Windows is broken. Use 4.3.12 with SDK (or 
some other version)

Some more here: https://forums.virtualbox.org/viewtopic.php?f=6t=62597 - at 
least I got similar errors when starting merSDK. After downgrading, all works 
ok.

-kimmo



-Original Message-
From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Juha Kallioinen
Sent: 14. heinäkuuta 2014 18:27
To: Sailfish OS Developers
Subject: [SailfishDevel] Sailfish OS SDK July update available tomorrow 12:00 
UTC

Hello again,

Tomorrow (July 15th) at 12:00 UTC we will publish new installers and 
package repositories for our Sailfish OS SDK version Alpha-1407-Qt5.

If you already have an existing Alpha-Qt5 SDK installed you should see 
the Updates Available icon in Qt Creator. If you don't have a previous 
SDK installation you can get the latest installer from 
http://www.sailfishos.org.

It is recommended to uninstall the old SDK and download a new installer.

SDK content has been updated to match Jolla Release 1.0.8.19. Please see 
below for detailed information of the changes.

A couple of things you should be aware of:
- As before, in this update the build engine, emulator and targets are 
re-installed so you will lose all changes you may have made in those - 
however, if your application packaging is done correctly, rebuilding 
your projects should reinstall the packages you have been using.
- Any customization done to SDK (adding new package repositories, adding 
custom targets, additional source paths) will be removed during the 
installation process so make your own backup of those before starting 
the update.
- If you import existing projects made with a previous version of the 
Sailfish OS SDK, make sure to select the correct kit in the project 
configuration step. Both ARM and i486 kits are available.
- Windows users need to install VC10 runtime from 
http://www.microsoft.com/en-us/download/confirmation.aspx?id=8328 or the 
Installer will ask for admin rights during installation.
- Package repository contents have been updated and consequently using a 
previous SDK version with these package repositories is not supported.
- Supported host platforms can be found from: 
https://sailfishos.org/alpha_qt5_sdk_release_notes.html
- For more information, please see the SDK Alpha-Qt5 known issues list 
at: https://sailfishos.org/wiki/SDK_Alpha_Qt5_Known_Issues.

This is mainly a housekeeping release and here's the short summary of 
changes:

SDK IDE (Qt Creator)
- Fix bugs related to handling symlinked home directory or project 
directory. This change affects only Linux and Mac hosts.
- Updated component gallery sources in the Example projects
- Updated Sailfish Silica help documentation

Installer:
- Fix Sailfish template application source location in Mac installer. 
Mac users should check out the updated default template application, it 
has some changes that were missing in the previous installer.

SDK Build engine:
- Build targets refreshed to Jolla release 1.0.8.19 level.
- RPM repositories point to releases.jolla.com instead of 
releases.sailfishos.org.

SDK Control Center:
- No updates

Emulator:
- Emulator packages refreshed to Jolla release 1.0.8.19 level.
- RPM repositories point to releases.jolla.com.

Website:
- The Silica documentation at http://sailfishos.org/sailfish-silica/ 
updated to current level.

If you have any questions, feel free to either send an email to this 
mailing list: mailto:devel@lists.sailfishos.org or write it up in 
http://together.jolla.com and tag your issue with 'sdk'.

Happy hacking,
Jolla SDK Team.

___
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] Sailfish OS SDK July update - VirtualBox 4.3.14 for Windows broken

2014-07-16 Thread Kimmo Lindholm
Ok, they are rearraning forum due excessive topics of the same issue... 
https://forums.virtualbox.org/viewtopic.php?f=6t=62615 

-Original Message-
From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Andrey Kozhevnikov
Sent: 16. heinäkuuta 2014 15:31
To: devel@lists.sailfishos.org
Subject: Re: [SailfishDevel] Sailfish OS SDK July update - VirtualBox 4.3.14 
for Windows broken

404 by your link

16.07.2014 18:29, Kimmo Lindholm пишет:
 FYI

 When installing SDK, I updated also the VirtualBox to latest version, which 
 was not so good decision...

 Seems that VirtualBox 4.3.14 for Windows is broken. Use 4.3.12 with 
 SDK (or some other version)

 Some more here: https://forums.virtualbox.org/viewtopic.php?f=6t=62597 - at 
 least I got similar errors when starting merSDK. After downgrading, all works 
 ok.

 -kimmo



 -Original Message-
 From: devel-boun...@lists.sailfishos.org 
 [mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Juha 
 Kallioinen
 Sent: 14. heinäkuuta 2014 18:27
 To: Sailfish OS Developers
 Subject: [SailfishDevel] Sailfish OS SDK July update available 
 tomorrow 12:00 UTC

 Hello again,

 Tomorrow (July 15th) at 12:00 UTC we will publish new installers and 
 package repositories for our Sailfish OS SDK version Alpha-1407-Qt5.

 If you already have an existing Alpha-Qt5 SDK installed you should see 
 the Updates Available icon in Qt Creator. If you don't have a previous 
 SDK installation you can get the latest installer from 
 http://www.sailfishos.org.

 It is recommended to uninstall the old SDK and download a new installer.

 SDK content has been updated to match Jolla Release 1.0.8.19. Please 
 see below for detailed information of the changes.

 A couple of things you should be aware of:
 - As before, in this update the build engine, emulator and targets are 
 re-installed so you will lose all changes you may have made in those - 
 however, if your application packaging is done correctly, rebuilding 
 your projects should reinstall the packages you have been using.
 - Any customization done to SDK (adding new package repositories, 
 adding custom targets, additional source paths) will be removed during 
 the installation process so make your own backup of those before 
 starting the update.
 - If you import existing projects made with a previous version of the 
 Sailfish OS SDK, make sure to select the correct kit in the project 
 configuration step. Both ARM and i486 kits are available.
 - Windows users need to install VC10 runtime from
 http://www.microsoft.com/en-us/download/confirmation.aspx?id=8328 or 
 the Installer will ask for admin rights during installation.
 - Package repository contents have been updated and consequently using 
 a previous SDK version with these package repositories is not supported.
 - Supported host platforms can be found from:
 https://sailfishos.org/alpha_qt5_sdk_release_notes.html
 - For more information, please see the SDK Alpha-Qt5 known issues list
 at: https://sailfishos.org/wiki/SDK_Alpha_Qt5_Known_Issues.

 This is mainly a housekeeping release and here's the short summary of
 changes:

 SDK IDE (Qt Creator)
 - Fix bugs related to handling symlinked home directory or project 
 directory. This change affects only Linux and Mac hosts.
 - Updated component gallery sources in the Example projects
 - Updated Sailfish Silica help documentation

 Installer:
 - Fix Sailfish template application source location in Mac installer.
 Mac users should check out the updated default template application, 
 it has some changes that were missing in the previous installer.

 SDK Build engine:
 - Build targets refreshed to Jolla release 1.0.8.19 level.
 - RPM repositories point to releases.jolla.com instead of 
 releases.sailfishos.org.

 SDK Control Center:
 - No updates

 Emulator:
 - Emulator packages refreshed to Jolla release 1.0.8.19 level.
 - RPM repositories point to releases.jolla.com.

 Website:
 - The Silica documentation at http://sailfishos.org/sailfish-silica/
 updated to current level.

 If you have any questions, feel free to either send an email to this 
 mailing list: mailto:devel@lists.sailfishos.org or write it up in 
 http://together.jolla.com and tag your issue with 'sdk'.

 Happy hacking,
 Jolla SDK Team.

 ___
 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] IconButtin and highlight with own icons

2014-05-31 Thread Kimmo Lindholm
Hi,

I'm using IconButton component as the highlight is just what I would like to 
use to show that corresponding function is active.

But I can't use it with my own icons. They need to me from image://theme to 
work, or am I doing something wrong here?

This works nicely with stock-icons, e.g.
IconButton {
icon.source: image://theme/icon-m-edit
highlighted: daa

but if I use my own icon, or that very same icon copied to my app local 
directory, the highlight does not work anymore. e.g. this does not highlight:
IconButton {
icon.source: ../icons/icon-m-edit.png
highlighted: daa

making this into resource does not work either

IconButton {
icon.source: qrc:///icons/icon-m-edit
highlighted: daa

-kimmo

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

Re: [SailfishDevel] was Acceptable Behaviour.. -- Forum

2014-05-26 Thread Kimmo Lindholm
To take TJC in use, atleast we need to agree a specific tag to be used;
(atm seems that there are few in use: app-development, development, silica, 
qml, ...)

And then subscribe that tag, you got them all in your mail.

-kimmo

-Original Message-
From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Norbert Wenzel
Sent: 26. toukokuuta 2014 10:54
To: devel@lists.sailfishos.org
Subject: Re: [SailfishDevel] was Acceptable Behaviour.. -- Forum

On 05/26/2014 09:21 AM, Ruediger Gad wrote:
 Why not let the users make the decision?
 I.e., we have a mailing list and a QA site already, just the forum is
 missing.
 So, if there were a forum as well, it would show over time how the usage
 and the user counts of the different infrastructures develops.

I know that from other projects and what happened there was that some
people use forums and some people use mailinglists. The two communities
don't have much intersection. Which might or might not be a desired
outcome depending on the size of the community.

Personally I have to say that I wouldn't use a forum or any other
web-based platform. I mean, if I really had to I'd post my question
there but I wouldn't follow discussions, since I'd need to actively
visit the forum. I prefer ML because I have one single spot where all
messages of all lists can be found and I'm reading along when I have the
time to do so.

So besides my personal opinion I just wanted to say that too many
options for discussion might lead to fragmentation instead of making
everybody happy.

Norbert
___
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] was Acceptable Behaviour.. -- Forum

2014-05-26 Thread Kimmo Lindholm
Testing TJC with development issues;

https://together.jolla.com/question/43768/dialogconnect-function-loses-its-parent/
 

-kimmo

-Original Message-
From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Denis Zalevskiy
Sent: 26. toukokuuta 2014 13:28
To: devel@lists.sailfishos.org
Subject: Re: [SailfishDevel] was Acceptable Behaviour.. -- Forum

On Monday 26 May 2014 11:03:14 sfietkonstan...@free.fr wrote:
 I went active on TMO while developing for SFOS.
 It's not even a habit but more about easiness to use.
 
 Forum have a clear hiearchy (better than TJC), and a thread system (like in
 ML). It's focused on discussion (unlike TJC), and provides some useful

imo, it is focused on flame mostly and 90% of thread conversation contains 
unuseful ranting.

 tools (edit, formatting, thanks button; better than a ML). IMO it's the

formatting - qa
voting (better than thanks) - qa

 perfect mix for engaging discussions inside the users community, and
 between devs and users.
 

qa is also threaded, and it important that each informative comment can be 
converted to the answer (read useful post)

- denis

 It might not work well to provide feedback to Jolla (TJC might do this
 better), and is less efficient than ML for devs to devs discussions.
 
 So I appreciate to have the 3 tools available, and would love to see Jolla
 cooperate with TMO as a forum of choice for discussions.
 


 - Mail original -
 De: Denis Zalevskiy denis.zalevs...@jollamobile.com
 À: devel@lists.sailfishos.org
 Envoyé: Lundi 26 Mai 2014 10:55:10
 Objet: Re: [SailfishDevel] was Acceptable Behaviour.. -- Forum
 
 On Monday 26 May 2014 10:49:51 sfietkonstan...@free.fr wrote:
  +1
  TMO is often the forum of choice for many developers (me included), to
 
 maybe because you are using TMO for a long time and have a habbit to use it
 ? Also because many people who develop and developed for mobile linux also
 has the same habbit :) So, it is easier to find 'em there.
 
 - denis
 
  communicate with users. TJC could have taken this role, but the flat
  hiearchy, and the focus on QA, it don't fit that much for a discussion
  (especially between users and devs).
  
  - Mail original -
  De: Ruediger Gad r@gmx.de
  À: Sailfish OS Developers devel@lists.sailfishos.org
  Envoyé: Lundi 26 Mai 2014 10:16:34
  Objet: Re: [SailfishDevel] was Acceptable Behaviour.. -- Forum
  
  On 05/26/2014 09:50 AM, Stefano Mosconi wrote:
   ...
   
   Should we invest our time into making a better together.jolla.com rather
   than a different platform (this is not rhetorical)?
  
  Thanks for you answer, both Norbert and you. :)
  Indeed, the time overhead to manage multiple platforms as well as the
  points Nobert mentioned are important aspects and to be honest I have no
  clue about weighting the real trade-offs.
  
  With respect to the question what a forum has that the other platforms
  don't have:
  In a forum, e.g., I feel that I somehow get better contact to users of
  my apps.
  See, e.g., the SkippingStones work-in-progress thread as example:
  http://talk.maemo.org/showthread.php?t=92695
  I also enjoy to read some rather off-topic discussions like Look what I
  drew on my phone once in a while (which I wouldn't like ending up in my
  e-mail inbox btw.).
  There were also other aspects that got mentioned throughout this
  discussion that I found important.
  Unfortunately, I am pretty much on the run at the moment so I cannot
  repeat everything in detail.
  
  Generally, I got quite accustomed to using a forum.
  But then this is all about personal habits that one got used to.
  
  Right now, I am primarily using the Sailfish OS etc. sections at
  talk.maemo.org as semi-official Sailfish OS/Jolla forum replacement.
  So, in a sense, there is already something like a forum.
  Maybe this is a viable approach that can be used in the meantime?
  
  
  
  BR
  
  Ruediger
  
   Stefano
   ___
   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
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Farewell to Jolla community!

2014-05-24 Thread Kimmo Lindholm
OK, NOW YOU GET THIS PERSONAL BY MENTIONING FINNS. GET A SNICKERS FILIP REALLY !

AS A FINN, I WILL SAY THAT TODAY I HAVE MORE HOPE AND TRUST ON JOLLA THAN EVER.
WE ARE ALWAYS REALLY PROUD OF WHAT WE DO, EVEN WHEN DOING SHIT - LITERALLY.

AS A COMMUNITY MEMBER, I WILL SAY ONLY THIS - THANK YOU FOR YOUR DECISION, 
MAYBE THIS WILL NOW GET EVEN BETTER.

I DON'T KNOW YOU PERSONALLY, AND AFTER THIS I DON'T MIND KNOWING YOU IN THE 
FUTURE.
I HAD SOME GOOD HOPES IN THE BEGINNING SEEING FK_LX SHOWING JOLLA SOME PRESSURE 
TO OPENSOURCE THEIR CODE. BUT REALLY SOON I GOT IMPRESSION THAT YOU ARE JUST 
ATTACKING TO EVERYONE WHO IS NOT IMMEDIATELY SHOWING THEIR CREATIONS SOURCE TO 
PUBLIC. IT CAN BE SEEN IN THOSE TWEETS YOU LINKED.

HAVE A NICE WEEKEND   https://www.youtube.com/watch?v=y6Sxv-sUYtM 

REGARDS, KIMMO 

*END*


To community members:
I don't know what will be soon left from Sailfish and Jolla (Mer and 
Nemo will probably prevail, including Glacier UI as they are open 
source, I hope qwazix and locusf, which are a great guys will still work 
on that despite everything!), but I guess there are some other 
interesting projects like Neo900, Ubuntu Touch or Tizen.

To Finns:
I know it's disappointing as Jolla is a Finnish company and you probably 
had highest hopes from all of us. Unfortunately that's how life goes, 
let's move forward, you still have Nokia and there are many other 
interesting and promising startups in Finland.

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


[SailfishDevel] DatePickerDialog and locale

2014-05-24 Thread Kimmo Lindholm
(No actual question here but my observations)

Just noticed that depending how i start my application on the phone, 
DatePickerDialog returns different values.

If started from ssh session, dateText returns 24 May 2014
If started from launcher icon (as normally user would do) or from fingerterm, 
dateText returns 24.5.2014 (later caused my app to fail)

Also the complete datepicker is in English when started from ssh.

Setting LANG=fi_FI.utf8 env from putty gets app started in 'my' language.

Maybe i'll use this to test application in different languages.

-kimmo


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

Re: [SailfishDevel] was Acceptable Behaviour.. -- Forum

2014-05-24 Thread Kimmo Lindholm
I give my vote for Gone Fishing QA site

hmm http://stackoverflow.com/questions/tagged/sailfish-os




Now since a forum is suggested, I cannot resist to propose my favourite way of 
finding and sharing developer experience: a QA site (think Stack Overflow). 
Even if there is together.jolla.com, I haven't yet seen many concrete Sailfish 
development topics discussed there. Compared to forums and mailing lists, QA 
sites have the built-in advantage of distilling the best answers to be easily 
found instead of being buried in endless threads.


OK, one down-side to mailing lists: there are no Like, Thanks, +1 or the 
likes of it buttons - I would really have used that now :D

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


[SailfishDevel] Technical question: populating ListModel from C++

2014-05-23 Thread Kimmo Lindholm
Hi All,

What would be the best method to populate ListModel in QML from the C++ side?

I have sqlite database, which contents I would like to put on ListView.

List is changed only by user when deleting or adding entry, upon this action I 
would like to update sqlite and then refresh listmodel.

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

Re: [SailfishDevel] Technical question: populating ListModel from C++

2014-05-23 Thread Kimmo Lindholm
Hi,,

Thank you Janne and Jarko, I will take a look on both of these approaches;

 use the QSqlQueryModel in your c++ and expose that to QML ; just like in : 
 http://qt-project.org/wiki/How_to_use_a_QSqlQueryModel_in_QML


 subclassing QAbstractItemModel. See 
 http://qt-project.org/doc/qt-5/qtquick-modelviewsdata-cppmodels.html and 
 http://qt-project.org/doc/qt-5/qabstractitemmodel.html to get started.


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

Re: [SailfishDevel] Screenshots in silica reference

2014-05-23 Thread Kimmo Lindholm
 I'll use this as an opportunity to mention that the Components Gallery 
 application which comes pre-installed ...
Yep, That gallery-demo I run on the phone to find out how things work and look, 
and then by trial-and-error finally reach the spectacular UX of my own app.
But written documentation (which Silica Reference does fulfill ok'ish) around 
clear code sample (not always true for Silica Reference) and screenshot would 
be - astonishing.

 ah, sorry, understood the topic in wrong way :)  
I did wrote topic while my 1st cup of coffee was still warm.

 And it could be nice to discuss Silica API docs for next SFOS meeting, what 
 do you think ? Will add it in the agenda. 
Yes please

-kimmo


-Original Message-
From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Juha Kallioinen
Sent: 23. toukokuuta 2014 13:18
To: devel@lists.sailfishos.org
Subject: Re: [SailfishDevel] Screenshots in silica reference

On 23.05.2014 08:21, Kimmo Lindholm wrote:
 Hi,

 I so would like to see screenshots in silica reference.

 Like there is on common pitfails -page.

 -kimmo

I'll use this as an opportunity to mention that the Components Gallery 
application which comes pre-installed in the SDK emulator has 
interactive examples of the Silica components.

The Components Gallery can also be built as a project in Qt Creator and 
it can be found from the Qt Creator Welcome page/Examples tab/Sailfish 
Silica Component. If you're not using Qt Creator, then the project 
sources can be found from SDK installdir/examples/componentgallery.

This is not discrediting the idea of having screenshots in the Silica 
reference page.

Best regards,
  Juha

___
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] Technical question: populating ListModel from C++

2014-05-23 Thread Kimmo Lindholm
Thanks for help, I did it about like this for starters and it seems to work.

On my C++ function:


Q_INVOKABLE QVariantMap readEntries(QString table)



...
QSqlQuery q = QSqlQuery(SELECT * FROM params ORDER BY parameter ASC, *db);

QVariantMap tmp;

if (q.exec())
while (q.next())
tmp.insert(q.record().value(parameter).toString(),
   q.record().value(value).toString());
return tmp;

On my QML:


Component.onCompleted:

{

var tmp = logger.readEntries(parameters)



for (var par in tmp)

{

parameterListModel.append({parameter: par, value: tmp[par]})

}

}

-kimmo

From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Jarko Vihriala
Sent: Friday, May 23, 2014 11:24 AM
To: Sailfish OS Developers
Subject: Re: [SailfishDevel] Technical question: populating ListModel from C++

Actually, that's the best solution so far. Just make sure you follow the 
structure of the in qml/js of data inside QVariantList. Playing around QVariant 
and *List is a bit tricky but once you get the hang of it, it's awesome 
datatype.

thanks,Jarko

From: 
devel-boun...@lists.sailfishos.orgmailto:devel-boun...@lists.sailfishos.org 
[devel-boun...@lists.sailfishos.org] on behalf of Mikko Leppänen 
[mleppa...@gmail.com]
Sent: Friday, May 23, 2014 11:20 AM
To: Sailfish OS Developers
Subject: Re: [SailfishDevel] Technical question: populating ListModel from C++
Hi,
Or if you don't want to subclass e.g. qabstractitemmodel, you can always return 
a QVariantList(or QList) from c++ and expose that sequence to QML. Then use 
that JS array to populate ListModel.
/Mikko

2014-05-23 10:53 GMT+03:00 Markus Svensson 
markus.svens...@me.commailto:markus.svens...@me.com:
Hi,

I have done the same thing in my Sailfish learning project. It was way more 
complicated than I would have liked it to be (or maybe I did it in the wrong 
way...).

Feel free to have a look at how I implemented it: 
https://github.com/Ortofta/SilicaNote

The code quality is probably not the best - these are my first baby steps in QT 
and Sailfish. ;)

Regards,
Markus

23 maj 2014 kl. 08:52 skrev Kimmo Lindholm 
kimmo.lindh...@eke.fimailto:kimmo.lindh...@eke.fi:
Hi,,

Thank you Janne and Jarko, I will take a look on both of these approaches;

 use the QSqlQueryModel in your c++ and expose that to QML ; just like in : 
 http://qt-project.org/wiki/How_to_use_a_QSqlQueryModel_in_QML


 subclassing QAbstractItemModel. See 
 http://qt-project.org/doc/qt-5/qtquick-modelviewsdata-cppmodels.html and 
 http://qt-project.org/doc/qt-5/qabstractitemmodel.html to get started.


-kimmo
___

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

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

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

[SailfishDevel] Screenshots in silica reference

2014-05-22 Thread Kimmo Lindholm

Hi,

I so would like to see screenshots in silica reference.

Like there is on common pitfails -page.

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

Re: [SailfishDevel] Undocumented Silica components

2014-05-21 Thread Kimmo Lindholm
Yep, it seems to work according to samples in componentgallery project.


-Original Message-

I am using GlassItem in Framrekkari and that is in official Jolla store. So it 
seems to be allowed. :)

Best greetings
Buschmann


Am Sonntag, 18. Mai 2014, 07:33:13 schrieb Kimmo Lindholm:
 Is the GlassItem still no-no ?
 
 On Monday 06 January 2014 01:16 Martin Jones wrote:
 
  Hi,
  
  As a general rule, if it’s not documented then it isn’t public API.
  
  The GlassItem API hasn’t been reviewed for public use. It will 
  probably change and is not safe for use.
 
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

[SailfishDevel] uinput with maliit at sailfishapps

2014-02-24 Thread Kimmo Lindholm
Or something like that
(Running this on Jolla (1.0.3.8) and it is related to the qwerty toh keyboard)

I use uinput to send key events (EV_KEY) - these works ok,
but when I send e.g. KEY_LEFTSHIFT or KEY_CAPSLOCK, a ? character appears as 
prefix to the actual character.

e.g. sending KEY_A -- a
sending KEY_LEFTSHIFT and then KEY_A -- ?A

That is on sailfish apps, but when I do same thing in fingerterminal, the ? 
char does not appear and all works fine.
On android apps nothing works.

If someone feels that this is a bug (as I do) please could someone point me to 
correct direction reporting it out.

Regards,
Kimmo

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] uinput with maliit at sailfishapps

2014-02-24 Thread Kimmo Lindholm
I know... we are in progress with that too... they were really busy getting the 
1.0 out... so our request didn't get so high priority. So we needed to hack 
something together for MWC, all works for the demo, except this shift ?

vkb  view is controllable from hwkb side, to show some specials or locals like 
ÅÄÖ and predictive + clipboard. (TBD)

-kimmo

From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Andrey Kozhevnikov


I can suggest you to ask Jolla to implement system hwkb input method to disable 
vkb to appear, and fix android input. Thats 9000% better than hacking :)
On 25.02.2014 03:43, Kimmo Lindholm wrote:
Or something like that
(Running this on Jolla (1.0.3.8) and it is related to the qwerty toh keyboard)

I use uinput to send key events (EV_KEY) - these works ok,
but when I send e.g. KEY_LEFTSHIFT or KEY_CAPSLOCK, a ? character appears as 
prefix to the actual character.

e.g. sending KEY_A -- a
sending KEY_LEFTSHIFT and then KEY_A -- ?A

That is on sailfish apps, but when I do same thing in fingerterminal, the ? 
char does not appear and all works fine.
On android apps nothing works.

If someone feels that this is a bug (as I do) please could someone point me to 
correct direction reporting it out.

Regards,
Kimmo





___

SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

[SailfishDevel] dbus-sessionbus connection fails

2014-02-01 Thread Kimmo Lindholm
Hi,

I'm using QtDBus in my daemon (systemd service), and I can register my own 
service on systemBus, and also can connect to systembus signals.
When starting executable from command line it runs ok and connects also to the 
sessionbus signals successfully.
but when it is started via systemctl start I can't connect to sessionbus 
signals.

It throws following error:  Using X11 for dbus-daemon autolaunch was disabled 
at compile time, set your DBUS_SESSION_BUS_ADDRESS instead

this is printed from code below:

 if (!QDBusConnection::sessionBus().isConnected())
 {
writeToLog(qPrintable(QDBusConnection::sessionBus().lastError().message()));
exit(EXIT_FAILURE);
 }

I figured out that DBUS_SESSION_BUS_ADDRESS  is an environment variable which 
obviously is not visible in this context.

is there a way to pass this to the systemd service??

regards,
Kimmo

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] How to automatically start a daemon with systemd

2014-01-24 Thread Kimmo Lindholm
I have put my .service file under systemd/system –folder and used systemctl 
enable (not -user) and it starts successfully at boot.
I start it without invoker (ExecStart directly calls the executable)

(But I need root access for the daemon)



From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Luca Donaggio
Sent: 24. tammikuuta 2014 11:42
To: Sailfish OS Developers
Subject: [SailfishDevel] How to automatically start a daemon with systemd

Hi all,
I'v written a small personal (not looking for harbour approval here) C++ app 
which periodically connects to a web service and displays some information into 
a notification via DBus.
This is the .service file which I've deployed in /etc/systemd/user:

[Unit]
Description=My own daemon
Requires=dbus.service

[Service]
Type=simple
ExecStart=/usr/bin/invoker --type=generic /usr/bin/myowndaemon

[Install]
WantedBy=multi-user.target

after the usual:
systemctl-user daemon-reload
systemctl-user start myowndaemon.service
it correctly starts.
Now if I issue a:
systemctl-user enable myowndaemon.service
and I reboot my Jolla, it doesn't automatically start.
This is my first attempt with systemd, I tried googling around but I didn't 
find anything helpful.
Wht am I missing?
Thanks a lot,

--
Luca Donaggio
___
SailfishOS.org Devel mailing list

[SailfishDevel] Help/guidance request - camera viewfinder with qml overlay

2014-01-23 Thread Kimmo Lindholm
...For TOH Thermal viewer application.


Going to use a panasonic Grid-eye 8x8 infrared sensor (1), attach it to 'TOH' 
and get the thermal data to the application.

Now i need just example how to get camera viewfinder on the screen and on top 
of which i can draw overlay with QML.

Result could be something like fluke VT02 
(http://www.fluke.com/fluke/caen/thermometers/infrared-thermometers/vt02-visual-ir-thermometer.htm?PID=75051)

(1). See this page 
http://eewiki.net/display/projects/Panasonic%20GridEYE%20Breakout%20Board%20and%20GUI


-kimmo



___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] mersdk and kernel-devel

2014-01-11 Thread Kimmo Lindholm
Ok, I need to build the complete kernel to get Module.symvers ...

but I get error with make modules HELP

make -f /usr/src/kernels/3.4.0.20131212.3/scripts/Makefile.build obj=fs/lockd
  /usr/src/kernels/3.4.0.20131212.3/scripts/gcc-wrapper.py gcc 
-Wp,-MD,fs/lockd/.clntlock.o.d  -nostdinc -isystem 
/usr/lib/gcc/armv7hl-meego-linux-gnueabi/4.6.4/include 
-I/usr/src/kernels/3.4.0.20131212.3/arch/arm/include 
-Iarch/arm/include/generated -Iinclude  
-I/usr/src/kernels/3.4.0.20131212.3/include -include 
/usr/src/kernels/3.4.0.20131212.3/include/linux/kconfig.h   
-I/usr/src/kernels/3.4.0.20131212.3/fs/lockd -Ifs/lockd -D__KERNEL__ 
-mlittle-endian   -I/usr/src/kernels/3.4.0.20131212.3/arch/arm/mach-msm/include 
-Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing 
-fno-common -Werror-implicit-function-declaration -Wno-format-security 
-fno-delete-null-pointer-checks -Os -marm -fno-dwarf2-cfi-asm -fstack-protector 
-mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -D__LINUX_ARM_ARCH__=7 
-march=armv7-a -msoft-float -Uarm -Wframe-larger-than=1024 
-Wno-unused-but-set-variable -fomit-frame-pointer -g 
-femit-struct-debug-baseonly -Wdeclaration-after-statement -Wno-pointer-sign 
-fno-strict-overflow -fconserve-stack  -DMODULE  -DKBUILD_STR(s)=#s 
-DKBUILD_BASENAME=KBUILD_STR(clntlock)  -DKBUILD_MODNAME=KBUILD_STR(lockd) 
-c -o fs/lockd/.tmp_clntlock.o 
/usr/src/kernels/3.4.0.20131212.3/fs/lockd/clntlock.c
scripts/genksyms/genksyms: option requires an argument -- 'r'
Usage:
genksyms [-adDTwqhV]  /path/to/.tmp_obj.ver

  -a, --archSelect architecture
  -d, --debug   Increment the debug level (repeatable)
  -D, --dumpDump expanded symbol defs (for debugging only)
  -r, --reference file  Read reference symbols from a file
  -T, --dump-types file Dump expanded types into file
  -p, --preservePreserve reference modversions or fail
  -w, --warningsEnable warnings
  -q, --quiet   Disable warnings (default)
  -h, --helpPrint this message
  -V, --version Print the release version
close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr
make[3]: *** [fs/lockd/clntlock.o] Error 1
make[2]: *** [fs/lockd] Error 2
make[1]: *** [fs] Error 2
make: *** [sub-make] Error 2

From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Kimmo Lindholm
Sent: Friday, January 10, 2014 11:47 PM
To: Sailfish OS Developers
Subject: Re: [SailfishDevel] mersdk and kernel-devel

It took couple of hours to figure everything out but finally it looks 
promising...

[SB2 sdk-build SailfishOS-armv7hl] I have no name!@SailfishSDK 62 $ modinfo 
hello.ko
filename:   /home/mersdk/testit/62/hello.ko
depends:
vermagic:   3.4.0-perf-g8401fcf SMP preempt mod_unload modversions ARMv7

-kimmo

From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Jonni Rainisto
Sent: Friday, January 10, 2014 5:34 PM
To: Sailfish OS Developers
Subject: Re: [SailfishDevel] mersdk and kernel-devel

I think that someone did source code request and posted the kernel online:
http://talk.maemo.org/showpost.php?p=1395881postcount=8

And if you don't trust random internet urls there is source code request 
information in devices about screen.

re, Jonni

From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] 
on behalf of Kimmo Lindholm [kimmo.lindh...@eke.fi]
Sent: Friday, January 10, 2014 4:58 PM
To: devel@lists.sailfishos.org
Subject: [SailfishDevel] mersdk and kernel-devel
ahoy,

How can i install kernel-devel to mersdk for compiling modules for 
SailfishOs-armv7hl ?
Can't find module.h

-kimmo
___
SailfishOS.org Devel mailing list

[SailfishDevel] mersdk and kernel-devel

2014-01-10 Thread Kimmo Lindholm
ahoy,

How can i install kernel-devel to mersdk for compiling modules for 
SailfishOs-armv7hl ?
Can't find module.h

-kimmo
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] mersdk and kernel-devel

2014-01-10 Thread Kimmo Lindholm
It took couple of hours to figure everything out but finally it looks 
promising...

[SB2 sdk-build SailfishOS-armv7hl] I have no name!@SailfishSDK 62 $ modinfo 
hello.ko
filename:   /home/mersdk/testit/62/hello.ko
depends:
vermagic:   3.4.0-perf-g8401fcf SMP preempt mod_unload modversions ARMv7

-kimmo

From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Jonni Rainisto
Sent: Friday, January 10, 2014 5:34 PM
To: Sailfish OS Developers
Subject: Re: [SailfishDevel] mersdk and kernel-devel

I think that someone did source code request and posted the kernel online:
http://talk.maemo.org/showpost.php?p=1395881postcount=8

And if you don't trust random internet urls there is source code request 
information in devices about screen.

re, Jonni

From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] 
on behalf of Kimmo Lindholm [kimmo.lindh...@eke.fi]
Sent: Friday, January 10, 2014 4:58 PM
To: devel@lists.sailfishos.org
Subject: [SailfishDevel] mersdk and kernel-devel
ahoy,

How can i install kernel-devel to mersdk for compiling modules for 
SailfishOs-armv7hl ?
Can't find module.h

-kimmo
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] D-Bus viewer touch

2014-01-09 Thread Kimmo Lindholm
Hi,
Thanks! Just been looking for something like this.

.kimmo


Lähettäjä: devel-boun...@lists.sailfishos.org 
[devel-boun...@lists.sailfishos.org] k#228;ytt#228;j#228;n Alejandro Exojo 
[s...@badopi.org] puolesta
Lähetetty: 9. tammikuuta 2014 22:12
Vastaanottaja: devel@lists.sailfishos.org
Aihe: [SailfishDevel] D-Bus viewer touch

Hi.

During this holidays I did an attempt at a port to Silica and SailfishOS the
qdbusviewer. Is a really nice tool for learning how your system works,
specially on a platform like this.

By this time I would have expected to have something a bit more meaningful to
announce, but the holidays are over and I will have less time the next
weeks...

I wanted the code to be open since the beginning, but you know the usual
problem with open projects: it doesn't cause a splash when you got to some
cool point because everybody knew it since a long time ago.

Anyway, here is the source:

https://bitbucket.org/suy/qdbusviewer-touch

I'm not publishing binaries at this point, since I've found at least one bug,
and I'm not fully sure I got the dynamic object creation (for the model of the
pages) right, so it might be a leak.

I'll try to make it at least as featureful as the qdbusviewer on the desktop,
but meanwhile you have read only capabilities to satisfy some curiosity.
Please don't look much at the inside. The design needs a lot of cleanup once I
learn how to do it properly. :)

Screenshots:

http://darkshines.net/pub/dbusviewer-touch1.png
http://darkshines.net/pub/dbusviewer-touch2.png

Oh, and the original qdbusviewer on the phone:

http://darkshines.net/pub/20140106173406.png

Not very finger friendly. ;-)

--
Alex (a.k.a. suy) | GPG ID 0x0B8B0BC2
http://barnacity.net/ | http://disperso.net
___
SailfishOS.org Devel mailing list
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Accessing Saifish theme from javascript

2014-01-04 Thread Kimmo Lindholm
Gives following from .import line:
[W] unknown:23 - qrc:///js/constants.js:23: SyntaxError: Unexpected token .

If I add 1.0, I get warning
[W] unknown:23 - qrc:///js/constants.js:23:1: Module import requires a qualifier


(Docs say .import TypeNamespace MajorVersion.MinorVersion as Qualifier)



So back where started...

.import Sailfish.Silica.theme

var color_info = Theme.primaryColor
On 04.01.2014 17:14, Kimmo Lindholm wrote:
Tested, didn't work - same results

.import Sailfish.Silica.Theme 1.0 as SilicaTheme
var color_info = SilicaTheme.primaryColor;



import Sailfish.Silica.theme 1.0
On 04.01.2014 16:49, Kimmo Lindholm wrote:
I assume this is clear as daylight but I don't get it...

I need to access Theme colors from javascript -file;

I have successfully imported it

.import Sailfish.Silica 1.0 as Silica

and in QtCreator after typing Silica. I can see dropdown of all sort of stuff, 
but no 'Theme'.
And tinkering didn't work:

var color_info = Silica.Theme.primaryColor;

It gives runtime warning from QML side where color_info is used:
[W] unknown:104 - qrc:///qml/MainPage.qml:104: Unable to assign [undefined] to 
QColor

And those which are colored from js side with color_info do appear black...


-kimmo








___

SailfishOS.org Devel mailing list





___

SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Accessing Saifish theme from javascript

2014-01-04 Thread Kimmo Lindholm
Ahaa... I know now where the problem is. need to read last sentence from the 
documentation.

I'm doing this in stateless lib... (.pragma library) I should have mentioned 
that already in first mail..

As they are shared, stateless library files cannot access QML component 
instance objects or properties directly,

I'll crawl back to the hole now. Thanks for your efforts.

.import Sailfish.Silica.theme 1.0 as SilicaTheme

function test() {
console.log(color:  + SilicaTheme.Theme.primaryColor)
}

// color: #ff
On 04.01.2014 17:47, Kimmo Lindholm wrote:
Gives following from .import line:
[W] unknown:23 - qrc:///js/constants.js:23: SyntaxError: Unexpected token .

If I add 1.0, I get warning
[W] unknown:23 - qrc:///js/constants.js:23:1: Module import requires a qualifier


(Docs say .import TypeNamespace MajorVersion.MinorVersion as Qualifier)



So back where started...

.import Sailfish.Silica.theme

var color_info = Theme.primaryColor
On 04.01.2014 17:14, Kimmo Lindholm wrote:
Tested, didn't work - same results

.import Sailfish.Silica.Theme 1.0 as SilicaTheme
var color_info = SilicaTheme.primaryColor;



import Sailfish.Silica.theme 1.0
On 04.01.2014 16:49, Kimmo Lindholm wrote:
I assume this is clear as daylight but I don't get it...

I need to access Theme colors from javascript -file;

I have successfully imported it

.import Sailfish.Silica 1.0 as Silica

and in QtCreator after typing Silica. I can see dropdown of all sort of stuff, 
but no 'Theme'.
And tinkering didn't work:

var color_info = Silica.Theme.primaryColor;

It gives runtime warning from QML side where color_info is used:
[W] unknown:104 - qrc:///qml/MainPage.qml:104: Unable to assign [undefined] to 
QColor

And those which are colored from js side with color_info do appear black...


-kimmo









___

SailfishOS.org Devel mailing list






___

SailfishOS.org Devel mailing list





___

SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

[SailfishDevel] SmoothedAnimation and Segmentation Fault

2014-01-03 Thread Kimmo Lindholm
Hi,

I'm having issues with SmoothedAnimation giving Segmentation Fault sometimes.

Googling shows that I'm not alone, but could not find any recorded workarounds
I changed it to NumberAnimation and no segv anymore...

Should this be reported somewhere? or waht?

-kimmo

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] No consistency across screens

2013-12-30 Thread Kimmo Lindholm
I have used Jolla now for over a month, and I have to say that for first days I 
missed the battery level etc things, but not anymore. I like where they are, I 
know how I can peek them.

I haven't drained the battery so low that I could see does the indicator led 
start to blink when low battery has been announced (afaik that happens 
somewhere about 10%)

Maybe someone makes app with icon(s) showing these information, so they can be 
always visible on home screen ??


-kimmo

-Original Message-
From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Graham Cobb
Sent: Monday, December 30, 2013 8:07 PM
To: devel@lists.sailfishos.org
Subject: Re: [SailfishDevel] No consistency across screens

On 30/12/13 17:20, Mikael Hermansson wrote:
 On Monday 30 December 2013 15.35.39 Graham Cobb wrote:
 I need that information all the time -- a **lot** more often than I 
 actually interact with the phone.
 In every app you can just shortly swipe left less than half of screen

It doesn't work when on the home screen.  So, you have to look at the screen, 
work out which page it is on and then take some special action dependent on 
that page.

 http://www.youtube.com/watch?v=p9YGtW274GI and you will see the clock, 
 3g level and wifi level and then just release and you back in current 
 application. So I dont see any reason this must be visible all the 
 time when its so easy check it that way.

My phone sits on my desk, near my normal line of sight, and I glance at it 
frequently. I don't move my hands off the keyboard to touch it -- I am not even 
consciously doing the task of checking my phone.

I also often glance at it while on a non-handsfree call which has become a 
longer call than I expected -- while talking and listening I can quickly move 
the phone into view, check it isn't about to run down on me and return it to my 
ear without the other person noticing.

There are three key pieces of information which must be available at a
glance: is there signal?, how is the battery?, have there been any missed calls?

Note: I spend a lot of time on conference calls of an hour or so, usually using 
a desk phone -- I often do not remember whether I missed any calls on my mobile 
while I was on a conference call.  Nor do I always remember to check when the 
call finishes (often rushing to get a glass of water or go to the toilet before 
the next call starts).  So, having all three things visible whenever my eyes 
stray from my screen to my phone is very important.

 Seriously, just because everyone copycats each other in that area it 
 doesn't mean it can be done different.

Indeed. But just because a UI feature looks nice doesn't mean it is necessarily 
practical.

I am not a UX person, but I strongly suspect the Jolla team need to do more 
user testing, with more varied types of users, in this area.
___
SailfishOS.org Devel mailing list
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] No consistency across screens

2013-12-30 Thread Kimmo Lindholm
You are most welcome... But sometimes you need to put your p***s in to the 
ant-nest and try something new.
That's what Jolla is all about. Creating something new - together. And I know 
that new doesn't come without pain, but when you got it there is joy.

But I might (?) agree that the lock screen could be sifted ~100 pixels up to 
show always the battery etc info.
https://www.dropbox.com/s/9xchp9of62t3u7u/20131230221828.png

-kimmo

-Original Message-
From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Chris Walker
Sent: Monday, December 30, 2013 10:22 PM
To: devel@lists.sailfishos.org
Subject: Re: [SailfishDevel] No consistency across screens

On Mon, 30 Dec 2013 18:13:23 +
Kimmo Lindholm kimmo.lindh...@eke.fi wrote:

 I have used Jolla now for over a month, and I have to say that for 
 first days I missed the battery level etc things, but not anymore. I 
 like where they are, I know how I can peek them.
 
 I haven't drained the battery so low that I could see does the 
 indicator led start to blink when low battery has been announced 
 (afaik that happens somewhere about 10%)
 
 Maybe someone makes app with icon(s) showing these information, so 
 they can be always visible on home screen ??

Sledgehammer and nut. Why create an app to overcome what I consider to be a 
shortcoming in the phone design? There is a reason other manufacturers have 
this information on the home screen. Why can't I drag the icons to the point on 
the home screen that I consider they should be like I can with my Blackberry 
Playbook?

I'm pleased that this has been a reasoned discussion and also to know that I'm 
not alone in my views and requirements. It almost seems that I'm involved as 
part of the design team, albeit unpaid ;-) 
___
SailfishOS.org Devel mailing list
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Jolla owner - day 1

2013-12-28 Thread Kimmo Lindholm
I tried to check what was wrong with the contacts, but could not figure it out.
As workaround, i did import most important contacts as vcf.

Just few minutes ago, there were again contacts missing from the people app. 

I was fustrated, and started to write this email. Then wanted to check again 
was one of the vcf imported contacts missing... and now search did found 
them... and i did locate them from the aplhabetic list. wtf.

Also if i look to the list, there is 7 entries starting with Jari  but when i 
search, i can see only 3 of them and one another Jari.

So, i claim that the people app showing names is doing something wrong.

And then, i have one contact in google and in exchange with the same name. 
Exchange has phone number, but i can't see it in the phone - i can see only 
google email.

-kimmo



Lähettäjä: Kimmo Lindholm
Lähetetty: 23. joulukuuta 2013 00:02
Vastaanottaja: Sailfish OS Developers
Aihe: RE: [SailfishDevel] Jolla owner - day 1

I don't work at care :), it takes some time to reach me in case it's needed, 
my colleagues are very busy working there :)
Good that they are busy  :)

do you have first and last name for those in the server side ? can be that 
they are under some category you don't expect in people app ?

I expect to have them all in people app.
...now when the list is shorter I can see common thing in Outlook contacts 
side. strange thing.

I did group contact list by Company, I can see two sections with heading 
Company: (None) [Just guessing what it could be in English, it says Yritys: 
(ei mitään)]
Contacts in the first section are in people app, but contacts in second are 
not. Seems that all contacts in with some company name appears in the list. I 
test now to add company name to one of them and didn't help (or not yet sync'd).

All my mailing lists are also in this second section.
If I create new contact, it goes to this second section and does not appear 
into people app.

(our exchange version 12.1 - this they did ask from care)

-kimmo
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] How to handle app settings?

2013-12-28 Thread Kimmo Lindholm
I did it like this with QSettings, it works. I don't know is it the correct 
way... (comments anyone?)

introduce me in main()
QCoreApplication::setOrganizationDomain(diibadaaba);
QCoreApplication::setOrganizationName(diibadaaba );
QCoreApplication::setApplicationName(badbreath);
QCoreApplication::setApplicationVersion(0.1-1);

read
QSettings settings;
m_mySetting = settings.value(mySetting, ).toString();

write
QSettings settings;
settings.setValue(mySetting, m_mySetting);

-kimmo


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] [Update] Changelog for SailfishOS update 2 (1.0.2.5)

2013-12-27 Thread Kimmo Lindholm
And store is completely stuck
I can see 8 updates to jolla-* apps, but it gives error if trying to install.

For some reason i first see app updates in store, but not yet the system update.

Is this intention or a bug in update distribution system?
Aren't the app's updated anyway when the system is updated?

-kimmo

we're releasing update2 today. The changelog can be found (and commented
on) here:

https://together.jolla.com/question/3612/release-notes-software-update-2-1025/
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] The Other Half I2C

2013-12-27 Thread Kimmo Lindholm
Should this work?

in path /sys/devices/platform/reg-userspace-consumer.0
[nemo@localhost reg-userspace-consumer.0]$ echo 1  state
-bash: state: Lupa evätty

or need root access?

Lähettäjä: devel-boun...@lists.sailfishos.org 
[devel-boun...@lists.sailfishos.org] käyttäjän Kimmo Lindholm 
[kimmo.lindh...@eke.fi] puolesta
Lähetetty: 23. joulukuuta 2013 18:20
Vastaanottaja: Sailfish OS Developers
Aihe: Re: [SailfishDevel] The Other Half I2C

Then I have to just sit and wait.
Or is there any magic that I can store to the eeprom to keep it active?

-kimmo

From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Jonni Rainisto
Sent: Monday, December 23, 2013 6:06 PM
To: Sailfish OS Developers
Subject: Re: [SailfishDevel] The Other Half I2C


NOTE: This API is not supported in initial Jolla device software. It will be 
available from 1.0.2.* and later Sailfish OS releases.
# Enable VDD
echo 1  /sys/devices/platform/reguserspaceconsumer.0/state
# Disable VDD
echo 0  /sys/devices/platform/reguserspaceconsumer.0/state

So unfortunately you have to wait for next update before you can unable 3.3V 
pin from user space. But that should happen 'soon'...

From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] 
on behalf of Kimmo Lindholm [kimmo.lindh...@eke.fi]
Sent: Monday, December 23, 2013 4:49 PM
To: devel@lists.sailfishos.org
Subject: [SailfishDevel] The Other Half I2C
Anchors aweigh!

Just hooked up scope to I2C bus on pogo pins, and there is life!

Can someone point me in correct direction to enable 3.3V pin?

3.3V seems to be active just for a while when I press the cover detector switch 
and after eeprom in address 0x50 is tested 3.3V is gone.

___
SailfishOS.org Devel mailing list

  1   2   >