Re: [SailfishDevel] Detecting if running in emulator/debug mode in QML

2014-01-18 Thread christopher . lamb

Hi Antoine

Your point is valid, in the old days of the N9 Simulator I was able to  
write code to detect the simulator vs real device.


But should it be necessary?

Why should we need to detect a difference between an Emulator /  
Simulator, and a real device?


Probably because of weaknesses in the Emulator / Simulator.

In my humble opinion, it would be much better if the Emulator was so  
good that from an app developer's point of view there is no difference  
when running on an Emulator vs a real device.


I know that by it's very nature an Emulator cannot do everything a  
real device can (GPS, Sensors, Camera, LED etc. spring to mind), but  
the N9 Simulator was a good example of what is possible in this area.  
Indeed the only reason that I was forced to write code to detect the  
N9 Simulator was due to differences in font sizing.


Therefore I think Jolla's effort is best spent on providing an  
emulator that closely matches a real device, and in providing  
appropriate plugins / tools to plug the few remaining gaps (e.g a GPS  
simulating plugin).


Chris

Zitat von "Artem Marchenko" :


You can propagate C++ knowledge to QML, Antoine

For example setContextProperty #ifdef QT_QML_DEBUG

Best regards,
Artem.



On Sun, Jan 12, 2014 at 1:41 PM, Antoine Reversat  
wrote:



Hi,

I was wondering if there is a way to know if we're in debug mode or
running in the emulator in QML (something like the #ifdef QT_QML_DEBUG in
c++). I'd like to be able to act differently whether the app is running on
a real device or not.

Antoine

___
SailfishOS.org Devel mailing list





--
Artem Marchenko
http://agilesoftwaredevelopment.com
http://twitter.com/AgileArtem





___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Detecting if running in emulator/debug mode in QML

2014-01-18 Thread Artem Marchenko
You can propagate C++ knowledge to QML, Antoine

For example setContextProperty #ifdef QT_QML_DEBUG

Best regards,
Artem.



On Sun, Jan 12, 2014 at 1:41 PM, Antoine Reversat wrote:

> Hi,
>
> I was wondering if there is a way to know if we're in debug mode or
> running in the emulator in QML (something like the #ifdef QT_QML_DEBUG in
> c++). I'd like to be able to act differently whether the app is running on
> a real device or not.
>
> Antoine
>
> ___
> SailfishOS.org Devel mailing list
>



-- 
Artem Marchenko
http://agilesoftwaredevelopment.com
http://twitter.com/AgileArtem
___
SailfishOS.org Devel mailing list

[SailfishDevel] SearchField focus in ListView with Qt/C++ data model

2014-01-18 Thread Matthias Fehring
Hello,

I already read some posts about the SearchField losing focus after model 
update.

https://lists.sailfishos.org/pipermail/devel/2013-August/000615.html
https://www.mail-archive.com/devel@lists.sailfishos.org/msg02204.html

I adapted the example from the component gallery and also set currentIndex: 
-1, but my SearchField still loses it's focus.

Maybe because I am using a C++ data model? I get it to work with some ugly QML 
hacks, but then the UI is a bit cluttered

Any ideas?

Beste greetings
Matthias

-- 
Das Gesetz hat zum Schneckengang verdorben, was Adlerflug geworden wäre.
(Friedrich Schiller - Die Räuber)

Und der Buschfunk spielt gerade "Wenn Mila schläft" von "Pascow".

www.buschmann23.de
GPG-Key: 0x720AADE0


signature.asc
Description: This is a digitally signed message part.
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] SSL certificate manager

2014-01-18 Thread Matthias Fehring
Thanks for the hint. I voted for it.

Am Samstag, 18. Januar 2014, 15:58:42 schrieb Jonni Rainisto:
> https://together.jolla.com/question/1607/gui-to-addtrust-ssl-root-certsself-> 
> signed-certs/
> 
> 
> From: devel-boun...@lists.sailfishos.org
> [devel-boun...@lists.sailfishos.org] on behalf of Matthias Fehring
> [buschm...@huessenbergnetz.de] Sent: Saturday, January 18, 2014 4:39 PM
> To: devel@lists.sailfishos.org
> Subject: [SailfishDevel] SSL certificate manager
> 
> Hello,
> 
> is there something like a SSL certificate manager availbale on Sailfish OS?
> Something one can use in own apps to check and accept SSL certificates,
> especially self signed certs? Maybe something similar to aegis-certman on
> Harmattan?
> 
> Best greetings
> Matthias
> 
> 
> --
> Das Gesetz hat zum Schneckengang verdorben, was Adlerflug geworden wäre.
> (Friedrich Schiller - Die Räuber)
> 
> Und der Buschfunk spielt gerade "Gobanno" von "Eluveitie".
> 
> www.buschmann23.de
> GPG-Key: 0x720AADE0
> ___
> SailfishOS.org Devel mailing list

-- 
Das Gesetz hat zum Schneckengang verdorben, was Adlerflug geworden wäre.
(Friedrich Schiller - Die Räuber)

Und der Buschfunk spielt gerade "Dann war das wohl Liebe" von "MIA.".

www.buschmann23.de
GPG-Key: 0x720AADE0


signature.asc
Description: This is a digitally signed message part.
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] SSL certificate manager

2014-01-18 Thread Jonni Rainisto
https://together.jolla.com/question/1607/gui-to-addtrust-ssl-root-certsself-signed-certs/


From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] 
on behalf of Matthias Fehring [buschm...@huessenbergnetz.de]
Sent: Saturday, January 18, 2014 4:39 PM
To: devel@lists.sailfishos.org
Subject: [SailfishDevel] SSL certificate manager

Hello,

is there something like a SSL certificate manager availbale on Sailfish OS?
Something one can use in own apps to check and accept SSL certificates,
especially self signed certs? Maybe something similar to aegis-certman on
Harmattan?

Best greetings
Matthias


--
Das Gesetz hat zum Schneckengang verdorben, was Adlerflug geworden wäre.
(Friedrich Schiller - Die Räuber)

Und der Buschfunk spielt gerade "Gobanno" von "Eluveitie".

www.buschmann23.de
GPG-Key: 0x720AADE0
___
SailfishOS.org Devel mailing list


[SailfishDevel] SSL certificate manager

2014-01-18 Thread Matthias Fehring
Hello,

is there something like a SSL certificate manager availbale on Sailfish OS? 
Something one can use in own apps to check and accept SSL certificates, 
especially self signed certs? Maybe something similar to aegis-certman on 
Harmattan?

Best greetings
Matthias


-- 
Das Gesetz hat zum Schneckengang verdorben, was Adlerflug geworden wäre.
(Friedrich Schiller - Die Räuber)

Und der Buschfunk spielt gerade "Gobanno" von "Eluveitie".

www.buschmann23.de
GPG-Key: 0x720AADE0


signature.asc
Description: This is a digitally signed message part.
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Receiving notifications

2014-01-18 Thread Thomas Tanghus
On Saturday 18 January 2014 10:08 marko.kosc...@tisno.de wrote:
> That is exactly what I am looking for. I want to show errors in my
> ownKeepass app if the user gave e.g. a wrong password. Currently I have
> implemented my own banner component which should look like those from the
> system. 
 ->
> https://github.com/jobe-m/ownkeepass/blob/master/Sailfish/qml/common/InfoPo
> pup.qml 

Thanks, I'll use that for a start

> But having an API would be very convenient ;)

Indeed, but apparently it hasn't been exposed to normal apps - yet

> Marko
> 
> PS My first email sent from my jolla:)

Revealed by the empty CC and missing In-Reply-To ;)

> On Fri Jan 17 2014 22:57:28 GMT+0100 (CET), Thomas Tanghus wrote:
> 
> >Did you ever get an answer to this? I'm mostly interested in showing app 
> >notifications on errors - I guess that's what you call banner
> >notifications?
 
> >On Wednesday 18 December 2013 15:54 Gabriel Böhme wrote:
> >
> >> I think I need some clearification at all, what is, or better: is there
> >> a
> >> recommended way to show notifications in EventFeed and what about the
> >> banner messages?
> >> 
> >> 
> >> Is there an offical API yet, that I overlooked, or will there one be
> >> offered in the future? Because the question is: is this MNotification
> >> compatibility API stable/will it work/offered in the future?
> >> 
> >> 
> >> Thank you very much!
> >> 
> >> 
> >> Gabriel.
> >> 
> >> 
> >> 
> >> --
> >> 
> >> 
> >> 
> >> Von meinem Nokia N9 gesendet
> >> 
> >> 
> >> 
> >> Mike Sheldon schrieb am 18.12.13 16:30:
> >> Ah, excellent, thanks very much!
> >> 
> >> 
> >> On Wed, Dec 18, 2013 at 3:26 PM, Andrey Kozhevnikov
> >> 
> >> wrote:
> >> 
> >> > There is mlite5 library providing MNotification compability for
> >> > lipstick,
> >> > it have all features MeeGo have.
> >> > 
> >> > On 18.12.2013 21:24, Mike Sheldon wrote:
> >> > 
> >> >> Hi,
> >> >> 
> >> >> 
> >> >>   I'm currently in the process of porting Rockwatch, my Pebble smart
> >> >> 
> >> >> 
> >> >> watch application, from MeeGo to Sailfish. I've got the basics
> >> >> working
> >> >> with it communicating correctly with the watch over bluetooth,
> >> >> however
> >> >> I'm running into a bit of a problem with notifications.
> >> >> 
> >> >> 
> >> >>   From what I can tell from a bit of poking around, Sailfish's
> >> >> 
> >> >> 
> >> >> notification system is based around the org.freedesktop.Notifications
> >> >> standard. However from what I can see looking at the documentation
> >> >> for
> >> >> this it doesn't really make any provision for multiple notification
> >> >> sinks/servers like MeeGo's MNotificationManager did. Is there
> >> >> something
> >> >> I'm overlooking? Or is there some other mechanism by which an
> >> >> application can register an interest in receiving notifications?

-- 
Med venlig hilsen / Best Regards

Thomas Tanghus
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Receiving notifications

2014-01-18 Thread marko . koschak
That is exactly what I am looking for. I want to show errors in my ownKeepass 
app if the user gave e.g. a wrong password. Currently I have implemented my own 
banner component which should look like those from the system. 
-> 
https://github.com/jobe-m/ownkeepass/blob/master/Sailfish/qml/common/InfoPopup.qml

But having an API would be very convenient ;)

Marko

PS My first email sent from my jolla:)

On Fri Jan 17 2014 22:57:28 GMT+0100 (CET), Thomas Tanghus wrote:
>Did you ever get an answer to this? I'm mostly interested in showing app 
>notifications on errors - I guess that's what you call banner notifications?
>
>On Wednesday 18 December 2013 15:54 Gabriel Böhme wrote:
>> I think I need some clearification at all, what is, or better: is there a
>> recommended way to show notifications in EventFeed and what about the
>> banner messages?
>> 
>> 
>> Is there an offical API yet, that I overlooked, or will there one be
>> offered in the future? Because the question is: is this MNotification
>> compatibility API stable/will it work/offered in the future?
>> 
>> 
>> Thank you very much!
>> 
>> 
>> Gabriel.
>> 
>> 
>> 
>> --
>> 
>> 
>> 
>> Von meinem Nokia N9 gesendet
>> 
>> 
>> 
>> Mike Sheldon schrieb am 18.12.13 16:30:
>> Ah, excellent, thanks very much!
>> 
>> 
>> On Wed, Dec 18, 2013 at 3:26 PM, Andrey Kozhevnikov
>> 
>> wrote:
>> > There is mlite5 library providing MNotification compability for lipstick,
>> > it have all features MeeGo have.
>> > 
>> > On 18.12.2013 21:24, Mike Sheldon wrote:
>> >> Hi,
>> >> 
>> >>   I'm currently in the process of porting Rockwatch, my Pebble smart
>> >> 
>> >> watch application, from MeeGo to Sailfish. I've got the basics working
>> >> with it communicating correctly with the watch over bluetooth, however
>> >> I'm running into a bit of a problem with notifications.
>> >> 
>> >>   From what I can tell from a bit of poking around, Sailfish's
>> >> 
>> >> notification system is based around the org.freedesktop.Notifications
>> >> standard. However from what I can see looking at the documentation for
>> >> this it doesn't really make any provision for multiple notification
>> >> sinks/servers like MeeGo's MNotificationManager did. Is there something
>> >> I'm overlooking? Or is there some other mechanism by which an
>> >> application can register an interest in receiving notifications?
>> >> 
>> >> Thanks,
>> >> 
>> >>   Mike.
>> >> 
>> >> ___
>> >> SailfishOS.org Devel mailing list
>> > 
>> > ___
>> > SailfishOS.org Devel mailing list
>> 
>> ___
>> SailfishOS.org Devel mailing list
>
>-- 
>Med venlig hilsen / Best Regards
>
>Thomas Tanghus
>___
>SailfishOS.org Devel mailing lis
-- 
Sent from my Jolla
___
SailfishOS.org Devel mailing list