Re: [SailfishDevel] How can I check if there's internet connection already on? To avoid extra connection request dialogs

2015-01-24 Thread Piotr Tworek
Hi Artem, Not sure if this is the best way, but you can connect to QNetworkConfigurationManager::onlineStateChanged signal. This is what I did in YTPlayer and it works well enough. You can see it in https://github.com/tworaz/sailfish-ytplayer/blob/master/src/YTNetworkManager.cpp. Based on that you

Re: [SailfishDevel] Setting application screen orientation from C++

2014-07-30 Thread Piotr Tworek
ptw > Hey, > > 2014-07-17 23:05 GMT+02:00 Piotr Tworek : >> Is there a way to lock application screen orientation to landscape >> directly from Qt/C++ code? I know it's possible from QML, but I can't >> find any docs how the same can be done from C++. >

[SailfishDevel] Setting application screen orientation from C++

2014-07-17 Thread Piotr Tworek
Hi, Is there a way to lock application screen orientation to landscape directly from Qt/C++ code? I know it's possible from QML, but I can't find any docs how the same can be done from C++. /ptw ___ SailfishOS.org Devel mailing list To unsubscribe, plea

Re: [SailfishDevel] XMLHttpRequest

2014-07-07 Thread Piotr Tworek
Hi, It's probably not a good idea to ignore https verification errors in your app. Still, if you insist on doing it you could probably subclass QQmlNetworkAccessManagerFactory and override it's create method. This should allow you to create a custom QNetworkAccessManager to be used by QML engine.

Re: [SailfishDevel] Notifications API

2014-07-07 Thread Piotr Tworek
bour qml import restrictions. /ptw > Thanks for the clarification. :-) > > Can you give me a hint, how this could be done? > > > Am 05.07.2014 23:06, schrieb Piotr Tworek: >> It's not forbidden however to ship your own copy of >> nemo-qml-plugin-notifications as pa

Re: [SailfishDevel] Notifications API

2014-07-05 Thread Piotr Tworek
It's not forbidden however to ship your own copy of nemo-qml-plugin-notifications as part of your app :) > Be aware, that nemomobile notifications API ist not allowed in harbour > at the moment. > > Am 29.06.2014 17:54, schrieb Jonni Rainisto: >> https://github.com/nemomobile/mlite/blob/master/src