Hello,

Le vendredi 10 janvier 2014, Reto Zingg a écrit :
> lets take an other example ;-)
> 
> https://github.com/nemomobile/nemo-qml-plugin-dbus
> 
> which is not allowed as such in Harbour, so I had to add it:
> https://github.com/d0b3rm4n/harbour-simpletorch/tree/master/src/dbus
> 
> I had to make changes in plugin.cpp and qmldir and install it 
> accordingly (see dbus.pro, qmldir installs to 
> /usr/share/$NAME/lib/harbour/simpletorch/dbus, and lib to 
> /usr/share/$NAME/lib/).
> 
> In 
> https://github.com/d0b3rm4n/harbour-simpletorch/blob/master/src/harbour-simpletorch.cpp
>  
> I had to set the addImportPath to /usr/share/$NAME/lib/ and then I
> can import is in .qml files as:
> 
> import harbour.simpletorch.dbus 1.0
That's absolutely great. Thanks a lot for this, I should be able to sort
it out myself for my requirements now.

Thanks a lot and have a nice day,

Damien.
_______________________________________________
SailfishOS.org Devel mailing list

Reply via email to