Howto about Qt QML and Ofono
Hi all together.
I wrote a little howto about how to use Ofono with Phonesim in the back and a Qt application as frontend. The Qt applicatin is devided into two parts, the C++ part where all the D-Bus stuff is handled and the QML part where you can use C++ methods to e.g. activate the Ofono modem or do something when an Ofono signal is recieved. The howto is separated into three parts:
Quoted 3 lines
http://matgnt.wordpress.com/2010/07/19/qt-ofono-d-bus-and-qml-part-1/
http://matgnt.wordpress.com/2010/07/19/qt-ofono-d-bus-and-qml-part-2/
http://matgnt.wordpress.com/2010/07/19/qt-ofono-d-bus-and-qml-part-3/
I hope this helps people out there to create cool new phone applications. You're welcome to leave a note here or on the howto directly.
Best regards,
Matthias
Gu
Hi Matthias,
Quoted 16 lines
-----Original Message-----
From: ofono-bounces(a)ofono.org [mailto:ofono-bounces(a)ofono.org] On Behalf Of Matthias Günther
Sent: Tuesday, July 20, 2010 4:02 PM
To: qt-qml(a)trolltech.com; ofono(a)ofono.org
Subject: Howto about Qt QML and OfonoHi all together.
I wrote a little howto about how to use Ofono with Phonesim in the back and a Qt application as frontend. The Qt applicatin is devided into two parts, the C++ part where all the D-Bus stuff is handled and the QML part where you can use C++ methods to e.g. activate the Ofono modem or do something when an Ofono signal is recieved. The howto is separated into three parts:
Quoted 7 lines
Quoted 3 lines
http://matgnt.wordpress.com/2010/07/19/qt-ofono-d-bus-and-qml-part-1/
http://matgnt.wordpress.com/2010/07/19/qt-ofono-d-bus-and-qml-part-2/
http://matgnt.wordpress.com/2010/07/19/qt-ofono-d-bus-and-qml-part-3/I hope this helps people out there to create cool new phone applications. You're welcome to leave a note here or on the howto directly.
Your lovely program gives a good demo on how to writing an application based on oFono. oFono does claim it will help on building application in a convenient way, so the prosperity of application will definitely bring feedback to oFono and make oFono grow better.
I have two comments on your first part: 1) configure is not in the git tree of oFono, so we will use bootstrap-configure instead. 2) I'm sure your phonesim works well. But we also have another phonesim derived from your repo, which we had some modification and enhancement in. The repo is "git://git.kernel.org/pub/scm/network/ofono/phonesim.git". The building command is same as oFono, and the execution command is "./phonesim -p 12345 -gui src/default.xml".
Regards,
-Yang
Quoted 12 lines
Quoted 12 lines
I wrote a little howto about how to use Ofono with Phonesim in the back and a Qt application as frontend. The Qt applicatin is devided into two parts, the C++ part where all the D-Bus stuff is handled and the QML part where you can use C++ methods to e.g. activate the Ofono modem or do something when an Ofono signal is recieved. The howto is separated into three parts:
Quoted 6 lines
Quoted 3 lines
I hope this helps people out there to create cool new phone applications. You're welcome to leave a note here or on the howto directly.
Your lovely program gives a good demo on how to writing an application based on oFono. oFono does claim it will help on building application in a convenient way, so the prosperity of application will definitely bring feedback to oFono and make oFono grow better.
I have two comments on your first part: 1) configure is not in the git tree of oFono, so we will use bootstrap-configure instead. 2) I'm sure your phonesim works well. But we also have another phonesim derived from your repo, which we had some modification and enhancement in. The repo is "git://git.kernel.org/pub/scm/network/ofono/phonesim.git". The building command is same as oFono, and the execution command is "./phonesim -p 12345 -guisrc/default.xml".
Thanks Yang, I've added the ./bootstrap command to the listing. I also wrote down a hint to the ofono branch of phonesim.
Best regards,
Matthias
Gu
Hi Matthias,
Quoted 20 lines
Quoted 9 lines
Quoted 7 lines
Quoted 3 lines
http://matgnt.wordpress.com/2010/07/19/qt-ofono-d-bus-and-qml-part-1/
http://matgnt.wordpress.com/2010/07/19/qt-ofono-d-bus-and-qml-part-2/
http://matgnt.wordpress.com/2010/07/19/qt-ofono-d-bus-and-qml-part-3/I hope this helps people out there to create cool new phone applications. You're welcome to leave a note here or on the howto directly.
Your lovely program gives a good demo on how to writing an application based on
oFono. oFono does claim it will help on building application in a convenient way, so the prosperity of application will definitely bring feedback to oFono and make oFono grow better.
Quoted 1 line
I have two comments on your first part: 1) configure is not in the git tree of oFono, so
we will use bootstrap-configure instead. 2) I'm sure your phonesim works well. But we also have another phonesim derived from your repo, which we had some modification and enhancement in. The repo is "
git://git.kernel.org/pub/scm/network/ofono/phonesim.git". The building command is same as oFono, and the execution command is "./phonesim -p 12345 -guisrc/default.xml".
Quoted 2 lines
Thanks Yang, I've added the ./bootstrap command to the listing. I also wrote down a hint to the ofono branch of phonesim.
"bootstrap-configure" is a single script, rather than two different ones.
Regards,
-Yang
Quoted 22 lines · Yang
Hi Matthias,
Quoted 20 lines
Quoted 9 lines
Quoted 7 lines
Quoted 3 lines
http://matgnt.wordpress.com/2010/07/19/qt-ofono-d-bus-and-qml-part-1/
http://matgnt.wordpress.com/2010/07/19/qt-ofono-d-bus-and-qml-part-2/
http://matgnt.wordpress.com/2010/07/19/qt-ofono-d-bus-and-qml-part-3/I hope this helps people out there to create cool new phone applications. You're welcome to leave a note here or on the howto directly.
Your lovely program gives a good demo on how to writing an application based on
oFono. oFono does claim it will help on building application in a convenient way, so the prosperity of application will definitely bring feedback to oFono and make oFono grow better.
Quoted 1 line
I have two comments on your first part: 1) configure is not in the git tree of oFono, so
we will use bootstrap-configure instead. 2) I'm sure your phonesim works well. But we also have another phonesim derived from your repo, which we had some modification and enhancement in. The repo is "
git://git.kernel.org/pub/scm/network/ofono/phonesim.git". The building command is same as oFono, and the execution command is "./phonesim -p 12345 -guisrc/default.xml".
Quoted 5 lines
Quoted 2 lines
Thanks Yang, I've added the ./bootstrap command to the listing. I also wrote down a hint to the ofono branch of phonesim.
"bootstrap-configure" is a single script, rather than two different ones.
There is a bootstrap script also, and bootstrap-configure basically runs it and then runs configure with a pre-set of switches.
Signature · 2 lines
João Paulo Rechi Vita http://jprvita.wordpress.com/
Hi Joao,
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
Quoted 9 lines
Quoted 7 lines
Quoted 3 lines
http://matgnt.wordpress.com/2010/07/19/qt-ofono-d-bus-and-qml-part-1/
http://matgnt.wordpress.com/2010/07/19/qt-ofono-d-bus-and-qml-part-2/
http://matgnt.wordpress.com/2010/07/19/qt-ofono-d-bus-and-qml-part-3/I hope this helps people out there to create cool new phone applications. You're welcome to leave a note here or on the howto directly.
Your lovely program gives a good demo on how to writing an application based on
oFono. oFono does claim it will help on building application in a convenient way, so the prosperity of application will definitely bring feedback to oFono and make oFono grow better.
Quoted 1 line
I have two comments on your first part: 1) configure is not in the git tree of oFono, so
we will use bootstrap-configure instead. 2) I'm sure your phonesim works well. But we also have another phonesim derived from your repo, which we had some modification and enhancement in. The repo is "
git://git.kernel.org/pub/scm/network/ofono/phonesim.git". The building command is same as oFono, and the execution command is "./phonesim -p 12345 -guisrc/default.xml".
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Thanks Yang, I've added the ./bootstrap command to the listing. I also wrote down a hint to the ofono branch of phonesim.
"bootstrap-configure" is a single script, rather than two different ones.
There is a bootstrap script also, and bootstrap-configure basically runs it and then runs configure with a pre-set of switches.
and more important with a pre-set of switches that every developer should use since it enables proper debug and maintainer mode. With these switches the compiler becomes your best test tool before submitting patches.
However bootstrap and bootstrap-configure is not intended for packaging. And that is why you only find these in the ofono.git repository and not in the tarballs.
Regards
Marcel
Hi Yang,
Quoted 20 lines
Quoted 20 lines
Quoted 9 lines
Quoted 7 lines
Quoted 3 lines
http://matgnt.wordpress.com/2010/07/19/qt-ofono-d-bus-and-qml-part-1/
http://matgnt.wordpress.com/2010/07/19/qt-ofono-d-bus-and-qml-part-2/
http://matgnt.wordpress.com/2010/07/19/qt-ofono-d-bus-and-qml-part-3/I hope this helps people out there to create cool new phone applications. You're welcome to leave a note here or on the howto directly.
Your lovely program gives a good demo on how to writing an application based on
oFono. oFono does claim it will help on building application in a convenient way, so the prosperity of application will definitely bring feedback to oFono and make oFono grow better.
Quoted 1 line
I have two comments on your first part: 1) configure is not in the git tree of oFono, so
we will use bootstrap-configure instead. 2) I'm sure your phonesim works well. But we also have another phonesim derived from your repo, which we had some modification and enhancement in. The repo is "
git://git.kernel.org/pub/scm/network/ofono/phonesim.git". The building command is same as oFono, and the execution command is "./phonesim -p 12345 -guisrc/default.xml".
Quoted 4 lines
Quoted 2 lines
Thanks Yang, I've added the ./bootstrap command to the listing. I also wrote down a hint to the ofono branch of phonesim.
"bootstrap-configure" is a single script, rather than two different ones.
Thanks for your comment. As mentioned in the thread before, there are two scripts. The problem with "bootstrap-configure" is, that it enables the --enable-capng switch which may cause problems. It'll probably end up in missing files. Therefore I chose "bootstrap" to just create the configure script and then use it without any configuration arguments - just the defaults. For the purpose of the howto, the debug switches are not really necessary.
Best regards,
Matthias
Zhang
Hi Matthias,
Quoted 32 lines · Matthias Günther
Hi Yang,
Quoted 23 lines
Quoted 23 lines
Quoted 11 lines
Quoted 8 lines
Quoted 3 lines
http://matgnt.wordpress.com/2010/07/19/qt-ofono-d-bus-and-qml-part-1/
http://matgnt.wordpress.com/2010/07/19/qt-ofono-d-bus-and-qml-part-2/
http://matgnt.wordpress.com/2010/07/19/qt-ofono-d-bus-and-qml-part-3/I hope this helps people out there to create cool new phone applications. You're welcome to leave a note here or on the howto directly.
Your lovely program gives a good demo on how to writing an application based on
oFono. oFono does claim it will help on building application in a convenient way, so the prosperity of application will definitely bring feedback to oFono and make oFono grow better.
Quoted 2 lines
I have two comments on your first part: 1) configure is not in the git tree of oFono, so
we will use bootstrap-configure instead. 2) I'm sure your phonesim works well. But we also have another phonesim derived from your repo, which we had some modification and enhancement in. The repo is "
git://git.kernel.org/pub/scm/network/ofono/phonesim.git". The building command is same as oFono, and the execution command is "./phonesim -p 12345 -guisrc/default.xml".Quoted 6 lines
Quoted 3 lines
Thanks Yang, I've added the ./bootstrap command to the listing. I also
wrote down a hint to the ofono branch of phonesim."bootstrap-configure" is a single script, rather than two different ones.
Quoted 7 lines
Thanks for your comment. As mentioned in the thread before, there are two scripts. The problem with "bootstrap-configure" is, that it enables the --enable-capng switch which may cause problems. It'll probably end up in missing files. Therefore I chose "bootstrap" to just create the configure script and then use it without any configuration arguments - just the defaults. For the purpose of the howto, the debug switches are not really necessary.
You could use 'sudo apt-get install libcap-ng-dev' or 'yum install -y libcap-ng-devel' to install this library.
One comment is that we normally call our project as 'oFono' instead 'Ofono'. :-)
Quoted 6 lines
Best regards,
Matthias
_______________________________________________
ofono mailing list
ofono(a)ofono.org
http://lists.ofono.org/listinfo/ofono
Regards,
Zhenhua