Trolltech Home | Qtopia-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qtopia-interest Archive, April 2007
Storing and syncing user data


Message 1 in thread

Hello,

First, I'm new in qtopia and embedded development, maybe my questions
are stupid.

I want to create an application who stores user data (a GTD like
program). My first thought was to use a sqlite database, but I read on
the qtopia doc that the calendar used xml file :
http://doc.trolltech.com/qtopia4.2/fd-Calendar.html

After searching in the source code of qtopia, It seems that it uses
qtopia model for accessing/writing event in calendar, this model using
a sqlite database for storing appointment... maybe my first thought
may be good after all.

Here my questions :
1) Could you please confirm my search, do you use a sqlite database ?

2) Where to store this database ?

3) The big question for me : how to sync with a desktop application ?
What is the best way to do this ?
I just want to be sure that it could be possible using a sqlite
database because I want to create also a desktop application.

As a side note, I didn't know where to post this message :
mailing-list (seems dead), qtopia.net (official site, but I find it a
little bit messy) or qtcentre.org (with a Qtopia section, but it's
community driven and not official media).

Thank you for your time !

Regards,
Nicolas

PS : great idea the contest, it gives me the motivation to try qtopia...

--
 [ signature omitted ] 

Message 2 in thread

Nicolas Arnaud-Cormos wrote:
> Hello,
>
> First, I'm new in qtopia and embedded development, maybe my questions
> are stupid.
>
> I want to create an application who stores user data (a GTD like
> program). My first thought was to use a sqlite database, but I read on
> the qtopia doc that the calendar used xml file :
> http://doc.trolltech.com/qtopia4.2/fd-Calendar.html
>
> After searching in the source code of qtopia, It seems that it uses
> qtopia model for accessing/writing event in calendar, this model using
> a sqlite database for storing appointment... maybe my first thought
> may be good after all.
>
> Here my questions :
> 1) Could you please confirm my search, do you use a sqlite database ?
Yes. We try and keep up to date on the sqlite releases, but seeing as
our releases come out a little while after Qt, the Sqlite included may
be from the point in time that that Qt version was released.
>
> 2) Where to store this database ?
For 4.2, there are both system databases (available via
QtopiaSql::systemDatabase()), there are also per-media database (for
example, the SD Card), which are accessible via the
QtopiaSql::databases() collection. Apologies for the lack of
documentation on the QtopiaSql class, this plans to be rectified for
4.3, which will also give you the QtopiaSql::applicationSpecific()
function for getting a handle to a database stored for your particular
application. Lastly, Sqlite is available via the standard Qt mechanisms,
so you could create your own database whereever you feel like it.
>
> 3) The big question for me : how to sync with a desktop application ?
> What is the best way to do this ?
> I just want to be sure that it could be possible using a sqlite
> database because I want to create also a desktop application.
>
> As a side note, I didn't know where to post this message :
> mailing-list (seems dead), qtopia.net (official site, but I find it a
> little bit messy) or qtcentre.org (with a Qtopia section, but it's
> community driven and not official media).
Can't answer this one for you, as there is currently no mechanism in
place for desktop synching.
>
> Thank you for your time !
>
> Regards,
> Nicolas
>
> PS : great idea the contest, it gives me the motivation to try qtopia...
>
> -- 
> To unsubscribe - send "unsubscribe" in the subject to
> qtopia-interest-request@xxxxxxxxxxxxx
>
>


-- 
 [ signature omitted ] 

Message 3 in thread

On Friday 20 April 2007 18:05, Nicolas Arnaud-Cormos wrote:
> Hello,
>
> First, I'm new in qtopia and embedded development, maybe my questions
> are stupid.
>
> I want to create an application who stores user data (a GTD like
> program). My first thought was to use a sqlite database, but I read on
> the qtopia doc that the calendar used xml file :
> http://doc.trolltech.com/qtopia4.2/fd-Calendar.html

Thats a bug in our documentation. Thanks for pointing this out.

I've seen that Bill has already answered the rest of your questions as well as 
I could so I'll leave it there.

--
 [ signature omitted ] 

Message 4 in thread

Thank you Bill and Ian for your answers.

I just find this page, really interesting :
http://doc.trolltech.com/qtopia4.2/sycust-sql.html

QtopiaSql::applicationSpecific() is a good idea, but I can't wait for
Qtopia 4.3 ;)

2007/4/23, Ian Walters <ianw@xxxxxxxxxxxxx>:
> On Friday 20 April 2007 18:05, Nicolas Arnaud-Cormos wrote:
> > Hello,
> >
> > First, I'm new in qtopia and embedded development, maybe my questions
> > are stupid.
> >
> > I want to create an application who stores user data (a GTD like
> > program). My first thought was to use a sqlite database, but I read on
> > the qtopia doc that the calendar used xml file :
> > http://doc.trolltech.com/qtopia4.2/fd-Calendar.html
>
> Thats a bug in our documentation. Thanks for pointing this out.
>
> I've seen that Bill has already answered the rest of your questions as well as
> I could so I'll leave it there.
>
> --
> Ian
>
> --
> To unsubscribe - send "unsubscribe" in the subject to qtopia-interest-request@xxxxxxxxxxxxx
>
>

--
 [ signature omitted ]