Re: [SailfishDevel] How to handle app settings?

2013-12-29 Thread Thomas Tanghus
On Sunday 29 December 2013 21:48:18 Franck Routier wrote: > Everything compiles fine, but on deployment, I get these messages: > > [W] QCoreApplication::applicationDirPath:1906 - > QCoreApplication::applicationDirPath: Please instantiate the > QApplication object first I use: int main(int argc,

Re: [SailfishDevel] How to handle app settings?

2013-12-29 Thread Franck Routier (perso)
Le 29/12/2013 21:53, Bob Jelica a écrit : > That’s just a warning, I have it as well, but never had problems nor time to > investigate further. Ok, thanks a lot. Franck ___ SailfishOS.org Devel mailing list

Re: [SailfishDevel] How to handle app settings?

2013-12-29 Thread Bob Jelica
That’s just a warning, I have it as well, but never had problems nor time to investigate further. //bob On 29 Dec 2013, at 21:48, Franck Routier (perso) wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, > > I am trying to use the QSettings wrapper, as proposed by Bob Jelica. >

Re: [SailfishDevel] How to handle app settings?

2013-12-29 Thread Franck Routier (perso)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I am trying to use the QSettings wrapper, as proposed by Bob Jelica. Here is what I did in my main cpp: #include #include "settings.h" int main(int argc, char *argv[]) { // SailfishApp::main() will display "qml/template.qml", if you need mo

Re: [SailfishDevel] How to handle app settings?

2013-12-29 Thread Andrey Kozhevnikov
QSettings saved in ~/.config/organization/application.conf for privacy you can make own SQL frontend with password-locked database. On 29.12.2013 18:46, Mikael Hermansson wrote: On Sunday 29 December 2013 10.08.04 Franck Routier wrote: LocalStorage: (+) available in qml out of the box, more st

Re: [SailfishDevel] How to handle app settings?

2013-12-29 Thread Mikael Hermansson
On Sunday 29 December 2013 10.08.04 Franck Routier wrote: > > LocalStorage: > (+) available in qml out of the box, more standard (HTML5 ??), more > powerful (sql) > (-) not directly human readable / editable, security concerns (all > tables available to all qml apps ??) > The localestorage file

Re: [SailfishDevel] How to handle app settings?

2013-12-29 Thread Bob Jelica
See my previous mail. I use that in QML all the time. I guess it’s up to you, as an app developer, to decide what fits your app. In spirit with agile software development, I start of with the easies possible solution, with as little friction as possible and take it from there. The QSettings (wit

Re: [SailfishDevel] How to handle app settings?

2013-12-29 Thread Franck Routier (perso)
Le 28/12/2013 19:06, Artem Marchenko a écrit : > If you want something QML that works, I use this pure QML LocalStorage > approach for the last couple of years fine > - > https://github.com/amarchen/Wikipedia/blob/master/src/qml/components/DbDictionary.qml I found inbetween that this is the appr

Re: [SailfishDevel] How to handle app settings?

2013-12-28 Thread Bob Jelica
I use a QML-enabled QSettings wrapper created by Nokia at some point. Here’s the download link: https://dl.dropboxusercontent.com/u/10015284/qml_settings/settings.cpp and https://dl.dropboxusercontent.com/u/10015284/qml_settings/settings.h Put those into your project, then register it in your mai

Re: [SailfishDevel] How to handle app settings?

2013-12-28 Thread Artem Marchenko
Hi there I believe somebody was posting to IRC a link to a QML wrapper for QSettings done as a part of some nemo project. If you want something QML that works, I use this pure QML LocalStorage approach for the last couple of years fine - https://github.com/amarchen/Wikipedia/blob/master/src/qml/c

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");

Re: [SailfishDevel] How to handle app settings?

2013-12-28 Thread Andrey Kozhevnikov
use QSettings On 28.12.2013 23:14, Franck Routier (perso) wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I didn't find any reference to the way application settings are to be handled in SailfishOS. Does this apply http://developer.nokia.com/Community/Wiki/How-to_create_a_persistent_

[SailfishDevel] How to handle app settings?

2013-12-28 Thread Franck Routier (perso)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I didn't find any reference to the way application settings are to be handled in SailfishOS. Does this apply http://developer.nokia.com/Community/Wiki/How-to_create_a_persistent_settings_database_in_Qt_Quick_%28QML%29 ? Or this http://harmattan-