Re: [SailfishDevel] Gui and Kernel app
If you mean just Kernel + Gui development then no need in two packages. Combine them both. And no problem in SailfishOS to communicate between processes. You can use any favorite method. Everything works. On 26.02.2014 14:50, Kaj-Michael Lang wrote: On Tue, 2014-02-25 at 21:43 +0100, Randolph wrote: Not the same question for sailfish, is it here the same? does the RPM for kernel and RPM for gui will be able to communicate or is this prohibited too? For native apps you can use any standard unix/linux IPC method available to communicate. ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] QML C++ Integration not working in Sailfish
Hi J-P, It is not working as I try to call the method generateFilterInvokable2() in the function: function createBloomFilter() { getAppState().filterCharged = true; Bloomfilters.generateFilterInvokable2() console.log(Called) } And as result Called is never printed. So I guess that it crashes. El Miércoles 26 de febrero de 2014 0:30, Sylvain B. sth...@hotmail.com escribió: No, I am able to invoke c++ methods from QML while having exposed them the exact same way. The only difference would be that my constructor is a simple Bloomfilters(). So same question than J-P: what exactly isn't working? Date: Tue, 25 Feb 2014 16:31:13 +0100 From: mikel...@gmail.com To: antonio.cano.go...@ovi.com; devel@lists.sailfishos.org Subject: Re: [SailfishDevel] QML C++ Integration not working in Sailfish I think you need to add a qRegisterMetatype() to be able to invoke methods from qml. On Tue, Feb 25, 2014 at 3:06 PM, antonio.cano.go...@ovi.com wrote: Hi, I am trying to do a simple Sailfish aplication that uses a c++ library. I try to connect my qml code with the C++ code. First I create QObject extended library: #ifndef BLOOMFILTERS_H #define BLOOMFILTERS_H #include QObject #include svn/bloom-read-only/bloom_filter.hpp class Bloomfilters : public QObject { Q_OBJECT public: Q_INVOKABLE void generateFilterInvokable2() const ; Q_INVOKABLE void generateFilterInvokable(const QString cadenaK, const QString cadenaM) const ; explicit Bloomfilters(QObject *parent = 0); void generateFilter() ; Q_INVOKABLE void insertElement(const QString cadena) ; Q_INVOKABLE bool checkElement(const QString cadena) ; signals: public slots: private: bloom_parameters _parameters ; bloom_filter _filter; bool _filter_charged; QString _k; }; #endif // BLOOMFILTERS_H An I try to connect this with my sailfish application with the code: QGuiApplication *app = SailfishApp::application(argc, argv); QQuickView *view = SailfishApp::createView(); Bloomfilters * bloomfilters = new Bloomfilters(); view-rootContext()-setContextProperty(Bloomfilters, bloomfilters); view-setSource(SailfishApp::pathTo(qml/bloomfilter.qml)); view-showFullScreen(); return app-exec(); But this is not working. Someone have any idea about what am I doing wrong? Best Regards! ___ SailfishOS.org Devel mailing list -- Luciano Montanaro Anyone who is capable of getting themselves made President should on no account be allowed to do the job. -- Douglas Adams ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
[SailfishDevel] Hardware RNG
Hi Sailor, I notice there is a /dev/hwrng file. Which hardware parts/chipset is involved for generating the pseudo random number ? Regards, -- Benoît HERVIER - http://khertan.net/ ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] QML C++ Integration not working in Sailfish
On 2014-02-26 11:48, antonio.cano.go...@ovi.com wrote: I tried this: QGuiApplication *app = SailfishApp::application(argc, argv); QQuickView *view = SailfishApp::createView(); Bloomfilters * bloomfilters = new Bloomfilters(); view-setSource(SailfishApp::pathTo(qml/bloomfilter.qml)); view-showFullScreen(); view-rootContext()-setContextProperty(Bloomfilters, bloomfilters); return app-exec(); But it is not working yet. Two things: 1. Call setContextProperty() right before before setSource(), so it's already available when the QML content is loaded. 2. Use lowercase for context property names (bloomfilters instead of Bloomfilters). In some places, QML interprets IDs starting with an upper case letter as a type name, and that won't work then, therefore stick to lowercase. HTH :) Thomas ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] QML C++ Integration not working in Sailfish
Hi, Try creating Bloomfilters class instance before declaring view, and store app and view either to qscopedpointer or qsharedpointer. /Mikko 2014-02-26 13:15 GMT+02:00 antonio.cano.go...@ovi.com: Hi Thomas, I did both modification but the code does not work yet. Here is the new code: QGuiApplication *app = SailfishApp::application(argc, argv); QQuickView *view = SailfishApp::createView(); Bloomfilters * bloomfilters = new Bloomfilters(); view-rootContext()-setContextProperty(bloomfiltersdata, bloomfilters); view-setSource(SailfishApp::pathTo(qml/bloomfilter.qml)); view-showFullScreen(); return app-exec(); El Miércoles 26 de febrero de 2014 12:01, Thomas Perl th.p...@gmail.com escribió: On 2014-02-26 11:48, antonio.cano.go...@ovi.com wrote: I tried this: QGuiApplication *app = SailfishApp::application(argc, argv); QQuickView *view = SailfishApp::createView(); Bloomfilters * bloomfilters = new Bloomfilters(); view-setSource(SailfishApp::pathTo(qml/bloomfilter.qml)); view-showFullScreen(); view-rootContext()-setContextProperty(Bloomfilters, bloomfilters); return app-exec(); But it is not working yet. Two things: 1. Call setContextProperty() right before before setSource(), so it's already available when the QML content is loaded. 2. Use lowercase for context property names (bloomfilters instead of Bloomfilters). In some places, QML interprets IDs starting with an upper case letter as a type name, and that won't work then, therefore stick to lowercase. HTH :) Thomas ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] QML C++ Integration not working in Sailfish
Hi Andrey, The output is: ReferenceError: bloomfilterdata is not defined I am calling it from a .js Some idea about how can I make that this is also defined there. Thanks! El Miércoles 26 de febrero de 2014 12:18, Andrey Kozhevnikov coderusin...@gmail.com escribió: start app in terminal and show output please On 26.02.2014 17:15, antonio.cano.go...@ovi.com wrote: Hi Thomas, I did both modification but the code does not work yet. Here is the new code: QGuiApplication *app = SailfishApp::application(argc, argv); QQuickView *view = SailfishApp::createView(); Bloomfilters * bloomfilters = new Bloomfilters(); view-rootContext()-setContextProperty(bloomfiltersdata, bloomfilters); view-setSource(SailfishApp::pathTo(qml/bloomfilter.qml)); view-showFullScreen(); return app-exec(); El Miércoles 26 de febrero de 2014 12:01, Thomas Perl th.p...@gmail.com escribió: On 2014-02-26 11:48, antonio.cano.go...@ovi.com wrote: I tried this: QGuiApplication *app = SailfishApp::application(argc, argv); QQuickView *view = SailfishApp::createView(); Bloomfilters * bloomfilters = new Bloomfilters(); view-setSource(SailfishApp::pathTo(qml/bloomfilter.qml)); view-showFullScreen(); view-rootContext()-setContextProperty(Bloomfilters, bloomfilters); return app-exec(); But it is not working yet. Two things: 1. Call setContextProperty() right before before setSource(), so it's already available when the QML content is loaded. 2. Use lowercase for context property names (bloomfilters instead of Bloomfilters). In some places, QML interprets IDs starting with an upper case letter as a type name, and that won't work then, therefore stick to lowercase. HTH :) Thomas ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] QML C++ Integration not working in Sailfish
Yes, add a sYou declared bloomfiltersdata and you are trying to use bloomfilterdata... Date: Wed, 26 Feb 2014 04:02:22 -0800 From: antonio.cano.go...@ovi.com To: devel@lists.sailfishos.org Subject: Re: [SailfishDevel] QML C++ Integration not working in Sailfish Hi Andrey, The output is: ReferenceError: bloomfilterdata is not defined I am calling it from a .js Some idea about how can I make that this is also defined there. Thanks! El Miércoles 26 de febrero de 2014 12:18, Andrey Kozhevnikov coderusin...@gmail.com escribió: start app in terminal and show output please On 26.02.2014 17:15, antonio.cano.go...@ovi.com wrote: Hi Thomas, I did both modification but the code does not work yet. Here is the new code: QGuiApplication *app = SailfishApp::application(argc, argv); QQuickView *view = SailfishApp::createView(); Bloomfilters * bloomfilters = new Bloomfilters(); view-rootContext()-setContextProperty(bloomfiltersdata, bloomfilters); view-setSource(SailfishApp::pathTo(qml/bloomfilter.qml)); view-showFullScreen(); return app-exec(); El Miércoles 26 de febrero de 2014 12:01, Thomas Perl th.p...@gmail.com escribió: On 2014-02-26 11:48, antonio.cano.go...@ovi.com wrote: I tried this: QGuiApplication *app = SailfishApp::application(argc, argv); QQuickView *view = SailfishApp::createView(); Bloomfilters * bloomfilters = new Bloomfilters(); view-setSource(SailfishApp::pathTo(qml/bloomfilter.qml)); view-showFullScreen(); view-rootContext()-setContextProperty(Bloomfilters, bloomfilters); return app-exec(); But it is not working yet. Two things: 1. Call setContextProperty() right before before setSource(), so it's already available when the QML content is loaded. 2. Use lowercase for context property names (bloomfilters instead of Bloomfilters). In some places, QML interprets IDs starting with an upper case letter as a type name, and that won't work then, therefore stick to lowercase. HTH :) Thomas ___ SailfishOS.org Devel mailing list ___SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] QML C++ Integration not working in Sailfish
Hi Antonio This works for me: //Start BloomfiltersDemo.cpp #ifdef QT_QML_DEBUG #include QtQuick #endif #include sailfishapp.h #include bloomfilters.h int main(int argc, char *argv[]) { QGuiApplication *app = SailfishApp::application(argc, argv); QQuickView *view = SailfishApp::createView(); Bloomfilters * bloomfilters = new Bloomfilters(); view-rootContext()-setContextProperty(bloomfiltersdata, bloomfilters); view-setSource(SailfishApp::pathTo(qml/BloomFiltersDemo.qml)); view-showFullScreen(); return app-exec(); } //End BloomfiltersDemo.cpp //start bloomfilters.h #ifndef BLOOMFILTERS_H #define BLOOMFILTERS_H #include QObject #include QDebug //#include svn/bloom-read-only/bloom_filter.hpp class Bloomfilters : public QObject { Q_OBJECT public: Q_INVOKABLE void generateFilterInvokable2() const ; explicit Bloomfilters(QObject *parent = 0); void generateFilter() ; private: QString _k; }; #endif // BLOOMFILTERS_H //end bloomfilters.h //start bloomfilters.cpp #include bloomfilters.h Bloomfilters::Bloomfilters(QObject *parent) : QObject(parent) { } void Bloomfilters::generateFilterInvokable2() const { qDebug() Blooming Magic; } //end bloomfilters.cpp //start FirstPage.qml import QtQuick 2.0 import Sailfish.Silica 1.0 Page { id: page Component.onCompleted: { bloomfiltersdata.generateFilterInvokable2() } } //end FirstPage.qm HtH Chris Zitat von antonio.cano.go...@ovi.com: Hi Andrey, The output is: ReferenceError: bloomfilterdata is not defined I am calling it from a .js Some idea about how can I make that this is also defined there. Thanks! El Miércoles 26 de febrero de 2014 12:18, Andrey Kozhevnikov coderusin...@gmail.com escribió: start app in terminal and show output please On 26.02.2014 17:15, antonio.cano.go...@ovi.com wrote: Hi Thomas, I did both modification but the code does not work yet. Here is the new code: QGuiApplication *app = SailfishApp::application(argc, argv); QQuickView *view = SailfishApp::createView(); Bloomfilters * bloomfilters = new Bloomfilters(); view-rootContext()-setContextProperty(bloomfiltersdata, bloomfilters); view-setSource(SailfishApp::pathTo(qml/bloomfilter.qml)); view-showFullScreen(); return app-exec(); El Miércoles 26 de febrero de 2014 12:01, Thomas Perl th.p...@gmail.com escribió: On 2014-02-26 11:48, antonio.cano.go...@ovi.com wrote: I tried this: QGuiApplication *app = SailfishApp::application(argc, argv); QQuickView *view = SailfishApp::createView(); Bloomfilters * bloomfilters = new Bloomfilters(); view-setSource(SailfishApp::pathTo(qml/bloomfilter.qml)); view-showFullScreen(); view-rootContext()-setContextProperty(Bloomfilters, bloomfilters); return app-exec(); But it is not working yet. Two things: 1. Call setContextProperty() right before before setSource(), so it's already available when the QML content is loaded. 2. Use lowercase for context property names (bloomfilters instead of Bloomfilters). In some places, QML interprets IDs starting with an upper case letter as a type name, and that won't work then, therefore stick to lowercase. HTH :) Thomas ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] How to debug Julla
On Thu, 2014-02-27 at 14:41 +0800, Tony wrote: My Julla ’s system version is 1.0.0.5. I tried to upgrade the system , but First of all, it is Jolla system mentioned that is the newest version. Besides , I also tried to start using development mode. The system noticed that development package install failed. Feels a bit like a network connection problem. Does your network connection work ok otherwise ? Can you browse for example ? -- Kaj-Michael Lang mil...@tal.org ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] How to debug Julla
Hi, Here are instructions for updating: https://jolla.zendesk.com/entries/39296038-I-have-problems-with-my-Jolla-account-loading-applications-from-the-Jolla-store-and-or-getting-the-l Best Regards, Vesku On 02/27/2014 08:41 AM, Tony wrote: Hi, My Julla 's system version is 1.0.0.5. I tried to upgrade the system , but system mentioned that is the newest version. Besides , I also tried to start using development mode. The system noticed that development package install failed. Do you know how to debug it ? tony.chend...@gmail.com mailto:tony.chend...@gmail.com ___ SailfishOS.org Devel mailing list -- Vesa-Matti Hartikainen Jolla Oy http://jolla.com p. +358 50 487 6067 ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] How to debug Julla
Kaj Not quite so. I think 1.0.3.8 Naamankajärvi is the latest! Kaj-Michael Lang kirjoitti Thu Feb 27 2014 09:20:07 GMT+0200 (EET): On Thu, 2014-02-27 at 14:41 +0800, Tony wrote: My Julla ’s system version is 1.0.0.5. I tried to upgrade the system , but First of all, it is Jolla system mentioned that is the newest version. Besides , I also tried to start using development mode. The system noticed that development package install failed. Feels a bit like a network connection problem. Does your network connection work ok otherwise ? Can you browse for example ? -- Kaj-Michael Lang mil...@tal.org ___ SailfishOS.org Devel mailing lis -- Lähetetty Simon Jollasta ___ SailfishOS.org Devel mailing list