Re: [SailfishDevel] Fwd: Docker build engine

2020-05-12 Thread Matthias Fehring
Am Dienstag, 12. Mai 2020, 16:22:38 CEST schrieb Martin Kampas:
> Hello Schorsch,
> 
> OK, let's see if we can reproduce it. What is your host OS
> and Docker version please?
> 
> BR,
> Martin

Hello Martin,

I think I had the same issue as Schorsch and I also moved back to VirtualBox.

For me this is on openSUSE Tumbleweed with docker 19.0.3.5

Best greetings
Matthias

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

Und der Buschfunk spielt gerade mal nichts...



signature.asc
Description: This is a digitally signed message part.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] SDK SIGSEGV when adding new kit

2020-04-20 Thread Matthias Fehring
Ah, forgot to describe my environment:

SailfishOS SDK 3.0.7
openSUSE Tumbleweed 64 bit
Linux 5.6.4
glibc 2.31

Best regards
Matthias

Am Montag, 20. April 2020, 16:43:05 CEST schrieb Matthias Fehring:
> Hello,
> 
> maybe someone can confirm this: When I try to add a new Kit in the SDK,
> qtcreator crashes with a segmentation fault.
> 
> Best regards
> Matthias

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

Und der Buschfunk spielt gerade mal nichts...



signature.asc
Description: This is a digitally signed message part.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

[SailfishDevel] SDK SIGSEGV when adding new kit

2020-04-20 Thread Matthias Fehring
Hello,

maybe someone can confirm this: When I try to add a new Kit in the SDK,
qtcreator crashes with a segmentation fault.

Best regards
Matthias

This is my backtrace:

Thread 1 "qtcreator" received signal SIGSEGV, Segmentation fault.
0x774838fa in QWidget::insertAction(QAction*, QAction*) () from 
/home/buschmann/Dokumente/Entwicklung/SailfishOS/bin/../lib/Qt/lib/libQt5Widgets.so.5
(gdb) bt
#0  0x774838fa in QWidget::insertAction(QAction*, QAction*) () from 
/home/buschmann/Dokumente/Entwicklung/SailfishOS/bin/../lib/Qt/lib/libQt5Widgets.so.5
#1  0x7fffab2c6f9d in ?? () from 
/home/buschmann/Dokumente/Entwicklung/SailfishOS/lib/qtcreator/plugins/libProjectExplorer.so
#2  0x7fffab2c1393 in 
ProjectExplorer::KitManager::createConfigWidget(ProjectExplorer::Kit*) () from 
/home/buschmann/Dokumente/Entwicklung/SailfishOS/lib/qtcreator/plugins/libProjectExplorer.so
#3  0x7fffab2c869b in ?? () from 
/home/buschmann/Dokumente/Entwicklung/SailfishOS/lib/qtcreator/plugins/libProjectExplorer.so
#4  0x7fffab2c8a7b in ?? () from 
/home/buschmann/Dokumente/Entwicklung/SailfishOS/lib/qtcreator/plugins/libProjectExplorer.so
#5  0x7fffab2ca884 in ?? () from 
/home/buschmann/Dokumente/Entwicklung/SailfishOS/lib/qtcreator/plugins/libProjectExplorer.so
#6  0x767c32c6 in QMetaObject::activate(QObject*, int, int, void**) () 
from 
/home/buschmann/Dokumente/Entwicklung/SailfishOS/bin/../lib/Qt/lib/libQt5Core.so.5
#7  0x77538f62 in QAbstractButton::clicked(bool) () from 
/home/buschmann/Dokumente/Entwicklung/SailfishOS/bin/../lib/Qt/lib/libQt5Widgets.so.5
#8  0x77539194 in QAbstractButtonPrivate::emitClicked() () from 
/home/buschmann/Dokumente/Entwicklung/SailfishOS/bin/../lib/Qt/lib/libQt5Widgets.so.5
#9  0x7753ae3e in QAbstractButtonPrivate::click() () from 
/home/buschmann/Dokumente/Entwicklung/SailfishOS/bin/../lib/Qt/lib/libQt5Widgets.so.5
#10 0x7753afbd in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () 
from 
/home/buschmann/Dokumente/Entwicklung/SailfishOS/bin/../lib/Qt/lib/libQt5Widgets.so.5
#11 0x7748c788 in QWidget::event(QEvent*) () from 
/home/buschmann/Dokumente/Entwicklung/SailfishOS/bin/../lib/Qt/lib/libQt5Widgets.so.5
#12 0x7744bd7c in QApplicationPrivate::notify_helper(QObject*, QEvent*) 
() from 
/home/buschmann/Dokumente/Entwicklung/SailfishOS/bin/../lib/Qt/lib/libQt5Widgets.so.5
#13 0x774537fd in QApplication::notify(QObject*, QEvent*) () from 
/home/buschmann/Dokumente/Entwicklung/SailfishOS/bin/../lib/Qt/lib/libQt5Widgets.so.5
#14 0x76795658 in QCoreApplication::notifyInternal2(QObject*, QEvent*) 
() from 
/home/buschmann/Dokumente/Entwicklung/SailfishOS/bin/../lib/Qt/lib/libQt5Core.so.5
#15 0x77452902 in QApplicationPrivate::sendMouseEvent(QWidget*, 
QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer&, bool, bool) ()
   from 
/home/buschmann/Dokumente/Entwicklung/SailfishOS/bin/../lib/Qt/lib/libQt5Widgets.so.5
#16 0x774a6902 in QWidgetWindow::handleMouseEvent(QMouseEvent*) () from 
/home/buschmann/Dokumente/Entwicklung/SailfishOS/bin/../lib/Qt/lib/libQt5Widgets.so.5
#17 0x774a96e3 in QWidgetWindow::event(QEvent*) () from 
/home/buschmann/Dokumente/Entwicklung/SailfishOS/bin/../lib/Qt/lib/libQt5Widgets.so.5
#18 0x7744bd7c in QApplicationPrivate::notify_helper(QObject*, QEvent*) 
() from 
/home/buschmann/Dokumente/Entwicklung/SailfishOS/bin/../lib/Qt/lib/libQt5Widgets.so.5
#19 0x77453460 in QApplication::notify(QObject*, QEvent*) () from 
/home/buschmann/Dokumente/Entwicklung/SailfishOS/bin/../lib/Qt/lib/libQt5Widgets.so.5
#20 0x76795658 in QCoreApplication::notifyInternal2(QObject*, QEvent*) 
() from 
/home/buschmann/Dokumente/Entwicklung/SailfishOS/bin/../lib/Qt/lib/libQt5Core.so.5
#21 0x76dd5e95 in 
QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*)
 () from 
/home/buschmann/Dokumente/Entwicklung/SailfishOS/bin/../lib/Qt/lib/libQt5Gui.so.5
#22 0x76dd7445 in 
QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*)
 ()
   from 
/home/buschmann/Dokumente/Entwicklung/SailfishOS/bin/../lib/Qt/lib/libQt5Gui.so.5
#23 0x76db330b in 
QWindowSystemInterface::sendWindowSystemEvents(QFlags)
 () from 
/home/buschmann/Dokumente/Entwicklung/SailfishOS/bin/../lib/Qt/lib/libQt5Gui.so.5
#24 0x73a187fa in xcbSourceDispatch(_GSource*, int (*)(void*), void*) 
() from 
/home/buschmann/Dokumente/Entwicklung/SailfishOS/lib/Qt/plugins/platforms/../../lib/libQt5XcbQpa.so.5
#25 0x752af048 in g_main_dispatch (context=0x7fffec005010) at 
../glib/gmain.c:3216
#26 g_main_context_dispatch (context=context@entry=0x7fffec005010) at 
../glib/gmain.c:3881
#27 0x752af3d0 in g_main_context_iterate 
(context=context@entry=0x7fffec005010, block=block@entry=1, 
dispatch=dispatch@entry=1, self=) at ../glib/gmain.c:3954
#28 0x752af45f in 

Re: [SailfishDevel] Sailfish SDK 2.1 has been released to all users

2019-06-21 Thread Matthias Fehring
Hello,

harbour now accepts packages using C++14 with newer libstsdc++ bindings.

Best regards.
Matthias

Am Mittwoch, 19. Juni 2019, 07:35:26 CEST schrieb Lukáš Karas:
> Hi Sailors.
> 
> It seems that I am not the only one who has this issue. If it really is
> Harbour bug, is there any chance that it will fixed soon? This validation is
> not part of open-source rpm validator? It seems that these checks are not
> in SDK rpm validator...
> 
> Lukas
> 
> > Hi Lukáš,
> > 
> > Unfortunately this is a bug with the Harbour rules - please folow this
> > report on TJC https://
> > together.jolla.com/question/206727/harbour-is-rejecting-rpm-package-build-
> > b
> > y-latest-sdk/
> > 
> > BR,
> > Martin
> > 
> > On čtvrtek 30. května 2019 8:11:40 CEST Lukáš Karas wrote:
> > > Hi Sailors.
> > > 
> > > When I build my cmake-based project with recent SDK, everything works
> > > fine,
> > > 
> > > but Harbour is refusing generated packages with this error message:
> > >   No OS version and packages satisfy package requirements:
> > >   Requirement libstdc++.so.6(CXXABI_1.3.8) not available
> > >   Requirement libstdc++.so.6(GLIBCXX_3.4.20) not available
> > > 
> > > I am doing something wrong, or just some whitelist should be updated
> > > in the Harbour?
> > > 
> > > Lukas
> > > 
> > > Dne úterý 14. května 2019 15:02:02 CEST Jarkko Lehtoranta napsal(a):
> > > > Hello,
> > > > 
> > > > Today (May 14th) at 13:00 UTC the Sailfish SDK 2.1 has been released
> > > > to
> > > > all
> > > > users. Please, check out the release notes from
> > > > https://together.jolla.com/question/204832/.
> > > > 
> > > > The installers for this SDK release are now available at
> > > > https://sailfishos.org/wiki/Application_SDK#Latest_SDK_Release. If you
> > > > have
> > > > an older beta release of the SDK, you should see an update
> > > > notification
> > > > in
> > > > the Sailfish OS IDE. The 2.1 Early Access SDK users will get an update
> > > > notification about the new Emulator and Build Targets.
> > > > 
> > > > If you have any questions, feel free to either send an email to this
> > > > mailing list: devel at lists.sailfishos.org, write it up in
> > > > http://together.jolla.com and tag your issue with ‘sdk’ or send an
> > > > e-mail
> > > > to developer-care at jolla.com.
> > > > 
> > > > Happy hacking,
> > > > Jolla SDK Team
> > > > ___
> > > > SailfishOS.org Devel mailing list
> > > > To unsubscribe, please send a mail to
> > > > devel-unsubscr...@lists.sailfishos.org


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

Und der Buschfunk spielt gerade mal nichts...

www.buschmann23.de
GPG-Key: 0x614C3258
GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258


signature.asc
Description: This is a digitally signed message part.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] mapplauncherd/booster and C++ QML plugin

2018-12-12 Thread Matthias Fehring
Am Mittwoch, 12. Dezember 2018, 21:32:41 CET schrieb Caliste Damien:
> Hello,
> 
> Le mercredi 12 décembre 2018, Matthias Fehring a écrit :
> > But what works is when I use "generic" booster type, then the app
> > works.
> 
> From my understanding, this is expected. The booster will preload a
> given set of libraries (qt5 for instance) but if your plugin requires a
> library outside this set, the plugin will not be loaded because of
> unresolved symbols. I had the issue with GnuPG plugin in Sailfish
> Secrets. The daemon was launched with -type qt5, but my plugin was
> linking on gpgme.so in addition to all Qt libraries. Switching to
> generic solved the issue, as you noticed.

Hm, I was using an external private library before already. Only difference 
now is, that I load the library via a QML C++ plugin instead.

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

Und der Buschfunk spielt gerade "Juokse Sina Humma" von "Korpiklaani".

www.buschmann23.de
GPG-Key: 0x614C3258
GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258


signature.asc
Description: This is a digitally signed message part.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] mapplauncherd/booster and C++ QML plugin

2018-12-12 Thread Matthias Fehring
I guess I was little rash about the solution. Adding Q_DECL_EXPORT to the 
app's main function did not solve the issue. When testing it I forgot that I 
was again starting the executable directly without the invoker.

So it still only starts when using "generic" booster type.

I was using a private library before, when the booster worked as expected. 
Main difference now is, that I am using a C++ QML plugin that uses the library 
previously used directly in the app.

Am Mittwoch, 12. Dezember 2018, 23:21:39 CET schrieb Matthias Fehring:
> Thank you for  the solution Coderus :)
> 
> IMHO the hint about using Q_DECL_EXPORT for the main function is a bit
> hidden in the comments of sailfishapp.h. (found it there after your answer)
> 
> Best greetings
> 
> Matthias
> 
> Am Mittwoch, 12. Dezember 2018, 21:58:19 CET schrieb Андрей Кожевников:
> > your app main lacks of Q_DECL_EXPORT, so it can't be boosted.
> > 
> > ср, 12 дек. 2018 г. в 21:00, Matthias Fehring
> >  > 
> > > Hello
> > > 
> > > I am using a C++ QML plugin in an application that works as expected
> > > when
> > > the
> > > app executable is called directly. But when the application is loaded
> > > via
> > > mapplauncherd/booster, the window is blank without any error message.
> > > 
> > > So, the following works:
> > > /usr/bin/harbour-intfuorit
> > > 
> > > But with the silica-qt5 booster the app window is blank:
> > > /usr/bin/invoker -s --type=silica-qt5 /usr/bin/harbour-intfuorit
> > > 
> > > I also tried to use booster type "qt5", but the result is the same as
> > > with
> > > "silica-qt5".
> > > 
> > > But what works is when I use "generic" booster type, then the app works.
> > > 
> > > Now my question:
> > > Is that the expected behvior? Does only the "generic" booster support
> > > private
> > > C++ QML plugins? Or have i made a mistake somwhere?
> > > 
> > > App code is here:
> > > https://github.com/Huessenbergnetz/Intfuorit
> > > 
> > > QML plugin code:
> > > https://github.com/Huessenbergnetz/libintfuorit/tree/master/imports/de/
> > > huessenbergnetz/intfuorit
> > > <https://github.com/Huessenbergnetz/libintfuorit/tree/master/imports/de/
> > > hu
> > > essenbergnetz/intfuorit>
> > > 
> > > Best greetings
> > > Matthias
> > > 
> > > --
> > > Das Gesetz hat zum Schneckengang verdorben, was Adlerflug geworden wäre.
> > > (Friedrich Schiller - Die Räuber)
> > > 
> > > Und der Buschfunk spielt gerade "Phobos Grunt" von "Turbostaat".
> > > 
> > > www.buschmann23.de
> > > GPG-Key: 0x614C3258
> > > GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258
> > > ___
> > > SailfishOS.org Devel mailing list
> > > To unsubscribe, please send a mail to
> > > devel-unsubscr...@lists.sailfishos.org


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

Und der Buschfunk spielt gerade "Mausen" von "MIA.".

www.buschmann23.de
GPG-Key: 0x614C3258
GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258


signature.asc
Description: This is a digitally signed message part.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] mapplauncherd/booster and C++ QML plugin

2018-12-12 Thread Matthias Fehring
Thank you for  the solution Coderus :)

IMHO the hint about using Q_DECL_EXPORT for the main function is a bit hidden 
in the comments of sailfishapp.h. (found it there after your answer)

Best greetings

Matthias

Am Mittwoch, 12. Dezember 2018, 21:58:19 CET schrieb Андрей Кожевников:
> your app main lacks of Q_DECL_EXPORT, so it can't be boosted.
> 
> ср, 12 дек. 2018 г. в 21:00, Matthias Fehring  
> > Hello
> > 
> > I am using a C++ QML plugin in an application that works as expected when
> > the
> > app executable is called directly. But when the application is loaded via
> > mapplauncherd/booster, the window is blank without any error message.
> > 
> > So, the following works:
> > /usr/bin/harbour-intfuorit
> > 
> > But with the silica-qt5 booster the app window is blank:
> > /usr/bin/invoker -s --type=silica-qt5 /usr/bin/harbour-intfuorit
> > 
> > I also tried to use booster type "qt5", but the result is the same as with
> > "silica-qt5".
> > 
> > But what works is when I use "generic" booster type, then the app works.
> > 
> > Now my question:
> > Is that the expected behvior? Does only the "generic" booster support
> > private
> > C++ QML plugins? Or have i made a mistake somwhere?
> > 
> > App code is here:
> > https://github.com/Huessenbergnetz/Intfuorit
> > 
> > QML plugin code:
> > https://github.com/Huessenbergnetz/libintfuorit/tree/master/imports/de/
> > huessenbergnetz/intfuorit
> > <https://github.com/Huessenbergnetz/libintfuorit/tree/master/imports/de/hu
> > essenbergnetz/intfuorit>
> > 
> > Best greetings
> > Matthias
> > 
> > --
> > Das Gesetz hat zum Schneckengang verdorben, was Adlerflug geworden wäre.
> > (Friedrich Schiller - Die Räuber)
> > 
> > Und der Buschfunk spielt gerade "Phobos Grunt" von "Turbostaat".
> > 
> > www.buschmann23.de
> > GPG-Key: 0x614C3258
> > GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258
> > ___
> > SailfishOS.org Devel mailing list
> > To unsubscribe, please send a mail to
> > devel-unsubscr...@lists.sailfishos.org


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

Und der Buschfunk spielt gerade "Eine Stadt gibt auf" von "Turbostaat".

www.buschmann23.de
GPG-Key: 0x614C3258
GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258


signature.asc
Description: This is a digitally signed message part.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

[SailfishDevel] mapplauncherd/booster and C++ QML plugin

2018-12-12 Thread Matthias Fehring
Hello

I am using a C++ QML plugin in an application that works as expected when the 
app executable is called directly. But when the application is loaded via 
mapplauncherd/booster, the window is blank without any error message.

So, the following works:
/usr/bin/harbour-intfuorit

But with the silica-qt5 booster the app window is blank:
/usr/bin/invoker -s --type=silica-qt5 /usr/bin/harbour-intfuorit

I also tried to use booster type "qt5", but the result is the same as with 
"silica-qt5".

But what works is when I use "generic" booster type, then the app works.

Now my question:
Is that the expected behvior? Does only the "generic" booster support private 
C++ QML plugins? Or have i made a mistake somwhere?

App code is here:
https://github.com/Huessenbergnetz/Intfuorit

QML plugin code:
https://github.com/Huessenbergnetz/libintfuorit/tree/master/imports/de/
huessenbergnetz/intfuorit

Best greetings
Matthias

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

Und der Buschfunk spielt gerade "Phobos Grunt" von "Turbostaat".

www.buschmann23.de
GPG-Key: 0x614C3258
GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258


signature.asc
Description: This is a digitally signed message part.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

[SailfishDevel] FadeAnimator in Sailfish OS 2.1

2017-03-04 Thread Matthias Fehring
Hi,

with Sailfish OS 2.1 I have a problem when using FadeAnimator in QML for 
example in

Grid {
add: FadeAnimator {}
}

The content is than not shown, but it works on versions prior to 2.1. Is that 
an intended behavior? I could not find any hint in the release notes of Iijoki.

Best greetings
Matthias Fehring
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Connect to 2 databases

2016-09-14 Thread Matthias Fehring
Am Donnerstag, 8. September 2016, 14:40:16 CEST schrieb Chris Walker:
> Can anybody point me in the direction of some C++ code to connect to
> two SQL databases please?

Does it have to be pure C++ code? If not and if it can be the Qt way, read on. 
:)

> I want to have one set as read-only and the other as read-write.
> 
> Whatever I'm doing is wrong as I always end up with a default
> connection.

Have a look at QSqlDatabase and it's addDatabase() method. [1]

Example for two SQLite databases:

You have to set a connection name for each database.

> QSqlDatabase rodb = QSqlDatabase::addDatabase(QStringLiteral("QSQLITE"), 
QStringLiteral("rodb"));
> rodb.setConnectOptions(QStringLiteral("QSQLITE_OPEN_READONLY");
> rodb.setDatabaseName(QStringLiteral("/full/path/to/ro_database.sqlite"));
>
> if (rodb.open()) {
>   QSqlQuery qro(rodb);
>   .
> }
>
> QSqlDatabase rwdb = QSqlDatabase::addDatabase(QStringLiteral("QSQLITE"), 
QStringLiteral("rwdb"));
> rwdb.setDatabaseName(QStringLiteral("/full/path/to/rw_database.sqlite"));
> if (rwdb.open()) {
>   QSqlQuery qrw(rwdb);
>   .
> }

Later on you can refer everywhere in your application to the databases by 
using the connection names (rodb and rwdb):

> QSqlDatabase rodb = QSqlDatabase::database(QStringLiteral("rodb"));
> QSqlQuery q(rodb);
> 


Best greetings
Matthias


[1] http://doc.qt.io/qt-5/qsqldatabase.html#addDatabase

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

Und der Buschfunk spielt gerade "Pikse Palve" von "In Extremo".

www.buschmann23.de
GPG-Key: 3A70A936614C3258
GPG Fingerprint: D786 DDF8 4CA9 00BC CDE0 9A5F CCC5 125D 6E87 D4FC

signature.asc
Description: This is a digitally signed message part.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] SQLite: ON DELETE CASCADE with Foreign Keys not working

2016-08-24 Thread Matthias Fehring
Hello Thomas,

I never used LocalStorage directly from QML/JS. I access the database from the 
C++ part. Your code looks like if you are using database transaction/commit.

But in C++ for me it did not work to set the PRAGMA if it is part of a 
database transaction. I have to execute it on its own, without transaction/
commit.

Best greetings
Matthias

Am Mittwoch, 24. August 2016, 14:45:13 CEST schrieb TE:
> Hello Matthias,
> 
> thanks for the quick reply! I access the database from the QML/JS
> domain. To open a connection I use the following function:
> 
> function instance()
> {
> var db = Storage.LocalStorage.openDatabaseSync("Db", "", "Nodes",
> 500);  /* DB Size: 5MB */
> db.transaction(function(tx) {
> tx.executeSql("PRAGMA foreign_keys = ON;");
> });
> return db
> }
> 
> The following test function
> 
> function queryForeignKeysEnabled()
> {
> instance().transaction(function(tx) {
> var rs = tx.executeSql("PRAGMA foreign_keys;");
> console.log(JSON.stringify(rs.rows.item(0)))
> });
> }
> 
> returns
> 
> {"foreign_keys":0}.
> 
> Can you map this implementation to your C++ code and tell the difference?
> 
> Cheers,
> Thomas
> 
> On 24.08.2016 13:54, Matthias Fehring wrote:
> > Hello Thomas,
> > 
> > for me foreign key support is working. Directly after establishing the
> > connection to the SQLite database (QSqlDatabase::open()) I use QSqlQuery
> > to
> > execute "PRAGMA foreign_keys = ON".
> > 
> > I think you have to do it every time you open a closed database, so I
> > implemented it in my database connection methods that it is executed if
> > the
> > database connection was closed before.
> > 
> > Best greetings
> > Matthias
> > 
> > Am Mittwoch, 24. August 2016, 12:39:04 CEST schrieb TE:
> >> Hello fellow devs,
> >> 
> >> I have two SQLite tables. The second table references a key from the
> >> first table as foreign key. Now when I delete a row in the first table I
> >> want all rows from the second table referencing the deleted key to be
> >> deleted as well. For this the action ON DELETE CASCADE seems to be
> >> appropriate. Unfortunately this doesn't work and the corresponding rows
> >> in the second table are *not* deleted.
> >> 
> >> Here are the table definitions:
> >> 
> >> First table:
> >> CREATE TABLE IF NOT EXISTS NodeMetaData (id INTEGER PRIMARY KEY,
> >> parentId INTEGER);
> >> 
> >> Second table:
> >> CREATE TABLE IF NOT EXISTS NodeConcreteData (refId INTEGER NOT NULL,
> >> FOREIGN KEY(refId) REFERENCES NodeMetaData(id) ON DELETE CASCADE);
> >> 
> >> In the sqlite docs, it is mentioned that foreign key support has to be
> >> acitvated. So I tried tx.executeSql("PRAGMA foreign_keys = ON;"). But
> >> the query tx.executeSql("PRAGMA foreign_keys;") returns 0.
> >> 
> >> When I recreate the scenario in an interactive SQLite session, the above
> >> works (PRAGMA foreign_keys = ON has to be executed).
> >> 
> >> Any ideas?
> >> Is the SFOS Qt lib compiled with foreign key support?
> >> What am I missing?
> >> 
> >> Many thanks in advance!
> >> Thomas
> >> ___
> >> SailfishOS.org Devel mailing list
> >> To unsubscribe, please send a mail to
> >> devel-unsubscr...@lists.sailfishos.org> 
> > ___
> > SailfishOS.org Devel mailing list
> > To unsubscribe, please send a mail to
> > devel-unsubscr...@lists.sailfishos.org


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

Und der Buschfunk spielt gerade "The Legend of Pai Mei" von "David Carradine 
and Uma Thurma".

www.buschmann23.de
GPG-Key: 0x614C3258
GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258


signature.asc
Description: This is a digitally signed message part.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] SQLite: ON DELETE CASCADE with Foreign Keys not working

2016-08-24 Thread Matthias Fehring
Hello Thomas,

for me foreign key support is working. Directly after establishing the 
connection to the SQLite database (QSqlDatabase::open()) I use QSqlQuery to 
execute "PRAGMA foreign_keys = ON".

I think you have to do it every time you open a closed database, so I 
implemented it in my database connection methods that it is executed if the 
database connection was closed before.

Best greetings
Matthias


Am Mittwoch, 24. August 2016, 12:39:04 CEST schrieb TE:
> Hello fellow devs,
> 
> I have two SQLite tables. The second table references a key from the
> first table as foreign key. Now when I delete a row in the first table I
> want all rows from the second table referencing the deleted key to be
> deleted as well. For this the action ON DELETE CASCADE seems to be
> appropriate. Unfortunately this doesn't work and the corresponding rows
> in the second table are *not* deleted.
> 
> Here are the table definitions:
> 
> First table:
> CREATE TABLE IF NOT EXISTS NodeMetaData (id INTEGER PRIMARY KEY,
> parentId INTEGER);
> 
> Second table:
> CREATE TABLE IF NOT EXISTS NodeConcreteData (refId INTEGER NOT NULL,
> FOREIGN KEY(refId) REFERENCES NodeMetaData(id) ON DELETE CASCADE);
> 
> In the sqlite docs, it is mentioned that foreign key support has to be
> acitvated. So I tried tx.executeSql("PRAGMA foreign_keys = ON;"). But
> the query tx.executeSql("PRAGMA foreign_keys;") returns 0.
> 
> When I recreate the scenario in an interactive SQLite session, the above
> works (PRAGMA foreign_keys = ON has to be executed).
> 
> Any ideas?
> Is the SFOS Qt lib compiled with foreign key support?
> What am I missing?
> 
> Many thanks in advance!
> Thomas
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


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

Und der Buschfunk spielt gerade "Was machen wir bloss" von "EL*KE".

www.buschmann23.de
GPG-Key: 0x614C3258
GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258


signature.asc
Description: This is a digitally signed message part.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

[SailfishDevel] Unreliable cover status

2016-08-23 Thread Matthias Fehring
Hello list,

the cover status information seems to be not reliable or faulty in Sailfish OS 
2.0.1.11. In some situation it ends up that Cover.status contains an undefined 
value. For example, if you put the application in the background. The cover 
than is visible and the expected status would be Cover.Active but it stuck at 
undefined.

In the last changelog [1] for version 2.0.2 I read the following entry:
* Fix Cover/ApplicationWindow instance visibility.

Is that addressing the issue?

Best greetings
Buschmann

[1] 
https://together.jolla.com/question/139609/changelog-202aurajoki/#139609-sailfishsilica-qt5

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

Und der Buschfunk spielt gerade "Mad Woman" von "Jerry Goldsmith".

www.buschmann23.de
GPG-Key: 0x614C3258
GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258


signature.asc
Description: This is a digitally signed message part.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Open source in-app ad API helper for QML - please, join

2016-06-02 Thread Matthias Fehring
My experiences with donations:

Many talk about but only really few do really donate. But this few mostly 
donates more as I would charge for selling the app.

For example, I had ocNews as paid app in the Ovi Store for Meego and I think 
it was in a price range of 1,99€ for Germany (other countries differed). After 
Ovi store was closed, I changed it to donation only app (it was open source 
all the time). The few people that did a donation for it gave mostly much more 
than the 1,99€ - most were 4 -5 €. But in the sum only a few really donated. 
(maybe around 10 people, so the donations did not even cover the costs for the 
beer I consumed while writing the app... ;)

Best greetings
Buschmann

Am Donnerstag, 2. Juni 2016, 20:27:58 CEST schrieb george b:
> Some experiences from me as a former iOS Developer:
> 
> - With a good payed app, one can earn a some money
> - A free app with InApp Payment for more features leads to more revenue on
> my apps
> - iAd leads to almost no revenue. On iOS one need several thousends of App
> installations to get just a little revenue
> 
> Can someone post some experiences with donations?!
> 
> 2016-05-31 19:49 GMT+02:00 Zoltán Lutor :
> > thx, I was aware of the post - unfortunatell I cannot participate because
> > I'll be in work.
> > Anyone of you, please, feel free to bring this topics up there.
> > 
> > 2016-05-31 17:33 GMT+02:00 Coley :
> >> Check out this topic over on together:
> >> 
> >> https://together.jolla.com/question/54157/sailfishos-open-source-collabor
> >> ation-meeting-planning/>> 
> >> On 31 May 2016 at 16:18,  wrote:
> >>> Good comment.
> >>> 
> >>> 
> >>> Newbie in community development, no experience with IRC... ;-)
> >>> 
> >>> Coley írta ekkor: 2016.05.31. 16:56
> >>> Why not propose it as a topic for the IRC meeting and attend?
> >>> There are normally a few Jolla people on it - and if nobody can answer
> >>> your question maybe they can take an AI to find the answer for you.
> >>> 
> >>> -Coley.
> >>> 
> >>> On 31 May 2016 at 15:46,  wrote:
>  I've tried to contact them already - even for getting invokved with the
>  development.
>  
>  
>  No reaction so far...
>  
>  Camil Bancioiu írta ekkor: 2016.05.31. 11:55
>  Hello Zoltan,
>  
>  I hope you will find help with your SDK. Not because I like ads (I
>  don't), but because the platform is free, and everybody should
>  implement
>  what they think it's best. But first, you should talk to Jolla, because
>  they're the ones that will eventually allow apps with your ad-SDK in
>  Harbour. And, depending on their philosphy and principles regarding
>  this
>  matter (yet unkown), they may approve of your SDK, or not. If apps
>  using
>  the ad-SDK won't be admitted on Harbour, it will be hard to earn money
>  through it, I think. Also, don't forget Jolla already has plans for
>  some
>  "SuperApps" or whatever they're called, which is basically sponsored
>  content. There may be some politics involved here, regarding ads in
>  normal
>  apps.
>  
>  Bottom line: ask Jolla if they will allow apps using the ad-SDK on
>  Harbour, and how does it relate to their already-planned sponsored
>  content
>  in the OS.
>  
>  Best regards,
>  Camil
>  
>  On Tuesday 31 May 2016 10:10:42 devel-requ...@lists.sailfishos.org
>  
>  wrote:
>  > Re: Open source in-app ad API helper for QML - please, join
>  
>  ___
>  SailfishOS.org Devel mailing list
>  To unsubscribe, please send a mail to
>  devel-requ...@lists.sailfishos.org
>  
>  
>  
>  ___
>  SailfishOS.org Devel mailing list
>  To unsubscribe, please send a mail to
>  devel-unsubscr...@lists.sailfishos.org
> >>> 
> >>> ___
> >>> SailfishOS.org Devel mailing list
> >>> To unsubscribe, please send a mail to
> >>> devel-unsubscr...@lists.sailfishos.org
> >> 
> >> ___
> >> SailfishOS.org Devel mailing list
> >> To unsubscribe, please send a mail to
> >> devel-unsubscr...@lists.sailfishos.org
> > 
> > ___
> > SailfishOS.org Devel mailing list
> > To unsubscribe, please send a mail to
> > devel-unsubscr...@lists.sailfishos.org


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

Und der Buschfunk spielt gerade "Wir Ham Noch Lange Nicht Genug" von "Böhse 
Onkelz".

www.buschmann23.de
GPG-Key: 0x614C3258
GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258


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

Re: [SailfishDevel] Device IP address

2016-05-11 Thread Matthias Fehring
Ifconfig seems to be only accessible by user root.

And I hoped for a more direct approach as QNetworkInterface::allAddresses :)

But I will then go with that.

Best greetings
Matthias Fehring

Am Donnerstag, 12. Mai 2016, 01:40:30 CEST schrieb E.S. Rosenberg:
> ifconfig?
> If QNetworkInterface is available you should have
> http://doc.qt.io/qt-5/qnetworkinterface.html#allAddresses
> 
> (I think it probably is since it's most likely part of qnetwork which is
> listed as available).
> 
> 2016-05-11 18:48 GMT+03:00 Matthias Fehring <buschm...@huessenbergnetz.de>:
> > Hello list,
> > 
> > I am searching for a way to get the currently used IP address of the
> > device.
> > Is there a Qt-way or some Sailfish/Mer specific API?
> > 
> > Best greetings
> > Matthias Fehring
> > 
> > --
> > Das Gesetz hat zum Schneckengang verdorben, was Adlerflug geworden wäre.
> > (Friedrich Schiller - Die Räuber)
> > 
> > Und der Buschfunk spielt gerade "Shadow Of The Dead" von "Anti-Flag".
> > 
> > www.buschmann23.de
> > GPG-Key: 0x614C3258
> > GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258
> > 
> > ___
> > SailfishOS.org Devel mailing list
> > To unsubscribe, please send a mail to
> > devel-unsubscr...@lists.sailfishos.org


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

Und der Buschfunk spielt gerade mal nichts...

www.buschmann23.de
GPG-Key: 0x614C3258
GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258


signature.asc
Description: This is a digitally signed message part.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

[SailfishDevel] Device IP address

2016-05-11 Thread Matthias Fehring
Hello list, 

I am searching for a way to get the currently used IP address of the device. 
Is there a Qt-way or some Sailfish/Mer specific API?

Best greetings
Matthias Fehring

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

Und der Buschfunk spielt gerade "Shadow Of The Dead" von "Anti-Flag".

www.buschmann23.de
GPG-Key: 0x614C3258
GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258


signature.asc
Description: This is a digitally signed message part.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

[SailfishDevel] Determine keyboard locale

2015-11-25 Thread Matthias Fehring
Hello list,

is there a way to query the locale of the currently used keyboard in QML?

Qt.inputMethod.locale.name returns only "C", whatever keyboard is used.

Best greetings
Matthias

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

Und der Buschfunk spielt gerade "Bis zum Mond" von "Muff Potter".

www.buschmann23.de
GPG-Key: 0x614C3258
GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258


signature.asc
Description: This is a digitally signed message part.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Clear cookies in SilicaWebView

2015-10-01 Thread Matthias Fehring
Hello Alex,

there are some experimental properties for QtWebKit, but i am not sure if it 
really works.

For your SilicaWebView:

import QtWebKit.experimental 1.0

and then in the SilicaWebView set:

experimental.preferences.privateBrowsingEnabled: true


Best greetings
Matthias


Am Donnerstag, 1. Oktober 2015, 21:49:03 schrieb Alexander Ladygin:
> Hello.
> 
> It seems that SilicaWebView is storing cookies when you use it (even
> offline). Is there any way to clear them? Or use privatebrowsing or
> something so when you close the page with it, it will clear all saved
> cookies?
> 
> Any advice?
> Thanks.
> 
> Alex.

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

Und der Buschfunk spielt gerade "Light My Fire (Bonus Track)" von "Amorphis".

www.buschmann23.de
GPG-Key: 0x614C3258
GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258


signature.asc
Description: This is a digitally signed message part.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Event view notifications app name

2015-09-27 Thread Matthias Fehring
Hey Matt,

big thank you for pointing me to the right docs. :)

Best greetings
Matthias


Am Samstag, 26. September 2015, 21:54:57 schrieb Matthew Vogt:
> Hi Mattias,
> 
> Your app's notifications are grouped according to the 'appName' property
> they supply at submission (if not provided, it will default to the name
> from your .desktop file, or the process name if necessary).
> 
> If you have the new SDK, the notification docs should be available in
> creator, otherwise the documentation source available here:
> https://github.com/nemomobile/lipstick/blob/master/doc/src/notifications.do
> x
> 
> SailfishOS is no longer using MNotification, although client applications
> could use it, or any other way to formulate notifications conforming to the
> Desktop Notifications Specification, defined here:
> https://people.gnome.org/~mccann/docs/notification-spec/notification-spec-l
> atest.html
> 
> You could use the libnemonotifications library (in the
> nemo-qml-plugnin-notifications package), which provides this class for
> formulating notifications:
> https://sailfishos.org/develop/docs/nemo-qml-plugin-notifications/libnemono
> tifications-notification.html/
> 
> Thanks,
> Matt
> 
> From: devel-boun...@lists.sailfishos.org
> [devel-boun...@lists.sailfishos.org] on behalf of Matthias Fehring
> [buschm...@huessenbergnetz.de] Sent: Saturday, September 26, 2015 1:20 AM
> To: devel@lists.sailfishos.org
> Subject: [SailfishDevel] Event view notifications app name
> 
> Hello list,
> 
> since Sailfish OS 1.1.9.28, notifications are grouped by the notificating
> application on the event view. I do not use MNotificationGroup. The "header"
> for my notifications is the name of my app's executable, what is not really
> nice. Is there a way to set this name?
> 
> In the sources of mlite it seems to me, that it generally useses the app's
> executable name via QFileInfo(QCoreApplication::arguments()[0]).fileName()
> [0]
> 
> Best greetings
> Matthias
> 
> [0]
> https://github.com/nemomobile/mlite/blob/master/src/mnotification.cpp#L281
> 
> --
> Das Gesetz hat zum Schneckengang verdorben, was Adlerflug geworden wäre.
> (Friedrich Schiller - Die Räuber)
> 
> Und der Buschfunk spielt gerade "Lieblingsstück" von "Crash Casino".
> 
> www.buschmann23.de
> GPG-Key: 0x614C3258
> GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

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

Und der Buschfunk spielt gerade "Noots" von "Sum 41".

www.buschmann23.de
GPG-Key: 0x614C3258
GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258


signature.asc
Description: This is a digitally signed message part.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

[SailfishDevel] Event view notifications app name

2015-09-25 Thread Matthias Fehring
Hello list,

since Sailfish OS 1.1.9.28, notifications are grouped by the notificating 
application on the event view. I do not use MNotificationGroup. The "header" 
for my notifications is the name of my app's executable, what is not really 
nice. Is there a way to set this name?

In the sources of mlite it seems to me, that it generally useses the app's 
executable name via QFileInfo(QCoreApplication::arguments()[0]).fileName() [0]

Best greetings
Matthias

[0] https://github.com/nemomobile/mlite/blob/master/src/mnotification.cpp#L281

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

Und der Buschfunk spielt gerade "Lieblingsstück" von "Crash Casino".

www.buschmann23.de
GPG-Key: 0x614C3258
GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258


signature.asc
Description: This is a digitally signed message part.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] translations and internationalisations

2015-03-20 Thread Matthias Fehring
Hey Stefan,

the ts file without language code extension is like a template file for 
further languages. That is the reason why it is not compiled into a qm file. 
It would only contain strings that already exist in your source code. So if 
you use qsTr with English as source language there is no need to translate 
this into english again.

English translations are needed if you want to have plural forms displayed 
correctly, but then there only the plurals have to be translated.

It would be different if you use qsTrId, because then there is no real source 
string inside the code. So in that case you would also need english 
translation files. But ts files without lang code would still be templates.

lupdate is, as you aspected, used for extracting translatable strings form the 
source code.

lrelease compiles ts text files into binary qm files that are used by 
QTranslator. [0]

If you want to have your app translated you need to install a translator as 
described in [0].

Best greetings
Buschmann

[0] http://doc.qt.io/qt-5/qtranslator.html

Am Freitag, 20. März 2015, 13:18:51 schrieb s...@bredband.net:
 Hi
 
 I created a new project, myapp, wich contain the following
 translations files
 
 harbour-myapp-de.ts
 
  About
 
 
 About
 
 harbour-myapp.ts
 
  About
 
  About
 
 About.qml pages looks like this
 
 
 Page {
 ..
 ..
 
  title: qsTr(About)
  }
 
 When I compile the
 project Qt have only built the de file, in
 ../build-harbour-myApp-MerSDK_SailfishOS_i486-Debug/translations/
 
 
 harbour-lapis-de.qm
 harbour-lapis-de.ts
 
 Should it not have built
 the other one as well, that is harbour-myapp.ts ?
 
 If I change the file
 harbour-myapp.ts (which i assume is the default one) into
 
 
 harbour-myapp.ts
 
  About
 
  About
  HELLO THERE
 
 Nothing happens on the
 screen, title: qsTr(About), still writes About and not HELLO THERE
 as expected.
 
 According to Qt homepage there are some tools, lupdate
 and lrelease mention but they are not installed in the Qt
 distribution
 and entering those at the command prompt gives error
 message.
 However lupdate/lrelease seems to be used for backward
 engineering text, lupdate extracts from the source code texts
 and
 create the .ts files, which is only useful when trying to
 internationalise an finished application.
 
 Is not qsTr using it's
 argument to look up in the .ts (.qm) files what text it should use in
 runtime?
 
 /Stefan

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

Und der Buschfunk spielt gerade Generation Nokia von Pascow.

www.buschmann23.de
GPG-Key: 0x614C3258
GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258


signature.asc
Description: This is a digitally signed message part.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

[SailfishDevel] Clear text predictions

2014-05-23 Thread Matthias Fehring
Hello list,

in my Transifex client Framrekkari I am loding next and previous source 
strings by simple exchanging the content of the Text area. But this keeps word 
predictions from previous entries active. Is there a way to clear the text 
prediction, too? The still appear if the text area contenent is set to  
(empty).

Best greetings
Buschmann

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

Und der Buschfunk spielt gerade mal nichts...

www.buschmann23.de
GPG-Key: 0x720AADE0


signature.asc
Description: This is a digitally signed message part.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Undocumented Silica components

2014-05-21 Thread Matthias Fehring
I am using GlassItem in Framrekkari and that is in official Jolla store. So it 
seems to be allowed. :)

Best greetings
Buschmann


Am Sonntag, 18. Mai 2014, 07:33:13 schrieb Kimmo Lindholm:
 Is the GlassItem still no-no ?
 
 On Monday 06 January 2014 01:16 Martin Jones wrote:
 
  Hi,
  
  As a general rule, if it’s not documented then it isn’t public API.
  
  The GlassItem API hasn’t been reviewed for public use. It will 
  probably change and is not safe for use.
 
 
 ___
 SailfishOS.org Devel mailing list
 To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

[SailfishDevel] In app advertisement in Harbour Apps

2014-03-08 Thread Matthias Fehring
Hello Sailors and Jolla Crew,

I have a question to the rules of the Jolla Harbour. Is advertisement allowed 
in Harbour apps?

Best greetings
Buschmann

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

Und der Buschfunk spielt gerade mal nichts...

www.buschmann23.de
GPG-Key: 0x720AADE0


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

[SailfishDevel] Show application content in cover on certain page

2014-02-27 Thread Matthias Fehring
Hello sailors,

if the cover is set to undefined it shows the current application content 
(like the Sailfish browser). But how to change between cover page and 
undefined?

For example, the app should show CoverBackground element on certain pages, but 
when it shows a WebView, it should show the content of the WebView.

If setting cover to undefined after it was initially set to a CoverPage only 
shows a basic cover, but not the WebView content.

Is there any way to achieve this?

Beste greetings
Buschmann

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

Und der Buschfunk spielt gerade Wenn Du jetzt denkst... von Broilers.

www.buschmann23.de
GPG-Key: 0x720AADE0


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

Re: [SailfishDevel] Local desktop files

2014-02-10 Thread Matthias Fehring
For the records:

lipstick launcher is only searching in /usr/share/applications for desktop 
icons.

See also https://github.com/nemomobile/lipstick/tree/master/src/components


Am Samstag, 8. Februar 2014, 14:21:12 schrieb Matthias Fehring:
 Hello,
 
 is it somehow possible to install local desktop files in locations like
 ~/.local/share/applications that are shown in the launcher?
 
 Trying to put some in that path or in ~/Desktop (with xdg-desktop-icon) does
 not show them up in the launcher. Seems that the launcher only observes
 /usr/share/applications for desktop files. Copying one there as root shows
 it up in the launcher. But that is not really good practice. Especially
 when the icons should be shortcuts to web pages.
 
 Best greetings
 Buschmann

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

Und der Buschfunk spielt gerade Ouverture 1812 Op. 49 von Berliner 
Philharmoniker.

www.buschmann23.de
GPG-Key: 0x720AADE0


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

[SailfishDevel] Local desktop files

2014-02-08 Thread Matthias Fehring
Hello,

is it somehow possible to install local desktop files in locations like 
~/.local/share/applications that are shown in the launcher?

Trying to put some in that path or in ~/Desktop (with xdg-desktop-icon) does 
not show them up in the launcher. Seems that the launcher only observes 
/usr/share/applications for desktop files. Copying one there as root shows it 
up in the launcher. But that is not really good practice. Especially when the 
icons should be shortcuts to web pages.

Best greetings
Buschmann



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

Und der Buschfunk spielt gerade Of Treasure von Alestorm.

www.buschmann23.de
GPG-Key: 0x720AADE0


signature.asc
Description: This is a digitally signed message part.
___
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

[SailfishDevel] Two executables and D-Bus interfaces in a package

2014-01-15 Thread Matthias Fehring

Hello,

I have a question concerning the harbour rules and the currently allowed 
stuff.


My application (http://ocnews.buschmann23.de) consists of two executable 
files. One is the frontend, the other one is a daemon/engine. Both are 
communicating through D-Bus, the daemon/engine is also started on request 
through D-Bus.


Now the harbour rules seems only to allow one executable per package. How to 
go around these problem? Creating two packages?


The other thing is the D-Bus interface of the daemon/engine. The new rpm 
validator in the SDK says, that it is not allowed to install files in 
/usr/share/dbus-1/interfaces and /usr/share/dbus-1/services.


Is there a solution for that or can it currently not published through Jolla 
Store when it uses it's own D-Bus interface?



Best greetings
Matthias
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Two executables and D-Bus interfaces in a package

2014-01-15 Thread Matthias Fehring

Thank you for the fast answer. The openrepos.net is the solution for me. :)

Best greetings
Matthias

Am 15.01.2014 23:43, schrieb Andrey Kozhevnikov:

D-Bus interfaces not allowed for harbour.
And you can use everything you want if dont need to go to harbour :)

On 16.01.2014 04:35, Matthias Fehring wrote:

Hello,

I have a question concerning the harbour rules and the currently allowed 
stuff.


My application (http://ocnews.buschmann23.de) consists of two executable 
files. One is the frontend, the other one is a daemon/engine. Both are 
communicating through D-Bus, the daemon/engine is also started on request 
through D-Bus.


Now the harbour rules seems only to allow one executable per package. How 
to go around these problem? Creating two packages?


The other thing is the D-Bus interface of the daemon/engine. The new rpm 
validator in the SDK says, that it is not allowed to install files in 
/usr/share/dbus-1/interfaces and /usr/share/dbus-1/services.


Is there a solution for that or can it currently not published through 
Jolla Store when it uses it's own D-Bus interface?



Best greetings
Matthias
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Two executables and D-Bus interfaces in a package

2014-01-15 Thread Matthias Fehring
Yes, I read that already yesterday or the day before and thougt that own 
D-Bus interfaces are allowed.

But then the result of the rpm validator is a bit irritating. :)

But I will try to submit it to harbour and will see what happens.

Am 15.01.2014 23:47, schrieb Gabriel Böhme:
I think DBUS is not restricted at all as far as I know, Bernd wrote the 
following some days ago:


This comment was about one specific DBus API (PackageKit), which will be
made unavailable to 3rd party applications soon to prevent unrequested
sideloading of RPM packages. An API designed for use by 3rd party
applications for this task will be made available.

DBus APIs generally are available to you if you have the right to acces
them from your application without raising the applications
privileges. PackageKit (hopefully) is the one big exception there at the
moment. We're trying to create additional documentation on stability of
DBus APIs to help you to avoid using an API which will still change a lot.

 Gabriel.

 Am 15.01.2014 23:43, schrieb Andrey Kozhevnikov:


D-Bus interfaces not allowed for harbour.
And you can use everything you want if dont need to go to harbour :)

On 16.01.2014 04:35, Matthias Fehring wrote:


Hello,

I have a question concerning the harbour rules and the currently allowed 
stuff.


My application (http://ocnews.buschmann23.de [1]) consists of two 
executable files. One is
the frontend, the other one is a daemon/engine. Both are communicating 
through D-Bus, the

daemon/engine is also started on request through D-Bus.

Now the harbour rules seems only to allow one executable per package. How 
to go around these

problem? Creating two packages?

The other thing is the D-Bus interface of the daemon/engine. The new rpm 
validator in the SDK
says, that it is not allowed to install files in 
/usr/share/dbus-1/interfaces and

/usr/share/dbus-1/services.

Is there a solution for that or can it currently not published through 
Jolla Store when it

uses it's own D-Bus interface?

Best greetings
Matthias
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list




Links:
--
[1] http://ocnews.buschmann23.de

___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Two executables and D-Bus interfaces in a package

2014-01-15 Thread Matthias Fehring
Ok, one should not go away to make food... :D So my other post is not 
relevant anymore...



Am 15.01.2014 23:50, schrieb Gabriel Böhme:

Ohh,...

 should read more careful, or stop watching videos next to it.^^ ;)

 Am 15.01.2014 23:48, schrieb Andrey Kozhevnikov:


we're talking about dbus interfaces, not apis :)

On 16.01.2014 04:47, Gabriel Böhme wrote:

I think DBUS is not restricted at all as far as I know, Bernd wrote the 
following some days ago:


This comment was about one specific DBus API (PackageKit), which will be
made unavailable to 3rd party applications soon to prevent unrequested
sideloading of RPM packages. An API designed for use by 3rd party
applications for this task will be made available.

DBus APIs generally are available to you if you have the right to acces
them from your application without raising the applications
privileges. PackageKit (hopefully) is the one big exception there at the
moment. We're trying to create additional documentation on stability of
DBus APIs to help you to avoid using an API which will still change a lot.

Gabriel.

Am 15.01.2014 23:43, schrieb Andrey Kozhevnikov:
D-Bus interfaces not allowed for harbour.
And you can use everything you want if dont need to go to harbour :)

On 16.01.2014 04:35, Matthias Fehring wrote:
Hello,

I have a question concerning the harbour rules and the currently allowed 
stuff.


My application (http://ocnews.buschmann23.de [1]) consists of two 
executable files. One is the
frontend, the other one is a daemon/engine. Both are communicating through 
D-Bus, the

daemon/engine is also started on request through D-Bus.

Now the harbour rules seems only to allow one executable per package. How 
to go around these

problem? Creating two packages?

The other thing is the D-Bus interface of the daemon/engine. The new rpm 
validator in the SDK
says, that it is not allowed to install files in 
/usr/share/dbus-1/interfaces and

/usr/share/dbus-1/services.

Is there a solution for that or can it currently not published through 
Jolla Store when it uses

it's own D-Bus interface?

Best greetings
Matthias
___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list



Links:
--
[1] http://ocnews.buschmann23.de

___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list