Re: [SailfishDevel] Main qml file not found when Deploying

2015-03-04 Thread Andrey Kozhevnikov

show your pro file/link to github project.

05.03.2015 00:15, Antonio Mancini пишет:

When deploying my application as an RPM package i have this error:

[W] contextFactory:108 - Could not create scene graph context for 
device 'customcontext' - check that plugins are installed correctly in 
/usr/lib/qt5/plugins


[D] 
QWaylandEglClientBufferIntegration::QWaylandEglClientBufferIntegration:62 
- Using Wayland-EGL


[W] unknown:-1 - file:///usr/share/SailTris/qml/SailTris.qml: File not 
found



The path is correct
If i deploy copying binaries it works.

I have this in the cpp file, and i think is here that is called that 
qml file:


QScopedPointer app(SailfishApp::application(argc, 
argv));


QTranslator translator;
translator.load("translation_" + QLocale::system().name(),
"/usr/share/SailTris/i18n");
app->installTranslator(&translator);

QScopedPointer view(SailfishApp::createView());
view->setSource(SailfishApp::pathTo("qml/SailTris.qml"));
view->show();

return app->exec();

I have this problem after i updated the sdk, i looked through the 
changes i made to the app, but nothing seem like to be causing this 
problem.


Can someone help me?


___
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

Re: [SailfishDevel] Main qml file not found when Deploying

2015-03-06 Thread Andrey Kozhevnikov
Compiled and build project to rpm with no problems . Clean your build 
folder and do a fresh build.


06.03.2015 01:03, Antonio Mancini пишет:


This is the link to the .pro file on github

https://github.com/BillyHalley/SailTris/blob/master/SailTris.pro

Il gio mar 5 06:50:04 2015 GMT+0100, Andrey Kozhevnikov scrive:
> show your pro file/link to github project.
>
> 05.03.2015 00:15, Antonio Mancini пишет:
> > When deploying my application as an RPM package i have this error:
> >
> > [W] contextFactory:108 - Could not create scene graph context for
> > device 'customcontext' - check that plugins are installed correctly in
> > /usr/lib/qt5/plugins
> >
> > [D]
> > 
QWaylandEglClientBufferIntegration::QWaylandEglClientBufferIntegration:62

> > - Using Wayland-EGL
> >
> > [W] unknown:-1 - file:///usr/share/SailTris/qml/SailTris.qml: File not
> > found
> >
> >
> > The path is correct
> > If i deploy copying binaries it works.
> >
> > I have this in the cpp file, and i think is here that is called that
> > qml file:
> >
> > QScopedPointer app(SailfishApp::application(argc,
> > argv));
> >
> > QTranslator translator;
> > translator.load("translation_" + QLocale::system().name(),
> >  "/usr/share/SailTris/i18n");
> > app->installTranslator(&translator);
> >
> > QScopedPointer view(SailfishApp::createView());
> > view->setSource(SailfishApp::pathTo("qml/SailTris.qml"));
> > view->show();
> >
> > return app->exec();
> >
> > I have this problem after i updated the sdk, i looked through the
> > changes i made to the app, but nothing seem like to be causing this
> > problem.
> >
> > Can someone help me?
> >
> >
> > ___
> > SailfishOS.org Devel mailing list
> > To unsubscribe, please send a mail to 
devel-unsubscr...@lists.sailfishos.org 
<mailto: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

[SailfishDevel] Better SailfishOS SDK qmltypes updated for 1502

2015-03-09 Thread Andrey Kozhevnikov

Hello!

Just a small announce. 
https://github.com/CODeRUS/better-sailfishos-qmltypes was updated for 
1502 SDK. As usual if you didn't found any qml plugin qmltypes in my 
project, please let me know and i will add it!


Best regards,
Andrey Kozhevnikov
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Main qml file not found when Deploying

2015-03-10 Thread Andrey Kozhevnikov
sorry, but i still can compile, deploy and run it without any 
modifications in your code. Maybe you have no space left on device?


10.03.2015 16:25, Antonio Mancini пишет:
I managed to resolve the "main" qml issue, i moved everything to 
another directory and changed names to follow harbour standards but 
now it can't find other qml files, i tried Chris's solution but it 
won't help
I updated the source code on github: 
https://github.com/BillyHalley/SailTris


I still can "Deploy by Copying Binaries"
But when i do "Deploy as RPM Package"
I have this error:

[D] 
QWaylandEglClientBufferIntegration::QWaylandEglClientBufferIntegration:62 
- Using Wayland-EGL


[W] QQmlImportDatabase::registerPluginTypes:1875 - Module 
'Sailfish.Silica' does not contain a module identifier directive - it 
cannot be protected from external registrations.


[W] unknown:7 - 
file:///usr/share/harbour-sailtris/qml/harbour-sailtris.qml:7:30: Type 
FirstPage unavailable


initialPage: Component { FirstPage { } }

^

[W] unknown:21 - 
file:///usr/share/harbour-sailtris/qml/pages/FirstPage.qml:21:5: Type 
Functions unavailable


Functions {

^

[W] unknown:-1 - 
file:///usr/share/harbour-sailtris/qml/elements/Functions.qml: File 
not found


[W] QSGThreadedRenderLoop::handleExposure:882 - QSGThreadedRenderLoop: 
expose event received for window with invalid geometry.



Sometimes instead of Functions.qml it can't find Dot.qml..

Il lun mar 9 08:23:12 2015 GMT+0100, Chris Adams scrive:
> Hi Antonio,
>
> The files which are installed by an rpm package are listed in the 
%files directive of the .spec file.
> So, merely adding files to the .pro (eg in OTHER_FILES) variables of 
the qmake project, and installing via INSTALLS, is not enough.  You 
also need to ensure that your .spec (or, if you generate your .spec 
from a .yaml, then the .yaml) file has the files listed appropriately.

>
> eg:
>
> example.pro <http://example.pro> contains:
> // lines up here with target (lib or exe) information, build 
switches, etc

> OTHER_FILES += MyQmlType.qml
> import.files += MyQmlType.qml
> import.path = /path/to/import/dir
> INSTALLS += import
>
> %files
> /path/to/import/dir/MyQmlType.qml
>
> Note that harbour rules no doubt require some specific 
application-specific import directory to be defined and used by your app.

>
> Kind regards,
> Chris.
>
> 
> From: devel-boun...@lists.sailfishos.org 
<mailto:devel-boun...@lists.sailfishos.org> 
[devel-boun...@lists.sailfishos.org 
<mailto:devel-boun...@lists.sailfishos.org>] on behalf of Antonio 
Mancini [ziobill...@gmail.com <mailto:ziobill...@gmail.com>]

> Sent: Saturday, March 07, 2015 2:26 AM
> To: Sailfish OS Developers
> Subject: Re: [SailfishDevel] Main qml file not found when Deploying
>
> I tried but i still can't build, i can create an rpm but it seems 
that the rpm doesn't copy the files on the device while installing.

> I also tried installing previous version of SDK but it didn't work.
>
> 2015-03-06 15:47 GMT+01:00 Andrey Kozhevnikov 
<mailto:coderusin...@gmail.com><mailto:coderusin...@gmail.com 
<mailto:coderusin...@gmail.com>>>:
> Compiled and build project to rpm with no problems . Clean your 
build folder and do a fresh build.

>
> 06.03.2015 01:03, Antonio Mancini пишет:
>
> This is the link to the .pro file on github
>
> https://github.com/BillyHalley/SailTris/blob/master/SailTris.pro
>
> Il gio mar 5 06:50:04 2015 GMT+0100, Andrey Kozhevnikov scrive:
> > show your pro file/link to github project.
> >
> > 05.03.2015 00:15, Antonio Mancini пишет:
> > > When deploying my application as an RPM package i have this error:
> > >
> > > [W] contextFactory:108 - Could not create scene graph context for
> > > device 'customcontext' - check that plugins are installed 
correctly in

> > > /usr/lib/qt5/plugins
> > >
> > > [D]
> > > 
QWaylandEglClientBufferIntegration::QWaylandEglClientBufferIntegration:62

> > > - Using Wayland-EGL
> > >
> > > [W] unknown:-1 - file:///usr/share/SailTris/qml/SailTris.qml: 
File not

> > > found
> > >
> > >
> > > The path is correct
> > > If i deploy copying binaries it works.
> > >
> > > I have this in the cpp file, and i think is here that is called that
> > > qml file:
> > >
> > > QScopedPointer 
app(SailfishApp::application(argc,

> > > argv));
> > >
> > > QTranslator translator;
> > > translator.load("translation_" + QLocale::system().name(),
> > > "/usr/share/SailTris/i18n");
> > > 

Re: [SailfishDevel] Porting gphoto2 to Sailfish

2015-03-12 Thread Andrey Kozhevnikov

Hello!

SailfishOS using RPM, so this article fully apply: 
http://rpm5.org/docs/api/dependencies.html


11.03.2015 01:44, mikael.erkki...@web.de пишет:

Hello Sailfish developers,

I am newbie at developing but I would really like to contribute to this project.

I have started to port gphoto2 to sailfish/jolla and would hope to get some 
comments on how compiling and installing dependencies is  normally done. I have 
the feeling I did it quite straight-forward, without really knowing if this 
will work out or not. Especially having to use devel-su scares me because I 
don't want to corrupt my system.

See here:
https://together.jolla.com/question/86155/wiki-use-your-digital-camera-with-jolla-porting-gphoto2/

As next step I would try to install libltdl which is needed for gphoto. What 
are your thoughts?

Cheers
___
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

Re: [SailfishDevel] Porting gphoto2 to Sailfish

2015-03-12 Thread Andrey Kozhevnikov
inside sdk your host home folder is mounted to /home/mersdk/shared. you 
don't need to copy anything.


12.03.2015 13:25, mikael.erkki...@web.de пишет:

I tried with the sdk/emulator first via ssh on localhost. But somehow when I 
tried to copy the sources to the emulator via scp, something always went wrong. 
I tried via a shared folder in virtualbox but that somehow didn't work out 
either.
On the Jolla scp worked immediately, so I continued with that approach.

I'll have a look again on the emulator soon. I will inform you on the outcome.
Am Do. Mär. 12 09:11:37 2015 GMT+0100 schrieb Michele Tameni:

Before you mess up your system, why not install the sdk and get things done
safely on the emulator first?

2015-03-10 21:44 GMT+01:00 :


Hello Sailfish developers,

I am newbie at developing but I would really like to contribute to this
project.

I have started to port gphoto2 to sailfish/jolla and would hope to get
some comments on how compiling and installing dependencies is  normally
done. I have the feeling I did it quite straight-forward, without really
knowing if this will work out or not. Especially having to use devel-su
scares me because I don't want to corrupt my system.

See here:

https://together.jolla.com/question/86155/wiki-use-your-digital-camera-with-jolla-porting-gphoto2/

As next step I would try to install libltdl which is needed for gphoto.
What are your thoughts?

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




--
michele tameni


___
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

Re: [SailfishDevel] App won't start

2015-03-14 Thread Andrey Kozhevnikov

Hello,

You know, if you want to get help you need to show at least something 
and give more details about your application :)


15.03.2015 00:11, Peter Pykäläinen пишет:

Hi,

I have a strange problem.
I am developing an app and it works fine when launched from QtCreator 
or terminal.
But when trying to launch it by tapping the app icon, it starts, stays 
on the loading screen and then after a while dies.


Anyone else had similar issues?

// Peter Pykäläinen


___
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

Re: [SailfishDevel] App won't start

2015-03-14 Thread Andrey Kozhevnikov
show content of desktop file, main.cpp and spec/yaml also, but it will 
better to see at whole project tree on github or so, if your application 
is opensource.


15.03.2015 00:58, Peter Pykäläinen пишет:

Hi,

the app is pure QML app, nothing to it.
Main QML is like this:

importQtQuick2.0
import  Sailfish.Silica  1.0
import  "pages"
ApplicationWindow
{
 property  bool  isScramble:  false;
 property  bool  isGameOn:  false;
 property  bool  isMuted:  false
 property  int  score:  0;
 property  int  hexCount:  0
 initialPage:  Component  {  Game  {  }  }
 cover:  Qt.resolvedUrl("cover/CoverPage.qml")
}
I have the same kind of setup in every other app that I've done, and they work 
just fine.



// Peter Pykäläinen

On 14 March 2015 at 21:34, Andrey Kozhevnikov <mailto:coderusin...@gmail.com>> wrote:


Hello,

You know, if you want to get help you need to show at least
something and give more details about your application :)

15.03.2015 00:11, Peter Pykäläinen пишет:

Hi,

I have a strange problem.
I am developing an app and it works fine when launched from
QtCreator or terminal.
But when trying to launch it by tapping the app icon, it starts,
stays on the loading screen and then after a while dies.

Anyone else had similar issues?

// Peter Pykäläinen


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail todevel-unsubscr...@lists.sailfishos.org  
<mailto:devel-unsubscr...@lists.sailfishos.org>



___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to
devel-unsubscr...@lists.sailfishos.org
<mailto: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

Re: [SailfishDevel] App won't start

2015-03-14 Thread Andrey Kozhevnikov
Looks okay, ... if pro file did not touched also, your phone probably 
needs a reboot :)


15.03.2015 01:18, Peter Pykäläinen пишет:

This is the desktop file:

[DesktopEntry]
Type=Application
X-Nemo-Application-Type=silica-qt5
Icon=harbour-hextrap
Exec=harbour-hextrap
Name=Hex  Trap
#  translation  example:
#  your  app  name  in  German  locale  (de)
Name[de]=harbour-hextrap

This is the main.cpp:

#include  




int  main(int  argc,  char  *argv[])
{
 //  SailfishApp::main()  will  display  "qml/template.qml",  if  you  need 
 more
 //  control  over  initialization,  you  can  use:
 //
 //-  SailfishApp::application(int,  char  *[])  to  get  the  
QGuiApplication  *
 //-  SailfishApp::createView()  to  get  a  new  QQuickView  *  
instance
 //-  SailfishApp::pathTo(QString)  to  get  a  QUrl  to  a  resource  
file
 //
 //  To  display  the  view,  call  "show()"  (will  show  fullscreen  on  
device).


 return  SailfishApp::main(argc,  argv);
}

spec and yaml -files I have not touched, they are in their defaults.

Sorry this app is not it github



// Peter Pykäläinen

On 14 March 2015 at 22:03, Andrey Kozhevnikov <mailto:coderusin...@gmail.com>> wrote:


show content of desktop file, main.cpp and spec/yaml also, but it
will better to see at whole project tree on github or so, if your
application is opensource.

15.03.2015 00:58, Peter Pykäläinen пишет:

Hi,

the app is pure QML app, nothing to it.
Main QML is like this:

importQtQuick2.0
import  Sailfish.Silica  1.0
import  "pages"
ApplicationWindow
{
 property  bool  isScramble:  false;
 property  bool  isGameOn:  false;
 property  bool  isMuted:  false
 property  int  score:  0;
 property  int  hexCount:  0
 initialPage:  Component  {  Game  {  }  }
 cover:  Qt.resolvedUrl("cover/CoverPage.qml")
}
I have the same kind of setup in every other app that I've done, and they 
work just fine.



    // Peter Pykäläinen

On 14 March 2015 at 21:34, Andrey Kozhevnikov
mailto:coderusin...@gmail.com>> wrote:

Hello,

You know, if you want to get help you need to show at least
something and give more details about your application :)

15.03.2015 00:11, Peter Pykäläinen пишет:

Hi,

I have a strange problem.
I am developing an app and it works fine when launched from
QtCreator or terminal.
But when trying to launch it by tapping the app icon, it
starts, stays on the loading screen and then after a while dies.

Anyone else had similar issues?

// Peter Pykäläinen


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail todevel-unsubscr...@lists.sailfishos.org  
<mailto:devel-unsubscr...@lists.sailfishos.org>



___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to
devel-unsubscr...@lists.sailfishos.org
<mailto:devel-unsubscr...@lists.sailfishos.org>




___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail todevel-unsubscr...@lists.sailfishos.org  
<mailto:devel-unsubscr...@lists.sailfishos.org>



___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to
devel-unsubscr...@lists.sailfishos.org
<mailto: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

Re: [SailfishDevel] App won't start

2015-03-14 Thread Andrey Kozhevnikov

you can try to restart lipstick only

15.03.2015 01:28, Peter Pykäläinen пишет:

Yeah, that's what I thought too :)
Just too keen on my uptime!


// Peter Pykäläinen

On 14 March 2015 at 22:23, Andrey Kozhevnikov <mailto:coderusin...@gmail.com>> wrote:


Looks okay, ... if pro file did not touched also, your phone
probably needs a reboot :)

15.03.2015 01:18, Peter Pykäläinen пишет:

This is the desktop file:

[DesktopEntry]
Type=Application
X-Nemo-Application-Type=silica-qt5
Icon=harbour-hextrap
Exec=harbour-hextrap
Name=Hex  Trap
#  translation  example:
#  your  app  name  in  German  locale  (de)
Name[de]=harbour-hextrap

This is the main.cpp:

#include  




int  main(int  argc,  char  *argv[])
{
 //  SailfishApp::main()  will  display  "qml/template.qml",  if  you  
need  more
 //  control  over  initialization,  you  can  use:
 //
 //-  SailfishApp::application(int,  char  *[])  to  get  the  
QGuiApplication  *
 //-  SailfishApp::createView()  to  get  a  new  QQuickView  *  
instance
 //-  SailfishApp::pathTo(QString)  to  get  a  QUrl  to  a  resource  
file<
  /span>
// //Todisplaytheview,call"show()"(willshowfullscreenon device).
returnSailfishApp::main(argc,argv); }
spec and yaml -files I have not touched, they are in their defaults.

Sorry this app is not it github



// Peter Pykäläinen

On 14 March 2015 at 22:03, Andrey Kozhevnikov
mailto:coderusin...@gmail.com>> wrote:

show content of desktop file, main.cpp and spec/yaml also,
but it will better to see at whole project tree on github or
so, if your application is opensource.

15.03.2015 00:58, Peter Pykäläinen пишет:

Hi,

the app is pure QML app, nothing to it.
Main QML is like this:

importQtQuick2.0
import  Sailfish.Silica  1.0
import  "pages"
ApplicationWindow
{
 property  bool  isScramble:  false;
 property  bool  isGameOn:  false;
 property  bool  isMuted:  false
 property  int  score:  0;
 property  int  hexCount:  0
 initialPage:  Component  {  Game  {  }  }
 cover:  Qt.resolvedUrl("cover/CoverPage.qml")
}
I have the same kind of setup in every other app that I've done, and 
they work just fine.



// Peter Pykäläinen

On 14 March 2015 at 21:34, Andrey Kozhevnikov
mailto:coderusin...@gmail.com>> wrote:

Hello,

You know, if you want to get help you need to show at
least something and give more details about your
application :)

15.03.2015 00:11, Peter Pykäläinen пишет:

Hi,

I have a strange problem.
I am developing an app and it works fine when launched
from QtCreator or terminal.
But when trying to launch it by tapping the app icon,
it starts, stays on the loading screen and then after a
while dies.

Anyone else had similar issues?

// Peter Pykäläinen


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail 
todevel-unsubscr...@lists.sailfishos.org  
<mailto:devel-unsubscr...@lists.sailfishos.org>



___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to
devel-unsubscr...@lists.sailfishos.org
<mailto:devel-unsubscr...@lists.sailfishos.org>




___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail todevel-unsubscr...@lists.sailfishos.org  
<mailto:devel-unsubscr...@lists.sailfishos.org>



___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to
devel-unsubscr...@lists.sailfishos.org
<mailto:devel-unsubscr...@lists.sailfishos.org>




___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail todevel-unsubscr...@lists.sailfishos.org  
<mailto:devel-unsubscr...@lists.sailfishos.org>



___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to
devel-unsubscr...@lists.sailfishos.org
<mailto:devel-unsubscr...@lists.sailfishos.org>




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


_

Re: [SailfishDevel] App won't start

2015-03-15 Thread Andrey Kozhevnikov

it's systemctl --user restart lipstick

15.03.2015 16:31, Chris Walker пишет:

On Sat, 14 Mar 2015 23:33:06 +0200
Peter Pykäläinen  wrote:


Well that did it, thank you.


// Peter Pykäläinen

On 14 March 2015 at 22:55, Peter Pykäläinen
 wrote:


How do I do that?
Could you please send me the command?

If somebody in the future searches this thread because they have a
similar problem, it might have been helpful if the lipstick command had
appeared here too.
___
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

Re: [SailfishDevel] Debugging external libraries

2015-03-15 Thread Andrey Kozhevnikov
imho you need to install it to phone and debug contacts on device, not 
emulator?


15.03.2015 16:47, Dmitriy Purgin пишет:

Hi,

I'm struggling the whole day with this problem. Is there a way to 
debug a shared library not included to a project? In particular I'd 
like to see what's happening in nemomobile-qml-plugin-contacts-qt5.


I have the following sample code being executed in Sailfish Emulator:

import org.nemomobile.contacts 1.0

// ...

PeopleModel {
id: people
}

// ...

var p = people.personByPhoneNumber('somephonenumber');

I'm putting a break point on people.personByPhoneNumber() call and try 
to step in, and it doesn't work.


Prior to trying to step into the library code I've installed both 
nemomobile-qml-plugin-contacts-qt5-debuginfo and 
nemomobile-qml-plugin-contacts-qt5-debugsource to i486 target using Qt 
Creator's SailfishOS tab. After that stepping in didn't work. Then I 
pushed the 'sync' button  a couple of times to make sure it worked but 
it didn't.


Then I've logged into the build machine and installed these packages 
using zypper. Pushed the 'sync' button in Qt Creator but stepping in 
still didn't work. Interesting thing is though that the packages were 
installed as if there were no packages installed using Qt Creator.


I've looked into gdb output and saw that it sets substitute-path

SailfishOS/mersdk/targets/SailfishOS-i486/usr/src for /usr/src. I 
didn't have anything in 
SailfishOS/mersdk/targets/SailfishOS-i486/usr/src, in fact, I didn't 
have the src directory at all. It seems like the packages I've 
installed in the build machine were not synchonised with my host 
machine. I've done it with scp transfer but stepping in still doesn't 
work.



Could anyone please give me some hints on debugging external libraries 
or guide me to any resource explaining the process?



Thanks.


Cheers

Dmitriy Purgin




___
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

Re: [SailfishDevel] Debugging external libraries

2015-03-15 Thread Andrey Kozhevnikov
Yes i was thinking about no contacts case. As seaside is cached database 
it can not produce any calls if no contacts. Talking about debugging 
imho you need to build a static library to see what happening inside it. 
But i may be wrong.


15.03.2015 18:08, Dmitriy Purgin пишет:

Hi,

thanks for answering.

What difference does debugging on device or emulator make to debugging 
the contacts lib itself if the environment is set properly for both? 
The worst case you get is that it tells you that there are no contacts 
whatsoever. The question is not about debugging the contacts database 
but about the principles of debugging any shared library. The only 
reason I've brought the contacts lib as an example is because I'm 
working with it now.


So in this case I'd like to trace the execution of 
personByPhoneNumber(). In other words, step into 
seasidefiltermodel.cpp and look what's happening 
inSeasideFilteredModel::personByPhoneNumber and further 
seasidecache.cpp's SeasideCache::itemByPhoneNumber, and so on.


Cheers
Dmitriy

2015-03-15 18:00 GMT+06:00 Andrey Kozhevnikov <mailto:coderusin...@gmail.com>>:


imho you need to install it to phone and debug contacts on device,
not emulator?

15.03.2015 16:47, Dmitriy Purgin пишет:

Hi,

I'm struggling the whole day with this problem. Is there a way to
debug a shared library not included to a project? In particular
I'd like to see what's happening in
nemomobile-qml-plugin-contacts-qt5.

I have the following sample code being executed in Sailfish Emulator:

import org.nemomobile.contacts 1.0

// ...

PeopleModel {
id: people
}

// ...

var p = people.personByPhoneNumber('somephonenumber');

I'm putting a break point on people.personByPhoneNumber() call
and try to step in, and it doesn't work.

Prior to trying to step into the library code I've installed both
nemomobile-qml-plugin-contacts-qt5-debuginfo and
nemomobile-qml-plugin-contacts-qt5-debugsource to i486 target
using Qt Creator's SailfishOS tab. After that stepping in didn't
work. Then I pushed the 'sync' button  a couple of times to make
sure it worked but it didn't.

Then I've logged into the build machine and installed these
packages using zypper. Pushed the 'sync' button in Qt Creator but
stepping in still didn't work. Interesting thing is though that
the packages were installed as if there were no packages
installed using Qt Creator.

I've looked into gdb output and saw that it sets substitute-path

SailfishOS/mersdk/targets/SailfishOS-i486/usr/src for /usr/src. I
didn't have anything in
SailfishOS/mersdk/targets/SailfishOS-i486/usr/src, in fact, I
didn't have the src directory at all. It seems like the packages
I've installed in the build machine were not synchonised with my
host machine. I've done it with scp transfer but stepping in
still doesn't work.


Could anyone please give me some hints on debugging external
libraries or guide me to any resource explaining the process?


Thanks.


Cheers

Dmitriy Purgin




___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail todevel-unsubscr...@lists.sailfishos.org  
<mailto:devel-unsubscr...@lists.sailfishos.org>



___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to
devel-unsubscr...@lists.sailfishos.org
<mailto: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

Re: [SailfishDevel] Update previous page

2015-03-17 Thread Andrey Kozhevnikov
pageStack.push returning you page object, so you can interact with it. 
for example:


var dialog = pageStack.push(Qt.resolvedUrl("SomeDialog.qml"))
dialog.readPropertyChanged.connect(function() { 
markAsRead(dialog.readProperty) })


or you can use signal inside your page instead of property.

17.03.2015 17:01, Florian Desneux пишет:

Hello,

I'm wondering how can I refresh the page when the little white round 
in the corner is clicked or a swipe left to right from the corner is 
triggered?


Meaning: I'm on my 3th app page, I trigger an action (i.e. mark as 
read the file), I go back to my 2th page on which there is a list of 
files. How can I update the list's item (the file) so it's displayed 
as 'read' (i.e. with an eye icon)?


Summary: How can I pass back some properties? (Those three questions 
are the same ;) ).


Regards,
--
*Florian Desneux*


___
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

Re: [SailfishDevel] Update previous page

2015-03-17 Thread Andrey Kozhevnikov
No, you wrong. In your link read " Connecting Signals to Methods and 
Signals".


17.03.2015 19:11, Florian Desneux пишет:

Great news: I succeed it :) Thanks Andrey!

Side note: dialog.readPropertyChanged should be 
dialog.*_on_*ReadPropertyChanged (see 
http://doc.qt.io/qt-5/qtqml-syntax-signals.html) for people who want 
to achieve this in the future.


2015-03-17 14:07 GMT+01:00 Florian Desneux >:


I'm afraid I don't understand or I'm doing my stuff in the wrong
way...

I think I must read some documentation about signal...

Andrey: Your example suggests that I need a property readProperty
on my 3th page and connect it to a signal still on my 3th page so
my second page is aware if the change? No clue on how to do this
but I will have a read :)

Thanks

2015-03-17 13:23 GMT+01:00 François mailto:daithe...@free.fr>>:

Hi Florian,

When you mark a file as read, your model should be updated and
the list on the previous page should be updated accordingly
(this is done automatically).

Hope this can help you.

À mar. mars 17 13:01:04 2015 GMT+0100, Florian Desneux a écrit :
> Hello,
>
> I'm wondering how can I refresh the page when the little
white round in the
> corner is clicked or a swipe left to right from the corner
is triggered?
>
> Meaning: I'm on my 3th app page, I trigger an action (i.e.
mark as read the
> file), I go back to my 2th page on which there is a list of
files. How can
> I update the list's item (the file) so it's displayed as
'read' (i.e. with
> an eye icon)?
>
> Summary: How can I pass back some properties? (Those three
questions are
> the same ;) ).
>
> Regards,
> --
> *Florian Desneux*
>

--
François
Envoyé depuis mon Jolla
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to
devel-unsubscr...@lists.sailfishos.org





-- 
*Florian Desneux*





--
*Florian Desneux*


___
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

Re: [SailfishDevel] qml dbus send SMS

2015-03-17 Thread Andrey Kozhevnikov

you need to use different method:

smsIf.typedCall("startSMS", [{"type":"as", "value":[""]}, {"type":"s", 
"value":smsText.text}])


17.03.2015 23:49, Michael Fuchs пишет:

Hi there,

this is my first post in this list, so hello to everyone.

I want to write a small App, which helps writing SMS for booking a parking
ticket in Vienna/Austria and later other cities as well.

As i read the recommended way for sending messages from qml is using
dbus. I found this command for the command line, which works:

$ dbus-send --type=method_call --dest=org.nemomobile.qmlmessages / \
  org.nemomobile.qmlmessages.startSMS array:string:"+358123456" \
string:"Hello world"

dbus-monitor shows:
method call sender=:1.41 -> dest=org.nemomobile.qmlmessages serial=2
path=/; interface=org.nemomobile.qmlmessages; member=startSMS
array [
   string "+358123456"
]
   string "Hello world"


So in qml I made a

DBusInterface {
 id: smsIf
 service: "org.nemomobile.qmlmessages"
 iface: "org.nemomobile.qmlmessages"
 path: "/"
}

and called the method

smsIf.call("startSMS", [[""], "smsText.text"])

The output of dbus-monitor say "no such method".

method call sender=:1.39 -> dest=org.nemomobile.qmlmessages serial=7 path=/;
interface=org.nemomobile.qmlmessages; member=startSMS
array [
   variant  string "+12312312312"
]
string "Hello World"
error sender=:1.32 -> dest=:1.39
error_name=org.freedesktop.DBus.Error.UnknownMethod reply_serial=7
string "No such method 'startSMS' in interface 'org.nemomobile.qmlmessages'
at object path '/' (signature 'avs')"

Is it just the wrong type of the first argument?
But how can I pass the proper type? (Array of strings)
Or is ther some general error?

Thanks for your help,

Michael.
___
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] Javascript Object problem

2015-03-19 Thread Andrey Kozhevnikov

Hello!

Can someone help me to understand why this simple code working bad: 
https://gist.github.com/CODeRUS/3911cfe69ab9866e99da
Just click on "Add" button and compare input and result id inside 
Object. It's different.


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


Re: [SailfishDevel] Javascript Object problem

2015-03-20 Thread Andrey Kozhevnikov

Sorry, you understand my problem totally wrong.

20.03.2015 16:55, Luis Manuel Ramos Da Costa пишет:
I don't know if this can help, but Javascript and QML work in separate 
process, and because of this any variable change on JS to be read in 
QML (or vice-versa) should be readed using a onXXXChanged (XXX bein 
the variable name).


I had a similar problem with reading values from a JSON object, where 
the QML was returning -1 from a variable where the value number, 100 
for example, was already lodaded.


2015-03-19 12:50 GMT+00:00 Andrey Kozhevnikov <mailto:coderusin...@gmail.com>>:


Hello!

Can someone help me to understand why this simple code working
bad: https://gist.github.com/CODeRUS/3911cfe69ab9866e99da
Just click on "Add" button and compare input and result id inside
Object. It's different.

Best regards,
Andrey
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to
devel-unsubscr...@lists.sailfishos.org
<mailto: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

Re: [SailfishDevel] Javascript Object problem

2015-03-21 Thread Andrey Kozhevnikov

this solution is acceptable for me and works fine, thank you!

21.03.2015 15:38, jklingen пишет:

Hi Andrey,

this works as expected when prefixing the object key with a character, 
e.g.


temp["id-" + objid.text]=  {"case":  "test"}

My assumption is that at some point the key is implicitely converted 
to a number, and your object ends up as array, causing strange things 
when indexes are getting too large.


Best regards,
Jens


Am 19.03.2015 um 13:50 schrieb Andrey Kozhevnikov:

Hello!

Can someone help me to understand why this simple code working bad: 
https://gist.github.com/CODeRUS/3911cfe69ab9866e99da
Just click on "Add" button and compare input and result id inside 
Object. It's different.


Best regards,
Andrey
___
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

Re: [SailfishDevel] App Setting Integration

2015-03-26 Thread Andrey Kozhevnikov
I hope SailfishOS 2.0 will not have these settings at all, as most of 
users just dont know about it.


26.03.2015 22:50, Hugo Osvaldo Barrera пишет:

Hi,

Around a year ago, the subject of application integrating into Settings>Apps
(which is were we'd logically expect applications to house their settings).

The response at the time was that harbour forbid this, since there was a
possible security issue on behalf of the settings app:

   https://lists.sailfishos.org/pipermail/devel/2013-December/002164.html

Has any advance been made on this? Is it even in the works?
It's really bad for third-party apps to be unable to integrate into the OS as
well as Jolla's, forcing ugly workarounds that never feel quite right.

Thanks,



___
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

Re: [SailfishDevel] Stripping -O2 from debug builds

2015-03-30 Thread Andrey Kozhevnikov

Hello,

i found this:
https://github.com/sailfish-sdk/sailfish-qtcreator/blob/next/src/libs/cplusplus/cplusplus.pro

30.03.2015 14:35, Dmitriy Purgin пишет:

Hi again,

I've tried to invoke remote qmake from terminal and it worked as 
expected. I've set up Mer-related environment variables to the same 
values as build environment in Qt Creator, then invoked qmake from 
mer-sdk-tools with the same parameters as Qt Creator shows in Compile 
output. Qmake of mer-sdk-tools does effectively call merssh passing 
qmake params. The generated Makefiles do not contain -O2 switch for 
debug builds just as expected. I could go this way but Qt Creator seem 
to always regenerate makefiles.


The funny thing is that I've built sailfish-qtcreator and traced the 
build steps using debugger. It seems that qmake invokation doesn't 
contain any extra params, in other words it is the same call as I did 
on terminal. But nevertheless the output Makefiles did contain CFLAGS 
mentioned in my previous mail.


I'd really appreciate if anyone could give me some direction to look into.

Cheers
Dmitriy Purgin


2015-03-29 0:30 GMT+06:00 Dmitriy Purgin >:


Hi all,

is there any way to prevent optimization switch -O2 being set when
Makefile is generated for debug builds? I've looked into
linux-g++-32 and its includes of Mer SDK but didn't find any clues
regarding why -O2 is set for debug build. This switch as well as
-g are nicely managed by QMAKE_CXXFLAGS_RELEASE and
QMAKE_CXXFLAGS_DEBUG (-O2 appears in former, -g appears in latter)
but for some reason they both end up in the command line of actual
compilation. I've grepped everything in mkspecs directory
recursively but it seems like -O2 and -g are always divided into
_RELEASE and _DEBUG respectively.

Then I've added -d switch to qmake call on the Project page of
sailfish-qtcreator and after parsing default_pre.prf it outputs
the following lines:

DEBUG 1: (command line):65535: QMAKE_CFLAGS_RELEASE := -O2 -g
-pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -Wformat -Wformat-security -m32
-march=i486 -fasynchronous-unwind-tables

DEBUG 1: (command line):65535: QMAKE_CFLAGS_DEBUG := -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -Wformat -Wformat-security -m32
-march=i486 -fasynchronous-unwind-tables


does that mean that both -O2 and -g are forced somewhere in
Salifish SDK tools when calling qmake? Is there any way to turn
off -O2 for debug builds?

Cheers
Dmitriy Purgin




___
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

Re: [SailfishDevel] socket.io client

2015-04-03 Thread Andrey Kozhevnikov

Hello

https://qt.gitorious.org/qt/qtwebsockets can be compiled with Qt5.2 with 
no any problems


Regards

03.04.2015 22:53, Samuli Silvius пишет:

Hi,

How to implement socket.io  1.x client with Qt and Qml?

Found some alternatives from github:
https://github.com/misterion/qml-websocket
https://github.com/KurtPattyn/QtSocketIo

Br
-Samuli


___
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

Re: [SailfishDevel] Neo900 support

2015-04-05 Thread Andrey Kozhevnikov
You should make sailfishos port to your Neo900 yourself or just wait 
until someone will do it for themselves. Jolla not making own 
adaptations to any devices, only giving assistance.


05.04.2015 11:12, Schifano Alexandre пишет:

Hi,

I'm very interrested by Sailfish OS, however I'm also very interrested
by the Neo900. This smartphone is a modified Nokia N900, with a TI
DM3730 1 GHz processor (Cortex-A8 with ARMv7-A instructions, mono-core)
and 1GB of RAM (more here : http://neo900.org/specs). Do you think
Sailfish will be able to run smoothly on it ? Will you support the
Neo900 and allowing users to install your OS on it ?

Best regards,
Alexandre Schifano
___
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

Re: [SailfishDevel] Neo900 support

2015-04-06 Thread Andrey Kozhevnikov
Sailfish is Jolla UI over Mer with Wayland Lipstick windows manager. It 
runs on normal Linux kernel. Android adaptations using libhybris.
If you can run Nemo on your device you can just add/replace Jolla 
repositories and "install" sailfish on it.
You will not have possibility to install android apps until someone will 
create open android launcher or Jolla start licensing aliendalvik for 
non-Jolla devices.


06.04.2015 17:48, Schifano Alexandre пишет:

Hi,

Still about a Neo900 support, I have an other question :

As far as I understand, basically Sailfish is Mer (Wayland version) with
the Jolla UI, and with an Android kernel and libhybris. So if I am able
to have Nemo running rightly on a N(eo)900 with Wayland, I will be able
to run Sailfish apps ? And if I am able to do it with an Android kernel
and libhybris, I will be able to have it working with the possibility to
install Android apps ?

Best regards

On 05/04/2015 08:12, Schifano Alexandre wrote:

Hi,

I'm very interrested by Sailfish OS, however I'm also very interrested
by the Neo900. This smartphone is a modified Nokia N900, with a TI
DM3730 1 GHz processor (Cortex-A8 with ARMv7-A instructions, mono-core)
and 1GB of RAM (more here : http://neo900.org/specs). Do you think
Sailfish will be able to run smoothly on it ? Will you support the
Neo900 and allowing users to install your OS on it ?

Best regards,
Alexandre Schifano
___
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

Re: [SailfishDevel] open source app development and community participation

2015-04-07 Thread Andrey Kozhevnikov
i can suggest you to join #sailfishos channel on freenode, we have 
interesting developer talks here


08.04.2015 02:05, Andrin Bertschi пишет:

Hi there,

I dont know whether this question fits into this place here but I just try my 
best and ask it here now.

I am a 20 years old software developer from Switzerland and relatively new to 
the Sailfish platform.
I recently published my first app on the harbour store and now I am keenly 
interested in further
app development and community participation.

I would love to participate to an open source app on an ongoing basis, get in 
touch with other people, talk about challenges, bugs or features and just to be 
part of something, targeting to make the world a tiny bit better place :^).

Until now, I found it quite difficult to get to know people for a new app 
project or general speaking, get in touch with the community and thought that 
could help me if I write here on the mailing list.

Regards from Switzerland, andrin


___
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

Re: [SailfishDevel] I want to port sailfish os to my Samsung phone

2015-04-15 Thread Andrey Kozhevnikov

Take a look at this: https://sailfishos.org/develop/hadk/

15.04.2015 12:25, Zaid Sayed пишет:


Hey there just want to know if theres a way to port sailfish os to 
samsung s3 (gt-19300).




___
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

Re: [SailfishDevel] Running application with customized environment using invoker

2015-04-22 Thread Andrey Kozhevnikov
In Qt Creator: Projects - Run - Run Environment 
http://i.imgur.com/FArKbn2.png


22.04.2015 13:23, Dmitriy Purgin пишет:

Hi all,

I'm trying to make a .desktop file that launches an application with 
customized LANG environment variable. I came up with the following 
.desktop file (irrelevant entries removed):


[Desktop Entry]
Type=Application
X-Nemo-Application-Type=no-invoker
Exec=app-launcher.sh

app-launcher.sh is an executable bash script (irrelevant statements 
removed):


#!/bin/bash

LOCALE=ru_RU
LANG=$LOCALE appbin

This all works fine until I use the invoker. I've added invoker to 
launcher script like this:


#!/bin/bash

LOCALE=ru_RU # real code has some checks to detect desired locale
LANG=$LOCALE invoker --type=silica-qt5 appbin

Now the app starts with specified locale but lipstick shows two 
windows upon tapping on app icon: the first one appears immediately 
upon launch, it shows loading indicator for some time, then 
disappears. The second one is the actual app launched by invoker but 
it is always minimized.


I guess there's no way to modify environment in .desktop file.

I've also taken a quick look at invoker sources and it seems it can't 
modify the environment for the application to be boosted either.


Can anyone please guide me if there is a way to do both: change 
application environment and boost it with invoker?


Thanks in advance!

Cheers
Dmitriy Purgin


___
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

Re: [SailfishDevel] Running application with customized environment using invoker

2015-04-22 Thread Andrey Kozhevnikov

oh sorry, then you can use qputenv function in your main cpp file

22.04.2015 16:38, Dmitriy Purgin пишет:

Hi Andrey,

I was referring to launching the application with .desktop files. As 
you surely know these reside in /usr/share/applications and are used 
to display applications to user, so that the user could run the 
application by clicking on its icon in Launcher view. I'm talking 
about changing environment of app deployed at end-user device.


Regards
Dmitriy Purgin

2015-04-22 17:31 GMT+06:00 Andrey Kozhevnikov <mailto:coderusin...@gmail.com>>:


In Qt Creator: Projects - Run - Run Environment
http://i.imgur.com/FArKbn2.png

22.04.2015 13:23, Dmitriy Purgin пишет:

Hi all,

I'm trying to make a .desktop file that launches an application
with customized LANG environment variable. I came up with the
following .desktop file (irrelevant entries removed):

[Desktop Entry]
Type=Application
X-Nemo-Application-Type=no-invoker
Exec=app-launcher.sh

app-launcher.sh is an executable bash script (irrelevant
statements removed):

#!/bin/bash

LOCALE=ru_RU
LANG=$LOCALE appbin

This all works fine until I use the invoker. I've added invoker
to launcher script like this:

#!/bin/bash

LOCALE=ru_RU # real code has some checks to detect desired locale
LANG=$LOCALE invoker --type=silica-qt5 appbin

Now the app starts with specified locale but lipstick shows two
windows upon tapping on app icon: the first one appears
immediately upon launch, it shows loading indicator for some
time, then disappears. The second one is the actual app launched
by invoker but it is always minimized.

I guess there's no way to modify environment in .desktop file.

I've also taken a quick look at invoker sources and it seems it
can't modify the environment for the application to be boosted
either.

Can anyone please guide me if there is a way to do both: change
application environment and boost it with invoker?

Thanks in advance!

Cheers
Dmitriy Purgin


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail todevel-unsubscr...@lists.sailfishos.org  
<mailto:devel-unsubscr...@lists.sailfishos.org>



___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to
devel-unsubscr...@lists.sailfishos.org
<mailto: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

Re: [SailfishDevel] Running application with customized environment using invoker

2015-04-22 Thread Andrey Kozhevnikov

This is my solution for you:


QLocale locale("fi_FI");
QLocale::setDefault(locale);
translator.load(locale, "sailfishsilica-qt5", "", 
"/usr/share/translations", "");


23.04.2015 08:55, Dmitriy Purgin пишет:

Hi,

thanks for reply.

I do install custom translations with 
QApplication::installTranslator() and it does work on Sailfish but as 
I mentioned before formatting facilities and system messages stay in 
OS language.


Regards

2015-04-23 0:07 GMT+06:00 Ove Kåven >:


Den 22. april 2015 18:56, skrev Dmitriy Purgin:

$ LANG=ru_RU invoker --type=silica-qt5 appbin

does not  change the app locale, it behaves as if there were no
LANG=ru_RU at all. So does QLocale::setDefault().


I think setting environment variables and calling
QLocale::setDefault only works if Qt has not yet been initialized.
Since the invoker has already initialized Qt, changing the default
locale is probably impossible.

It seems possible to force Qt to use different translations,
though, with QApplication::installTranslator. Just load the
necessary Russian translations and install them, and Qt will use
them. There's an example on
http://wiki.qt.io/How_to_create_a_multi_language_application, but
not sure how it would work on Sailfish...


___
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

Re: [SailfishDevel] Bug in Page component?

2015-04-23 Thread Andrey Kozhevnikov

Your example is works for me.

23.04.2015 13:54, Fedor Zaitsev пишет:
 
 MouseArea {

 anchors.fill: parent
 onClicked: anim.start()
 }
 
 PropertyAnimation {

 id: anim
 target: rect
 property: "color"
 to: "green"
 duration: 2000
 running: false
 }
 
 Timer {

 id: timer
 repeat: true
 running: true
 }


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

Re: [SailfishDevel] Bug in Page component?

2015-04-23 Thread Andrey Kozhevnikov
Also in your case it's better ti use ColorAnimation as Behaviour and do 
not start animations manually:


Behavior on color {
ColorAnimation { duration: 2000 }
}

MouseArea {
anchors.fill: parent
onClicked: rect.color = "green"
}

23.04.2015 13:54, Fedor Zaitsev пишет:
 
 MouseArea {

 anchors.fill: parent
 onClicked: anim.start()
 }
 
 PropertyAnimation {

 id: anim
 target: rect
 property: "color"
 to: "green"
 duration: 2000
 running: false
 }
 
 Timer {

 id: timer
 repeat: true
 running: true
 }


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

Re: [SailfishDevel] Running application with customized environment using invoker

2015-04-24 Thread Andrey Kozhevnikov
So, you install multiple translators, not load multiple times, and it 
will work.


24.04.2015 20:23, Dmitriy Purgin пишет:

Hi Andrey,

thanks for suggestion. Unfortunately, according to Qt documentation 
for QTranslator::load():


> The previous contents of this translator object are discarded.

So you load either sailfishsilica-qt5 or strings for your application.

Regards
Dmitriy


2015-04-23 11:01 GMT+06:00 Andrey Kozhevnikov <mailto:coderusin...@gmail.com>>:


This is my solution for you:


QLocale locale("fi_FI");
QLocale::setDefault(locale);
translator.load(locale, "sailfishsilica-qt5", "",
"/usr/share/translations", "");

23.04.2015 08:55, Dmitriy Purgin пишет:

Hi,

thanks for reply.

I do install custom translations with
QApplication::installTranslator() and it does work on Sailfish
but as I mentioned before formatting facilities and system
messages stay in OS language.

Regards

2015-04-23 0:07 GMT+06:00 Ove Kåven mailto:o...@arcticnet.no>>:

Den 22. april 2015 18:56, skrev Dmitriy Purgin:

$ LANG=ru_RU invoker --type=silica-qt5 appbin

does not  change the app locale, it behaves as if there
were no
LANG=ru_RU at all. So does QLocale::setDefault().


I think setting environment variables and calling
QLocale::setDefault only works if Qt has not yet been
initialized. Since the invoker has already initialized Qt,
changing the default locale is probably impossible.

It seems possible to force Qt to use different translations,
though, with QApplication::installTranslator. Just load the
necessary Russian translations and install them, and Qt will
use them. There's an example on
http://wiki.qt.io/How_to_create_a_multi_language_application,
but not sure how it would work on Sailfish...


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to
devel-unsubscr...@lists.sailfishos.org
<mailto:devel-unsubscr...@lists.sailfishos.org>




___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail todevel-unsubscr...@lists.sailfishos.org  
<mailto:devel-unsubscr...@lists.sailfishos.org>



___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to
devel-unsubscr...@lists.sailfishos.org
<mailto: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

Re: [SailfishDevel] Running application with customized environment using invoker

2015-04-24 Thread Andrey Kozhevnikov
check which translation contains missed strings and install it with 
translators also, i just greped translations folder myself to find this 
sailfishsilica-qt5.


24.04.2015 21:25, Dmitriy Purgin пишет:

Thanks, didn't look at the QCoreApplication::installTranslator().

I used the sample piece you provided as follows (mind dash as prefix):

translator.load(locale, "sailfishsilica-qt5", "-", 
"/usr/share/translations");


Anyway, it seems to do only part of the job, which is strange 
considering it contains all the strings needed. E.g. I get days of 
week translated, but months aren't, as well as remorse "in %1 seconds" 
text.


Since startup time is not crucial for me at the moment I'll check on 
that whole invoker stuff some time later. Thanks for your help!


Cheers

2015-04-24 21:37 GMT+06:00 Andrey Kozhevnikov <mailto:coderusin...@gmail.com>>:


So, you install multiple translators, not load multiple times, and
it will work.

24.04.2015 20:23, Dmitriy Purgin пишет:

Hi Andrey,

thanks for suggestion. Unfortunately, according to Qt
documentation for QTranslator::load():

> The previous contents of this translator object are discarded.

So you load either sailfishsilica-qt5 or strings for your
application.

Regards
Dmitriy


2015-04-23 11:01 GMT+06:00 Andrey Kozhevnikov
mailto:coderusin...@gmail.com>>:

This is my solution for you:


QLocale locale("fi_FI");
QLocale::setDefault(locale);
translator.load(locale, "sailfishsilica-qt5", "",
"/usr/share/translations", "");

23.04.2015 08:55, Dmitriy Purgin пишет:

Hi,

thanks for reply.

I do install custom translations with
QApplication::installTranslator() and it does work on
Sailfish but as I mentioned before formatting facilities and
system messages stay in OS language.

Regards

2015-04-23 0:07 GMT+06:00 Ove Kåven mailto:o...@arcticnet.no>>:

Den 22. april 2015 18:56, skrev Dmitriy Purgin:

$ LANG=ru_RU invoker --type=silica-qt5 appbin

does not  change the app locale, it behaves as if
there were no
LANG=ru_RU at all. So does QLocale::setDefault().


I think setting environment variables and calling
QLocale::setDefault only works if Qt has not yet been
initialized. Since the invoker has already initialized
Qt, changing the default locale is probably impossible.

It seems possible to force Qt to use different
translations, though, with
QApplication::installTranslator. Just load the necessary
Russian translations and install them, and Qt will use
them. There's an example on
http://wiki.qt.io/How_to_create_a_multi_language_application,
but not sure how it would work on Sailfish...


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to
devel-unsubscr...@lists.sailfishos.org
<mailto:devel-unsubscr...@lists.sailfishos.org>




___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail todevel-unsubscr...@lists.sailfishos.org  
<mailto:devel-unsubscr...@lists.sailfishos.org>



___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to
devel-unsubscr...@lists.sailfishos.org
<mailto:devel-unsubscr...@lists.sailfishos.org>




___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail todevel-unsubscr...@lists.sailfishos.org  
<mailto:devel-unsubscr...@lists.sailfishos.org>



___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to
devel-unsubscr...@lists.sailfishos.org
<mailto: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

Re: [SailfishDevel] Pull data in background

2015-05-02 Thread Andrey Kozhevnikov
Just make gui view in your application creatable by request and do not 
quit application when window is closed.


03.05.2015 06:27, Nicolas Cisco пишет:

Hi,
i'm developing a messaging app (server and client) for a subject at 
university. The proyect involves developing a server with a REST 
protocol and an android application. In order to have a real case to 
use it to compare developing an app for android and salifish, i 
thought that it would be a good idea to also implement the client for 
salifish.


The protocol is quite simple, i already managed to develop the server, 
tested via terminal and send messages using a simple qml app 
(basically i'm doing ajax calls). My problem is how should i poll 
notifications and messages. I have to periodically send an ajax 
call/http request to an url (eg: http:///notifications) 
and the server will answer me with a json with all the new messages.


My first idea is that the qml app pulls the data directly, but, if the 
app is closed, no more data is pulled. Can the qml app start a service 
(which runs on the backgound) in order to continue the pulling of data?.


My second idea is to run a daemon which periodically pulls displays 
notification and communicates with the qml app via dbus. But, i've 
read that daemons aren't allowed in harbour apps, i want to use this 
prototype as a real test case of what will be shipping an app to Harbour.


Which would be the correct / recommended way to pull information from 
a server periodically (in the background)?.


Regards,
Nicolas.
--
Nicolas Cisco
www.nckweb.com.ar 


___
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

Re: [SailfishDevel] Keeping background process running in Sailfish OS

2015-05-03 Thread Andrey Kozhevnikov

afaik it only closing propcesses with windows, no?

03.05.2015 10:08, Taixzo пишет:

I notice that Sailfish tends to close all running applications when some limit 
of RAM or CPU is reached. Is there a way to make an app launch a daemon process 
that does not get killed by this?


--
Sent from Whiteout Mail - https://whiteout.io

My PGP key: https://keys.whiteout.io/tai...@gmail.com


___
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

Re: [SailfishDevel] Pull data in background

2015-05-04 Thread Andrey Kozhevnikov
you need to do it in separate class and implement dbus service for 
showing running instance when click icon again. try to do it yourself 
and tell me if you will not success, i'll give you minimal example.


04.05.2015 06:09, Nicolas Cisco пишет:
I've create the gui view and set "setQuitOnLastWindow" to false. The 
problem i'm having is that when the app gui is closed (the app 
continues running on background), but the user can't open it again. 
How can i reopen the gui view when the user clicks on the menu button 
of the app?.


The main code:

intmain(intargc,char*argv[])
{
//SailfishApp::main()willdisplay"qml/template.qml",ifyouneedmore
//controloverinitialization,youcanuse:
//
//-SailfishApp::application(int,char*[])togettheQGuiApplication*
//-SailfishApp::createView()togetanewQQuickView*instance
//-SailfishApp::pathTo(QString)togetaQUrltoaresourcefile
//
//Todisplaytheview,call"show()"(willshowfullscreenondevice).
//returnSailfishApp::main(argc,argv);
QGuiApplication*app=SailfishApp::application(argc,argv);
QQuickView*view=SailfishApp::createView();
app->setQuitOnLastWindowClosed(false);
view->setSource(SailfishApp::pathTo("qml/background.qml"));
view->show();
MyTimert;
qDebug()<<"Running!";
intret=app->exec();
qDebug()<<"Closes!";
returnret;
}


MyTimer is just a class inherited from QTimer which prints "Running" 
each 3 secs.


2015-05-02 23:50 GMT-03:00 Andrey Kozhevnikov <mailto:coderusin...@gmail.com>>:


Just make gui view in your application creatable by request and do
not quit application when window is closed.

03.05.2015 06:27, Nicolas Cisco пишет:

Hi,
i'm developing a messaging app (server and client) for a subject
at university. The proyect involves developing a server with a
REST protocol and an android application. In order to have a real
case to use it to compare developing an app for android and
salifish, i thought that it would be a good idea to also
implement the client for salifish.

The protocol is quite simple, i already managed to develop the
server, tested via terminal and send messages using a simple qml
app (basically i'm doing ajax calls). My problem is how should i
poll notifications and messages. I have to periodically send an
ajax call/http request to an url (eg: http:///notifications) and the server will answer me with a json
with all the new messages.

My first idea is that the qml app pulls the data directly, but,
if the app is closed, no more data is pulled. Can the qml app
start a service (which runs on the backgound) in order to
continue the pulling of data?.

My second idea is to run a daemon which periodically pulls
displays notification and communicates with the qml app via dbus.
But, i've read that daemons aren't allowed in harbour apps, i
want to use this prototype as a real test case of what will be
shipping an app to Harbour.

Which would be the correct / recommended way to pull information
from a server periodically (in the background)?.

Regards,
Nicolas.
-- 
Nicolas Cisco

www.nckweb.com.ar <http://www.nckweb.com.ar>


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail todevel-unsubscr...@lists.sailfishos.org
<mailto:devel-unsubscr...@lists.sailfishos.org>



___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to
devel-unsubscr...@lists.sailfishos.org
<mailto:devel-unsubscr...@lists.sailfishos.org>




--
Nicolas Cisco
www.nckweb.com.ar <http://www.nckweb.com.ar>


___
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

Re: [SailfishDevel] Sailfish OS SDK 1504 update available now

2015-05-05 Thread Andrey Kozhevnikov
Please think about testing upgrades SDK and Emulator using ssu and pkcon 
internally. It's linux and installing everything again for new release 
is boring.


05.05.2015 18:14, Jarkko Lehtoranta пишет:

Hello again,

Today (May 5th) at 13:00 UTC we have published new installers and 
repositories of the Sailfish OS SDK.


The installers for this release of the SDK are available at 
http://www.sailfishos.org. If you have an older beta release of the 
SDK, you should see an update notification in the SailfishOS IDE.


SDK content has been updated to match Jolla Release 1.1.4.29 
(Äijänpäivänjärvi). Please see below for detailed information of the 
changes.


A couple of things you should be aware of:
- As before, in this update the build engine, emulator and targets are 
reinstalled so you will lose all changes you may have made in those - 
However, if your application packaging is done correctly, rebuilding 
your projects should reinstall the packages you have been using.
- Any customization done to SDK (adding new package repositories, 
adding custom targets, additional source paths) will be removed during 
the installation process so make your own backup of those before 
starting the update.
- If you import existing projects made with a previous version of the 
Sailfish OS SDK, make sure to select the correct kit in the project 
configuration step. Both ARM and i486 kits are available.
- Package repository contents have been updated and consequently using 
a previous SDK version with these package repositories is not supported.
- Supported host platforms can be found from: 
https://sailfishos.org/develop/sdk-overview/sdk-release-notes/


- For more information, please see the SDK Beta-Qt5 known issues list 
at: 
https://sailfishos.org/develop/sdk-overview/sdk-beta-qt5-known-issues/.


SDK IDE (Qt Creator):
- Updated Sailfish Silica help documentation and examples

SDK Build engine:
- Build targets refreshed to Jolla release 1.1.4.29 level

Emulator:
- Emulator packages refreshed to Jolla release 1.1.4.29 level

Harbour/Rpmvalidator:
- Rpmvalidator allows now QtPositioning (C++ and QML APIs), 
qt5-qtdeclarative-import-sensors and 
qt5-qtmultimedia-plugin-audio-pulseaudio. Harbour Store QA will start 
to accept submissions with these libraries from tomorrow 06. May onwards.


If you have any questions, feel free to either send an email to this 
mailing list: mailto:devel@lists.sailfishos.org, write it up in 
http://together.jolla.com  and tag your issue with 'sdk' or send an 
e-mail to developer-c...@jolla.com.


Happy hacking,
Jolla SDK Team
___
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

Re: [SailfishDevel] XDG paths in QT

2015-05-10 Thread Andrey Kozhevnikov
Hello, you should use QStandardPaths. DataLocation is correct, it using 
applicationName and organizationName from you QGuiApplication instance.


11.05.2015 01:14, Nicolas Cisco пишет:

Hi,
i have some questions about what are the correct config and data paths 
for an application.
The harbour faq [ https://harbour.jolla.com/faq#2.4.0 ] says that for 
these paths a subfolder during run time named  
inside a folder defined by the XDG Base Directory Specification should 
be used. My question is how to get these values using QT.
I though of using the QStandardPaths [ 
http://doc.qt.io/qt-5/qstandardpaths.html ] or the QProcessEnvironment 
[ http://doc.qt.io/qt-5/qprocessenvironment.html ] modules, but i 
don't know if i am getting the correct values.


Using the QStandardPaths module I get this output:

[D] main:66 - QStandardPaths::DataLocation:
"/home/nemo/.local/share/harbour-batzap/harbour-batzap"
[D] main:67 - QStandardPaths::GenericDataLocation:
"/home/nemo/.local/share"
[D] main:68 - QStandardPaths::CacheLocation:
"/home/nemo/.cache/harbour-batzap/harbour-batzap"
[D] main:69 - QStandardPaths::GenericCacheLocation:
"/home/nemo/.cache"
[D] main:70 - QStandardPaths::TempLocation: "/tmp"
[D] main:71 - QStandardPaths::ConfigLocation: "/home/nemo/.config"
[D] main:72 - QStandardPaths::GenericConfigLocation:
"/home/nemo/.config" 

(i'm returning these values using: /qDebug() << 
"QStandardPaths::: " << 
QStandardPaths::writableLocation(QStandardPaths::);/


According to the harbour faq, for application data the 
$XDG_DATA_HOME/ folder should be used, ( freedesktop.org 
 says that a possible value for $XDG_DATA_HOME 
is "$HOME/.local/share/", so i'll assume that value, and assuming 
 is "harbour-batsap") should the correct application 
data folder be "/home/new/.local/share/harbour-batzap" 
insted "/home/new/.local/share/harbour-batzap/harbour-batzap" as qt 
returns for QStandardPaths::DataLocation?


Note: the qt docs suggest that 
/QStandardPaths::AppDataLocation/ should be used while 
/QStandardPaths::DataLocation/ is a deprecated value. But i'm getting 
errors (/AppDataLocation /is not a member of /QStandardPaths/) using 
/QStandardPaths::AppDataLocation/ (it was introduced in Qt 5.4, i 
really don't remember what Qt5 version jolla ships)


If i try to get the values of the XDG variables using the 
QProcessEnvironment module, i'm always getting blank values:


[D] main:75 -
QProcessEnvironment::systemEnvironment().value("$XDG_DATA_HOME"): ""
[D] main:76 -
QProcessEnvironment::systemEnvironment().value("XDG_DATA_HOME"): ""
[D] main:77 -
QProcessEnvironment::systemEnvironment().value("$XDG_CACHE_HOME"): ""
[D] main:78 -
QProcessEnvironment::systemEnvironment().value("XDG_CACHE_HOME"): ""
[D] main:79 -
QProcessEnvironment::systemEnvironment().value("$XDG_CONFIG_HOME"): ""
[D] main:80 -
QProcessEnvironment::systemEnvironment().value("XDG_CONFIG_HOME"): "" 

(i'm returning these values using: /qDebug() << 
"QProcessEnvironment::systemEnvironment().value(, "");/

/
/
Using qDebug() << "getenv(): " << /getenv();/ also 
returns me an empty value:


[D] main:81 - getenv("XDG_DATA_HOME"):
[D] main:82 - getenv("$XDG_DATA_HOME"):
[D] main:83 - getenv("XDG_CACHE_HOME"):
[D] main:84 - getenv("$XDG_CACHE_HOME"):
[D] main:85 - getenv("XDG_CONFIG_HOME"):
[D] main:86 - getenv("$XDG_CONFIG_HOME"): 


/
/
I'm executing the app thought qtcreator in my jolla device (deploying 
it as an RPM package).


What are the correct path values? and how should I get them throught qt?.

Thanks!
--
Nicolas Cisco
www.nckweb.com.ar 


___
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

Re: [SailfishDevel] Passing parameters back?

2015-05-11 Thread Andrey Kozhevnikov

Hello,

using normal page you can connect to page status changing using 
javascript code:


onClicked: {
var page = pageStack.push(Qt.resolvedUrl("BreweryDetailsPage.qml"), 
{ model:

locid });
page.statusChanged.connect(function() { if (page.status == 
PageStatus.Inactive) /* do something with page.locid property */ })

}

using dialog page there are acceptDestination* properties set you can 
use for this behaviour.


11.05.2015 16:21, Chris Walker пишет:

Hopefully somebody can help me with this problem.

In my app, I'm using this approach to set up and use various models :-
https://wiki.qt.io/How_to_Use_a_QSqlQueryModel_in_QML

I have a list of breweries in the first page and when one is selected,
I pass a parameter to the second page like this :-
 onClicked:
pageStack.push(Qt.resolvedUrl("BreweryDetailsPage.qml"), { model:
locid });

But I want my sql statement to only pick out the details for 'locid'
and therefore I need to pass that back to the main cpp file which is
set like this :-
 view->rootContext()->setContextProperty("breweryInfomodel",
breweryInfomodel);

Note that I have yet to add the code to pass in the locid argument!

Is such a thing possible (my main reason for doing it this way is that I
would like to keep all the relevant code in the same place) or is the
only way to filter the full list of 'locid's in the
BreweryDetailsPage.qml ?
___
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] QML Camera viewfinder resolution

2015-05-12 Thread Andrey Kozhevnikov

Hello!

When i'm trying to set camera viewfinder resolution with 
QCameraViewfinderSettingsControl::Resolution to screen size (to make it 
fullscreen) i'm getting "CameraBin error: "Internal data flow error.". 
What is the right way to change viewfinder resolution?


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

Re: [SailfishDevel] Getting simple XML to show on the emulator

2015-05-12 Thread Andrey Kozhevnikov
Using XML is not simplest for QML. Native data format for QML/JavaScript 
is JSON.


13.05.2015 00:58, Jani Nuutinen пишет:
I'm trying early on to familiarize myself with passing data to the 
phone from the Internet and just for starters I chose to use a simple 
XML-file to see if I could make something out myself. I do not know if 
using XML from Internet source is the simplest or the smartest method, 
but trying to follow the scarce tutorials about passing XML data 
didn't seem to be that challenging.


Code:

importQtQuick2.0
importSailfish.Silica1.0
importQtQuick.XmlListModel2.0
Page{
id:root
XmlListModel{
id:noteXml
source:"http://www.w3schools.com/xml/note.xml";
query:"/note"
XmlRole{name:"body";query:"body/string()"}
}
SilicaListView{
id:noteView
width:parent.width
height:parent.height
anchors.centerIn:parent
header:PageHeader{
title:"Note"
}
model:noteXml
}

}
I've tried few other approaches but to me this seems the simplest method "coding 
wise". The app starts (in the emulator) as it should and without errors, showing the 
first page with/Note/  as the title. But no matter how much I'd like the XML getting 
passed on to the phone screen from the provided URL it never does.
So I'm wondering what am I missing that should be included to get such a simple 
thing working?
Greetings
Asmodeus


___
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

Re: [SailfishDevel] Getting simple XML to show on the emulator

2015-05-13 Thread Andrey Kozhevnikov
You should set elements position yourself. Elements itself have no idea 
where each should be placed and drawing at (0,0) position by default. 
Good idea will be to use Column as main element and place your text 
inside it. So, it should be something like:


delegate: BackgroundItem{
id:delegate
width: ListView.view.width
height: content.height

Column {
id: content
width: parent.width

Text{
width: parent.width
font.pixelSize: Theme.fontSizeLarge
color: Theme.primaryColor
text: name
wrapMode: Text.Wrap
}

Text{
width: parent.width
font.pixelSize: 15
color: Theme.primaryColor
text: price
wrapMode: Text.Wrap
}
}
}

14.05.2015 01:34, Jani Nuutinen пишет:

Thank you for the generous insights gents.

While I'm still learning from ground up these simplest things with Qt 
delegate was the thing here to get some flesh on the bones (as in: 
getting something to show up on the emulator screen).
The first code I used did work so I merely did expand on top of that 
with another "code training".


This time the new code has two XmlRole elements: one for the "name" of 
products and the other for the "price" of the products. If I pass 
these two through the delegate component the data seems to overlap on 
the emulator screen.
What is the correct way through the means of coding to change the 
relative position of those two (or even multiple) elements?


Code in pastebin this time:

http://pastebin.com/3ftxPyvk


XML:

http://www.w3schools.com/xml/simple.xml


Greetings

Jani

On Wed, May 13, 2015 at 9:15 PM, Michael Fuchs > wrote:


Hi Jani,

As somebody else wrote: JSON is the native data format for QML.

I'm using XMLHttpRequest and JSON.parse() for my project.
Maybe this is something for you.

greets,
Michael.

On Tuesday 12 May 2015 22:58:16 Jani Nuutinen wrote:
> I'm trying early on to familiarize myself with passing data to
the phone
> from the Internet and just for starters I chose to use a simple
XML-file to
> see if I could make something out myself. I do not know if using
XML from
> Internet source is the simplest or the smartest method, but
trying to
> follow the scarce tutorials about passing XML data didn't seem
to be that
> challenging.
>
> Code:
>
> import QtQuick 2.0
>
> import Sailfish.Silica 1.0
>
> import QtQuick.XmlListModel 2.0
>
>
> Page{
>
> id: root
>
>
> XmlListModel{
>
> id:noteXml
>
> source:"http://www.w3schools.com/xml/note.xml";
>
> query:"/note"
>
> XmlRole{name: "body"; query: "body/string()"}
>
> }
>
>
> SilicaListView{
>
>  id:noteView
>
>  width: parent.width
>
>  height: parent.height
>
>  anchors.centerIn: parent
>
>
>  header: PageHeader{
>
>  title: "Note"
>
>  }
>
>
>  model:noteXml
>
>  }
>
> }
>
>
>
> I've tried few other approaches but to me this seems the simplest
> method "coding wise". The app starts (in the emulator) as it should
> and without errors, showing the first page with *Note* as the title.
> But no matter how much I'd like the XML getting passed on to the phone
> screen from the provided URL it never does.
>
>
> So I'm wondering what am I missing that should be included to
get such
> a simple thing working?
>
>
>
> Greetings
>
>
> Asmodeus
___
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

Re: [SailfishDevel] Minutes] SailfishOS community meeting 21.5. + planning for next one 11.6.

2015-05-21 Thread Andrey Kozhevnikov

Thank you for comments.

No matter if QtDocumentGallery will be used or other backend, if 
Sailfish.Pickers will be available to use (at least pages for selecting 
media)


For thumbnails i'm actively using video thumbnailer and nemomobile 
Thumbnail component.


21.05.2015 23:33, Mohammed Hassan пишет:

On Thu, May 21, 2015 at 03:39:30PM +, Iekku Pylkka wrote:

  Hi,
  Thanks to everyone who attended today's meeting. Minutes/logs:
  Minutes:

  [1]http://merproject.org/meetings/mer-meeting/2015/mer-meeting.2015-05-
  21-14.30.html

I missed the meeting unfortunately but I feel I should comment on a few points:

CameraExtensions: This is part of jolla camera and it was written AFAICT to work
around the limitation of QtMultimedia declarative API. There is no point in 
allowing
this in harbour since we are moving to QtMultimedia 5.5 in order to support 
GStreamer 1.x
which should hopefully improve the situation.

* QtDocumentGallery: This is not maintained upstream AFAIK and we might be the 
only
users of such library. I would pretty much love to move away from it and use 
grilo
instead. Once that happens we can start allowing anything that has been migrated
in harbour.

* Thumbnailing: We have 2 thumbnails in the platform. The nemo thumbnailer 
which provides
only QML API (Used by UI apps) and tumbler which is used by buteo for MTP. Both 
of them need
to e merged together and perhaps a C++ library should be written on top of 
which we can have
a declarative bindings.

I have just commented on the bits I know and on why they cannot be allowed in 
harbour
for the time being. Help is of course greatly welcomed :-)

Cheers,
___
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

Re: [SailfishDevel] Minutes] SailfishOS community meeting 21.5. + planning for next one 11.6.

2015-05-21 Thread Andrey Kozhevnikov

I'm just giving you an idea how it used by developers :)

22.05.2015 01:25, Mohammed Hassan пишет:

On Thu, May 21, 2015 at 11:38:08PM +0500, Andrey Kozhevnikov wrote:

Thank you for comments.

No matter if QtDocumentGallery will be used or other backend, if
Sailfish.Pickers will be available to use (at least pages for selecting
media)

If the Qt document gallery import is in one of the pickers then it means it
is supported implicitly as you can create QML types from it.


For thumbnails i'm actively using video thumbnailer and nemomobile Thumbnail
component.

That does not make them suitable for white listing unfortunately ;-)

Cheers,


21.05.2015 23:33, Mohammed Hassan пишет:

On Thu, May 21, 2015 at 03:39:30PM +, Iekku Pylkka wrote:

  Hi,
  Thanks to everyone who attended today's meeting. Minutes/logs:
  Minutes:

  [1]http://merproject.org/meetings/mer-meeting/2015/mer-meeting.2015-05-
  21-14.30.html

I missed the meeting unfortunately but I feel I should comment on a few points:

CameraExtensions: This is part of jolla camera and it was written AFAICT to work
around the limitation of QtMultimedia declarative API. There is no point in 
allowing
this in harbour since we are moving to QtMultimedia 5.5 in order to support 
GStreamer 1.x
which should hopefully improve the situation.

* QtDocumentGallery: This is not maintained upstream AFAIK and we might be the 
only
users of such library. I would pretty much love to move away from it and use 
grilo
instead. Once that happens we can start allowing anything that has been migrated
in harbour.

* Thumbnailing: We have 2 thumbnails in the platform. The nemo thumbnailer 
which provides
only QML API (Used by UI apps) and tumbler which is used by buteo for MTP. Both 
of them need
to e merged together and perhaps a C++ library should be written on top of 
which we can have
a declarative bindings.

I have just commented on the bits I know and on why they cannot be allowed in 
harbour
for the time being. Help is of course greatly welcomed :-)

Cheers,
___
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

Re: [SailfishDevel] SilicaFlickable, Column, SilicaListView

2015-05-23 Thread Andrey Kozhevnikov

The best way to get help is freenode #sailfishos irc channel imho :)

i can't properly understand what ui you want to get. basically you 
should NOT put listview inside any other flickable. if you need 
something under listview you should not set it hight, and anchor 
something between listview bottom and page bottom.


23.05.2015 21:57, Віталій Коренєв пишет:

I'm just starting to learn qml, and there are many questions.
I have
XmlListModel {
id: listModel
query: "/ colors / color"
XmlRole {name: "id"; query: "id / string ()"}
XmlRole {name: "title"; query: "title / string ()"}
...
}

SilicaFlickable {
anchors.fill: parent

Column
{
width: parent.width; height: parent.height
id: mainContainer

SilicaListView
{
width: parent.width; height: parent.height
id: list
model: listModel
delegate: BackgroundItem {
width: parent.width; height: 120
Image {
source: imageUrl
anchors.fill: parent
}
Label {text: title}
}
VerticalScrollDecorator {}
}
}
}

How can I add other elements (buttons, labels ...) after all elements 
of SilicaListView, if its height: parent.height. If you remove line 
height: parent.height for SilicaListView, it is not displayed. There 
have been attempts to add other elements before 
VerticalScrollDecorator {} and other places (experimenting with 
anchors), but the added elements were in the upper left corner of the 
screen or on the last 10 points of the screen (under SilicaListView).


Sorry for my English.
PS. This is the only way to get or give help when working with qml + 
Silica? No forum for developers Sailfish?



___
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

Re: [SailfishDevel] How to use C Extension with Sailfish

2015-05-24 Thread Andrey Kozhevnikov

Hello,

I think you need to read the docs: http://pyotherside.readthedocs.org/

24.05.2015 20:28, barrac...@fastmail.com пишет:

Hello,

I'm trying to figure out how to use Python C extensions for a module 
(SQLAlchemy) with SFOS SDK/pyotherside but I can't find anything about it (I'm 
not even sure if it's possible). Do I just compile the files in the python 
module folder like I would for other C files?

Thank you,

Matt
___
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

Re: [SailfishDevel] How to use C Extension with Sailfish

2015-05-24 Thread Andrey Kozhevnikov
you using python scripts, and i see no problem to import any compiled c 
modules inside it.


24.05.2015 21:10, barrac...@fastmail.com пишет:

Hello Andrey,

Thank you for your answer.

Indeed, I read the doc, but as far as I can see, I didn't find any reference to 
C, C extensions or even CPython, hence my question.

On Sun, May 24, 2015, at 17:38, Andrey Kozhevnikov wrote:

Hello,

I think you need to read the docs: http://pyotherside.readthedocs.org/

24.05.2015 20:28, barrac...@fastmail.com пишет:

Hello,

I'm trying to figure out how to use Python C extensions for a module 
(SQLAlchemy) with SFOS SDK/pyotherside but I can't find anything about it (I'm 
not even sure if it's possible). Do I just compile the files in the python 
module folder like I would for other C files?

Thank you,

Matt
___
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

Re: [SailfishDevel] SilicaFlickable, Column, SilicaListView

2015-05-24 Thread Andrey Kozhevnikov
Do not forget to set proper pressDelay values for flickable and 
listview, if you still want to put listview inside flickable.


24.05.2015 22:28, Dmitriy Purgin пишет:

Привiт, Вiталiй!

If want to have something like a toolbar at the bottom of the list, 
I'd go with DockedPanel [1]. I guess it's the preferred way of doing 
it. But you can also do this by setting list view height explicitly if 
you do it in column or anchoring. Consider the following code, it lays 
out a header and a button at top and bottom of page respectively, and 
a list view in the middle:


Page {
id: page

SilicaFlickable {
anchors.fill: parent

// test pull down menu
PullDownMenu {
MenuItem {
text: 'Item 1'
}
}

// test push up menu
PushUpMenu {
MenuItem {
text: 'Item 2'
}
}

// set this explicitly, otherwise you will have
// weird problems with push and pull menus
contentHeight: column.height

Column {
id: column

anchors.fill: parent

PageHeader {
id: header

anchors.left: parent.left
anchors.right: parent.right

title: 'Header'
}

SilicaListView {
id: listView

// fill all the space between header and button
height: page.height - header.height - button.height

anchors.left: parent.left
anchors.right: parent.right

// this is needed so that the list elements
// do not overlap with other controls in column
clip: true

model: 20

delegate: ListItem {
anchors.left: parent.left
anchors.right: parent.right

Label {
width: parent.width
height: parent.height

text: model.modelData
}
}
}

Button {
id: button

anchors.horizontalCenter: parent.horizontalCenter

text: 'Button'
}
}
}
}

If you'd do this using anchoring, you should set contentHeight to sum 
of all the elements included to flickable.


Please note that if you would set a view that wouldn't fit to screen 
(by setting listView.height to something larger than the expression in 
the sample code), you would have to either scroll the list all the way 
up or down for the menus or begin dragging outside the list.


Cheers
Dmitriy

[1] 
https://sailfishos.org/develop/docs/silica/qml-sailfishsilica-dockedpanel.html/



2015-05-23 22:57 GMT+06:00 Віталій Коренєв >:


I'm just starting to learn qml, and there are many questions.
I have
XmlListModel {
id: listModel
query: "/ colors / color"
XmlRole {name: "id"; query: "id / string ()"}
XmlRole {name: "title"; query: "title / string ()"}
...
}

SilicaFlickable {
anchors.fill: parent

Column
{
width: parent.width; height: parent.height
id: mainContainer

SilicaListView
{
width: parent.width; height: parent.height
id: list
model: listModel
delegate: BackgroundItem {
width: parent.width; height: 120
Image {
source: imageUrl
anchors.fill: parent
}
Label {text: title}
}
VerticalScrollDecorator {}
}
}
}

How can I add other elements (buttons, labels ...) after all
elements of SilicaListView, if its height: parent.height. If you
remove line height: parent.height for SilicaListView, it is not
displayed. There have been attempts to add other elements before
VerticalScrollDecorator {} and other places (experimenting with
anchors), but the added elements were in the upper left corner of
the screen or on the last 10 points of the screen (under
SilicaListView).

Sorry for my English.
PS. This is the only way to get or give help when working with qml
+ Silica? No forum for developers Sailfish?

___
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

Re: [SailfishDevel] SilicaFlickable, Column, SilicaListView

2015-05-24 Thread Andrey Kozhevnikov
For example here is my old and very poor made UI with listview inside 
flickable: 
https://github.com/CODeRUS/harbour-mitakuuluu2/blob/master/client/qml/ConversationPage.qml#L234


And here is my latest monster page UI without using flickable: 
https://gist.github.com/CODeRUS/d9033e440dd4da74dd77

If someone will be interested i can explain how it working

24.05.2015 22:45, Dmitriy Purgin пишет:

Hi Andrey,

can you please provide a case or a non-synthetic example? I've never 
met a pressDelay yet and never used it myself, read about it in the 
docs just now. I think it can be used in a very complex interface but 
can't think of an example right now. But, as you know, I'm not much of 
a GUI builder, doing backend stuff mostly.


Cheers

2015-05-24 23:31 GMT+06:00 Andrey Kozhevnikov <mailto:coderusin...@gmail.com>>:


Do not forget to set proper pressDelay values for flickable and
listview, if you still want to put listview inside flickable.

24.05.2015 22:28, Dmitriy Purgin пишет:

Привiт, Вiталiй!

If want to have something like a toolbar at the bottom of the
list, I'd go with DockedPanel [1]. I guess it's the preferred way
of doing it. But you can also do this by setting list view height
explicitly if you do it in column or anchoring. Consider the
following code, it lays out a header and a button at top and
bottom of page respectively, and a list view in the middle:

Page {
id: page

SilicaFlickable {
anchors.fill: parent

// test pull down menu
PullDownMenu {
MenuItem {
text: 'Item 1'
}
}

// test push up menu
PushUpMenu {
MenuItem {
text: 'Item 2'
}
}

// set this explicitly, otherwise you will have
// weird problems with push and pull menus
contentHeight: column.height

Column {
id: column

anchors.fill: parent

PageHeader {
id: header

anchors.left: parent.left
anchors.right: parent.right

title: 'Header'
}

SilicaListView {
id: listView

// fill all the space between header and button
height: page.height - header.height - button.height

anchors.left: parent.left
anchors.right: parent.right

// this is needed so that the list elements
// do not overlap with other controls in column
clip: true

model: 20

delegate: ListItem {
anchors.left: parent.left
anchors.right: parent.right

Label {
width: parent.width
height: parent.height

text: model.modelData
}
}
}

Button {
id: button

anchors.horizontalCenter: parent.horizontalCenter

text: 'Button'
}
}
}
}

If you'd do this using anchoring, you should set contentHeight to
sum of all the elements included to flickable.

Please note that if you would set a view that wouldn't fit to
screen (by setting listView.height to something larger than the
expression in the sample code), you would have to either scroll
the list all the way up or down for the menus or begin dragging
outside the list.

Cheers
Dmitriy

[1]

https://sailfishos.org/develop/docs/silica/qml-sailfishsilica-dockedpanel.html/


2015-05-23 22:57 GMT+06:00 Віталій Коренєв mailto:nemis...@gmail.com>>:

I'm just starting to learn qml, and there are many questions.
I have
XmlListModel {
id: listModel
query: "/ colors / color"
XmlRole {name: "id"; query: "id / string ()"}
XmlRole {name: "title"; query: "title / string ()"}
...
}

SilicaFlickable {
anchors.fill: parent

Column
{
width: parent.width; height: parent.height
id: mainContainer

SilicaListView
{
width: parent.width; height: parent.height
id: list
model: listModel
delegate: BackgroundItem {
width: parent.width; height: 120
Image {
source: imageUrl
anchors.fill: parent
}
Label {text: title}
}
VerticalScrollDecorator {}
}
}
}

How can I add other elements (buttons, labels ...) after all
elements of SilicaListView, if its 

Re: [SailfishDevel] How to use C Extension with Sailfish

2015-05-24 Thread Andrey Kozhevnikov

sys.path.append?

25.05.2015 02:38, barrac...@fastmail.com пишет:

Wouldn't importing already compiled C unauthorized on Harbour? Ultimately I'd 
like to submit my app.

On Sun, May 24, 2015, at 18:14, Andrey Kozhevnikov wrote:

you using python scripts, and i see no problem to import any compiled c
modules inside it.

24.05.2015 21:10, barrac...@fastmail.com пишет:

Hello Andrey,

Thank you for your answer.

Indeed, I read the doc, but as far as I can see, I didn't find any reference to 
C, C extensions or even CPython, hence my question.

On Sun, May 24, 2015, at 17:38, Andrey Kozhevnikov wrote:

Hello,

I think you need to read the docs: http://pyotherside.readthedocs.org/

24.05.2015 20:28, barrac...@fastmail.com пишет:

Hello,

I'm trying to figure out how to use Python C extensions for a module 
(SQLAlchemy) with SFOS SDK/pyotherside but I can't find anything about it (I'm 
not even sure if it's possible). Do I just compile the files in the python 
module folder like I would for other C files?

Thank you,

Matt
___
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

___
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

Re: [SailfishDevel] Jolla XMPP OTR support

2015-05-27 Thread Andrey Kozhevnikov

Here: https://github.com/nemomobile-packages/telepathy-gabble

27.05.2015 19:54, Michael Raitza пишет:

Hi,

I would like to see the jolla phone supporting XMPP OTR. As far as I get it, 
sailfish uses telepathy as the chat middleware. Does it use the upstream 
telepathy-gabble library for that or some modified version? I am asking as I 
woukd be willing to commit substantial time to improve things on the middleware 
side if that yielded equal benefits for the front end, which I see are closed 
source.

Any comments and suggestions on that?

Regards,

Michael
___
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

Re: [SailfishDevel] Introducing the Jolla Tablet Developer Device loan program (Pilot)

2015-05-29 Thread Andrey Kozhevnikov

Thank you, cool news. What about developers, who backed tablet on indiegogo?

29.05.2015 12:52, Iekku Pylkka пишет:


Ahoy,

Here’s text version from today’s blog post about Tablet Develor Device 
Loan Program Pilot, you can check full version from:


https://blog.jolla.com/jolla-tablet-developer-device-loan-program-starting-soon/

Jolla Tablet Developer Device loan program starting soon

From the launch of Jolla smartphpone, to the opening of Jolla Harbour 
[0] (accepting apps to Jolla Store), to the recent introduction of the 
Jolla tablet [1], our community members have asked for a Developer 
Program they can participate in. This demand for a Developer Program 
certainly did not go unnoticed!


Already about a year ago, we introduced the community beta (cbeta) 
group as an endeavor to collect feedback from our community. We take 
this opportunity to thank our cbeta members for making this a success 
by giving us honest feedback on how each release candidate is perceived!


In addition we’ve been paving the road for a smoother developer 
experience every step of the way. Some of our efforts have included: 
accepting more APIs for Harbour, regular Sailfish OS and open source 
collaboration meetings, renewing Sailfish OS portal at sailfishos.org 
[2], and also bringing the missing Silica documentation [3] back.


Introducing the Jolla Tablet Developer Device loan program

We are now ready to take the next step in our Developer Program, and 
pilot a developer program for the Jolla Tablet! We have decided to 
make the pilot phase invite-only, to keep the program focused and 
manageable as we start it off.


We aim for an Unlike Developer Program, fitting the unique needs of 
our community. The developers who will be getting their personal 
invitations within the next few weeks are hand-picked based on their 
technical contributions to Sailfish OS. These are active community 
members (including current cbeta members), and we trust that they will 
provide appropriate feedback during the pilot to serve the program 
expansion in the future.


What we are piloting now is the Jolla Tablet Developer Device loan 
program. Within the program we will ship a number of loan devices to 
selected developers by the end of June, along with early access SDK 
and tablet Software Release(s). As the SDK and tablet software 
releases aren’t public yet, the devices and software will be given out 
for selected developers under a common Product Loan Agreement (PLA).


In return, we expect feedback in the form of failure reports and 
suggestions for better process. We are taking this step by step, so 
please be patient. We will see how it goes and evaluate what else we 
can provide or what is needed from the developer community.


If you do not receive an invitation for the program pilot, please do 
not worry and bear with us for a little longer. We will share info 
about future opportunities to join the Developer Program as it grows.


[0] https://harbour.jolla.com/ 

[1] https://jolla.com/tablet

[2] http://sailfishos.org/

[3] https://sailfishos.org/develop/docs/silica/ 





___
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

Re: [SailfishDevel] Introducing the Jolla Tablet Developer Device loan program (Pilot)

2015-05-29 Thread Andrey Kozhevnikov
Thanks Iekku, but i mean if developers who baked tabled on indiegogo can 
early access sdk and other goods the same way as it will be available 
for developers who will receive loan devices?


29.05.2015 15:18, Iekku Pylkka пишет:


Device will be loan device unlike backed up devices. However we will 
prioritize the ones who has backed in the name of fairness.


Br,

Iekku

*From:*devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] *On Behalf Of *Tone Kastlunger

*Sent:* 29. toukokuuta 2015 10:58
*To:* Sailfish OS Developers
*Subject:* Re: [SailfishDevel] Introducing the Jolla Tablet Developer 
Device loan program (Pilot)


It's an interesting question! I back it up!

On Fri, May 29, 2015 at 10:56 AM, Andrey Kozhevnikov 
mailto:coderusin...@gmail.com>> wrote:


Thank you, cool news. What about developers, who backed tablet on 
indiegogo?


29.05.2015 12:52, Iekku Pylkka пишет:

Ahoy,

Here’s text version from today’s blog post about Tablet Develor
Device Loan Program Pilot, you can check full version from:


https://blog.jolla.com/jolla-tablet-developer-device-loan-program-starting-soon/

Jolla Tablet Developer Device loan program starting soon

From the launch of Jolla smartphpone, to the opening of Jolla
Harbour [0] (accepting apps to Jolla Store), to the recent
introduction of the Jolla tablet [1], our community members have
asked for a Developer Program they can participate in. This demand
for a Developer Program certainly did not go unnoticed!

Already about a year ago, we introduced the community beta (cbeta)
group as an endeavor to collect feedback from our community. We
take this opportunity to thank our cbeta members for making this a
success by giving us honest feedback on how each release candidate
is perceived!

In addition we’ve been paving the road for a smoother developer
experience every step of the way. Some of our efforts have
included: accepting more APIs for Harbour, regular Sailfish OS and
open source collaboration meetings, renewing Sailfish OS portal at
sailfishos.org <http://sailfishos.org> [2], and also bringing the
missing Silica documentation [3] back.

Introducing the Jolla Tablet Developer Device loan program

We are now ready to take the next step in our Developer Program,
and pilot a developer program for the Jolla Tablet! We have
decided to make the pilot phase invite-only, to keep the program
focused and manageable as we start it off.

We aim for an Unlike Developer Program, fitting the unique needs
of our community. The developers who will be getting their
personal invitations within the next few weeks are hand-picked
based on their technical contributions to Sailfish OS. These are
active community members (including current cbeta members), and we
trust that they will provide appropriate feedback during the pilot
to serve the program expansion in the future.

What we are piloting now is the Jolla Tablet Developer Device loan
program. Within the program we will ship a number of loan devices
to selected developers by the end of June, along with early access
SDK and tablet Software Release(s). As the SDK and tablet software
releases aren’t public yet, the devices and software will be given
out for selected developers under a common Product Loan Agreement
(PLA).

In return, we expect feedback in the form of failure reports and
suggestions for better process. We are taking this step by step,
so please be patient. We will see how it goes and evaluate what
else we can provide or what is needed from the developer community.

If you do not receive an invitation for the program pilot, please
do not worry and bear with us for a little longer. We will share
info about future opportunities to join the Developer Program as
it grows.

[0] https://harbour.jolla.com/

[1] https://jolla.com/tablet

[2] http://sailfishos.org/

[3] https://sailfishos.org/develop/docs/silica/

___

SailfishOS.org Devel mailing list

To unsubscribe, please send a mail todevel-unsubscr...@lists.sailfishos.org
<mailto:devel-unsubscr...@lists.sailfishos.org>


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to 
devel-unsubscr...@lists.sailfishos.org 
<mailto: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

Re: [SailfishDevel] New documentation on sailfishos.org

2015-06-03 Thread Andrey Kozhevnikov
IMHO it's not Sailfish-specific articles, and it should not be put in 
docs, but can be linked to official ones. qt.io have good documentation 
about built-in QTCreator debugger. Also as it linux you can debug app 
with gdb in terminal locally or remotely.


03.06.2015 15:23, Александр Крылков пишет:
Hi! It will be very helpful if you do documentation on how to debug 
applications for Sailfish OS properly. For example, I have some 
SIGSEGV signal in some parts of my application, but it hard to debug 
this types of problems.


On Wed, Jun 3, 2015 at 4:15 PM, Jussi Pakkanen 
mailto:jussi.pakka...@jolla.com>> wrote:


Hello all

We have been looking into ways to improve the developer experience
on Sailfish OS. This has lead into developing a bunch of new
documentation. The first one of these deals with combining Qml
with C++ and has just been put on the web site:

https://sailfishos.org/develop/sdk-overview/combining-c-with-qml/

We have a few others in the pipeline on how to do development
without Qt Creator for those of you who prefer other tools and how
to do SDL apps.

If there are other areas you would like tutorials on, do let us know.

Thanks

-- 
Jussi Pakkanen

SDK Lead developer
Jolla
___
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

Re: [SailfishDevel] New documentation on sailfishos.org

2015-06-03 Thread Andrey Kozhevnikov
I suggest you to read official QMAKE documentation, and not asking Jolla 
devs to write it. Daemons are not allowed for Harbour at the moment, so 
very unlikely such article will appear in sailfishos docs.


03.06.2015 15:50, Riccardo Ferrazzo пишет:

You can add some documentation on how to ship an executable that links to 
shared libraries that are not part of the system. Also you can write something 
about how to create a “daemon” that runs in background.


Il giorno 03/giu/2015, alle ore 12:15, Jussi Pakkanen 
 ha scritto:

Hello all

We have been looking into ways to improve the developer experience on Sailfish 
OS. This has lead into developing a bunch of new documentation. The first one 
of these deals with combining Qml with C++ and has just been put on the web 
site:

https://sailfishos.org/develop/sdk-overview/combining-c-with-qml/

We have a few others in the pipeline on how to do development without Qt 
Creator for those of you who prefer other tools and how to do SDL apps.

If there are other areas you would like tutorials on, do let us know.

Thanks

--
Jussi Pakkanen
SDK Lead developer
Jolla
___
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

Re: [SailfishDevel] New documentation on sailfishos.org

2015-06-03 Thread Andrey Kozhevnikov

why? qmake is qmake. or there is some big changes since years?

03.06.2015 21:28, Tone Kastlunger пишет:
Although qmake information is scattered all over the place, and the 
most obscure one can be found only from old qt forums...it would be 
great to have them somewhere all together :)


On Wed, Jun 3, 2015 at 1:58 PM, Andrey Kozhevnikov 
mailto:coderusin...@gmail.com>> wrote:


I suggest you to read official QMAKE documentation, and not asking
Jolla devs to write it. Daemons are not allowed for Harbour at the
moment, so very unlikely such article will appear in sailfishos docs.

03.06.2015 15:50, Riccardo Ferrazzo пишет:

You can add some documentation on how to ship an executable
that links to shared libraries that are not part of the
system. Also you can write something about how to create a
“daemon” that runs in background.

Il giorno 03/giu/2015, alle ore 12:15, Jussi Pakkanen
mailto:jussi.pakka...@jolla.com>> ha scritto:

Hello all

We have been looking into ways to improve the developer
experience on Sailfish OS. This has lead into developing a
bunch of new documentation. The first one of these deals
with combining Qml with C++ and has just been put on the
web site:

https://sailfishos.org/develop/sdk-overview/combining-c-with-qml/

We have a few others in the pipeline on how to do
development without Qt Creator for those of you who prefer
other tools and how to do SDL apps.

If there are other areas you would like tutorials on, do
let us know.

Thanks

-- 
Jussi Pakkanen

SDK Lead developer
Jolla
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to
devel-unsubscr...@lists.sailfishos.org
<mailto:devel-unsubscr...@lists.sailfishos.org>

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to
devel-unsubscr...@lists.sailfishos.org
<mailto:devel-unsubscr...@lists.sailfishos.org>


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to
devel-unsubscr...@lists.sailfishos.org
<mailto: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

Re: [SailfishDevel] New documentation on sailfishos.org

2015-06-03 Thread Andrey Kozhevnikov
I'm still thinking if you developing apps in qtc you should first read 
digia/qt.io articles, and use silica reference only for sailfish 
specific bits. Also help articles in mine sailfish sdk qtc contains some 
articles about adding libs to project.


03.06.2015 22:32, Giuliettasw пишет:
Big changes? Not that i know of, as said most of the more useful stuff 
is indeed very obscure sometimes. This is the info that should be more 
easily accessible imo


Von meinem iPad gesendet

Am 03.06.2015 um 19:41 schrieb Andrey Kozhevnikov 
mailto:coderusin...@gmail.com>>:



why? qmake is qmake. or there is some big changes since years?

03.06.2015 21:28, Tone Kastlunger пишет:
Although qmake information is scattered all over the place, and the 
most obscure one can be found only from old qt forums...it would be 
great to have them somewhere all together :)


On Wed, Jun 3, 2015 at 1:58 PM, Andrey Kozhevnikov 
mailto:coderusin...@gmail.com>> wrote:


I suggest you to read official QMAKE documentation, and not
asking Jolla devs to write it. Daemons are not allowed for
Harbour at the moment, so very unlikely such article will appear
in sailfishos docs.

03.06.2015 15:50, Riccardo Ferrazzo пишет:

You can add some documentation on how to ship an executable
that links to shared libraries that are not part of the
system. Also you can write something about how to create a
“daemon” that runs in background.

Il giorno 03/giu/2015, alle ore 12:15, Jussi Pakkanen
mailto:jussi.pakka...@jolla.com>> ha scritto:

Hello all

We have been looking into ways to improve the developer
experience on Sailfish OS. This has lead into developing
a bunch of new documentation. The first one of these
deals with combining Qml with C++ and has just been put
on the web site:

https://sailfishos.org/develop/sdk-overview/combining-c-with-qml/

We have a few others in the pipeline on how to do
development without Qt Creator for those of you who
prefer other tools and how to do SDL apps.

If there are other areas you would like tutorials on, do
let us know.

Thanks

-- 
Jussi Pakkanen

SDK Lead developer
Jolla
___
SailfishOS.org <http://SailfishOS.org> Devel mailing list
To unsubscribe, please send a mail to
devel-unsubscr...@lists.sailfishos.org

___
SailfishOS.org <http://SailfishOS.org> Devel mailing list
To unsubscribe, please send a mail to
devel-unsubscr...@lists.sailfishos.org


___
SailfishOS.org <http://SailfishOS.org> Devel mailing list
To unsubscribe, please send a mail to
devel-unsubscr...@lists.sailfishos.org




___
SailfishOS.org <http://SailfishOS.org>  Devel mailing list
To unsubscribe, please send a mail todevel-unsubscr...@lists.sailfishos.org


___
SailfishOS.org <http://SailfishOS.org> Devel mailing list
To unsubscribe, please send a mail to 
devel-unsubscr...@lists.sailfishos.org 
<mailto: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

Re: [SailfishDevel] New SailfishOS phone manufacturer

2015-06-03 Thread Andrey Kozhevnikov
TOH is only Jolla feature, not 3rd party developers of course. Talk to 
these companies and ask them to implement TOH in their sailfishos devices :)


03.06.2015 23:02, Martin Kolman пишет:

Wed, 3 Jun 2015 13:46:02 +0200 schif...@polytech.unice.fr:

Hi,

I have heard there will be new official Sailfish phone manifacturers. On
this smartphones will the Android apps be supported ? If yes, does it 
mean
that all the smartphones with Sailfish will have Alien Dalvik 
available ?

Also what about the ToH concept ? It would be a shame to loose it on new
devices just when the first ToH keyboards start shipping...

(BTW, as most current ToHs use 3D printed components it does not 
necessarily
need to be mechanically compatible, just electrically - and even that 
is not
that important. In short - any interface that makes it possible to 
mechanically
attach something to the back of the device + power & data & interrupt 
channel

would do.)

Best Wishes
Martin


Best Regards,
Alexandre Schifano

___
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

Re: [SailfishDevel] New documentation on sailfishos.org

2015-06-04 Thread Andrey Kozhevnikov
In this case jolla should create some community wiki, or at least 
merproject wiki can be used for this.


04.06.2015 21:24, François K. пишет:

Hi !

Thanks for your efforts. This is really great, especially for beginners (like 
me !).

I have another suggestion : would it be possible to open the documentation to 
community ?
I think a few people here could easily provide some good how-tos and explanations about 
different subjects. Someone at Jolla would "just" have to review it before 
publishing it.

For example, right now, Lucien (aka SfietKonstantin) is giving some great explanations on 
IRC about "How to consume data from the Internet". That's something a lot of 
people might be interested in.

Cheers,



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

Re: [SailfishDevel] What's the correct way to do this?

2015-06-05 Thread Andrey Kozhevnikov
If you need just some  fields from model you can pass them to 
parameters, instead of whole model. Other way would be parsing model 
inside onClicked handler. Or use kimmoli suggestion and implement get or 
getModel method on model class for returning const QVariantMap.


05.06.2015 21:06, Chris Walker пишет:

Perhaps somebody can either help me with this one or point me to some
docs that tell me the correct way to do it.

I want to pass several bits of information to another qml page. I've
looked at the various pages and they only tell me how to pass variables
not how to set them up in the first place which is where I'm struggling.

My qml (at the end of a label) looks like this :-
onClicked: console.log("Clicked " + mark + " " + model + " " + register)
// + { passcarDetails(model);

The console shows that the three pieces of information are being
selected and part of my function looks like this :-
 function passcarDetails(carDetails)
 {
 console.log("about to push to CarRecordPage, for car - id: " +
  carDetails.id + ", register: " +
  carDetails.register)

It's failing at that point as the console says :-
passcarDetails:40 - about to push to CarRecordPage, for car - id:
undefined, register: undefined

So where am I going wrong, and more importantly, what can I do about it?

Any help appreciated.
___
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

Re: [SailfishDevel] New SailfishOS phone manufacturer

2015-06-09 Thread Andrey Kozhevnikov
So, new SailfishOS manufacturer should license usage of aliendalvik for 
itself, not via Jolla as far i understand.


09.06.2015 13:06, schif...@polytech.unice.fr пишет:

Because as somebody told me in the Neo900 support" thread, Jolla has
currently only the licence to distribute Myriad Alien Dalvik with there
smartphones and not for all devices which can run Sailfish.


Hi,

I don't see why dalvik would not be available. If the OS runs on the
device, dalvik should be able to run too.

Alex.

On Mon, Jun 8, 2015 at 3:09 PM,  wrote:


Well it seems Jolla will not make a new device soon. So in case somebody
has an answer to my previous question, I'm still listening ;).


TOH is only Jolla feature, not 3rd party developers of course. Talk to
these companies and ask them to implement TOH in their sailfishos

devices

:)

03.06.2015 23:02, Martin Kolman пишет:

Wed, 3 Jun 2015 13:46:02 +0200 schif...@polytech.unice.fr:

Hi,

I have heard there will be new official Sailfish phone

manifacturers.

On
this smartphones will the Android apps be supported ? If yes, does

it

mean
that all the smartphones with Sailfish will have Alien Dalvik
available ?

Also what about the ToH concept ? It would be a shame to loose it on

new

devices just when the first ToH keyboards start shipping...

(BTW, as most current ToHs use 3D printed components it does not
necessarily
need to be mechanically compatible, just electrically - and even that
is not
that important. In short - any interface that makes it possible to
mechanically
attach something to the back of the device + power & data & interrupt
channel
would do.)

Best Wishes
Martin

Best Regards,
Alexandre Schifano

___
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


___
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

Re: [SailfishDevel] PullDownMenu in a Dialog?

2015-06-11 Thread Andrey Kozhevnikov
You did some weird stuff... I sent PR: 
https://github.com/tanghus/kitchen-timer-qml/pull/6


But imho it's better to use /[..]/ folder to navigate up and not use 
PullDown menu for this.


P.S. I personally prefer using this:
var picker = pageStack.push("Sailfish.Pickers.MusicPickerPage", 
{"title": qsTr("Select timer ringtone")})
picker.selectedContentChanged.connect(function() { 
console.log(picker.selectedContent) })


11.06.2015 07:14, Thomas Tanghus пишет:

Hi

I have a Dialog with a SilicaListView as a file picker. Now I want to have a
PullDownMenu with a single MenuItem to go one level up.
It kinda works, but the positioning is all messed up.

Problem 1: The indicator is placed a tad below the header, so I made an ugly
hack setting "y:  - Theme.paddingLarge;", but that's not a viable solution.

Problem 2: When the menu is pulled down it appears at the height of the
DialogHeader below the DialogHeader - if that makes sense? :P

Is a PullDownMenu in a Dialog not supported, or am I doing something wrong?

https://github.com/tanghus/kitchen-timer-qml/blob/master/qml/pages/SoundSelectDialog.qml#L58


___
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

Re: [SailfishDevel] Scroll horizontal

2015-06-11 Thread Andrey Kozhevnikov

It should scroll if viewport width is higher than webview width.

11.06.2015 16:20, Rudi Timmermans пишет:

Hi,

As i'm start with coding for Sailfish OS, i have some idea but i can 
not figer it out how i can fix this into the code.


I have made a Facebook Messenger with the www.messenger.com webpage 
build into the app, now i like to have that users can scroll 
horizontal to see older message into the chat window, the same as on 
the webpage when you have open it into the browser...


I have search and search for examples how to code this but i can not 
found anything and i can found it out how i need to code it.


You can find all the messenger sources here:

messenger.css

https://drive.google.com/open?id=0B8QiRsNYbAIqMFhqOHExVDBFdGM&authuser=0

messenger.js

https://drive.google.com/open?id=0B8QiRsNYbAIqbk9GbEZNWmpaWWc&authuser=0

messengerpage.qml

https://drive.google.com/open?id=0B8QiRsNYbAIqTGF1NDYzSGRQRlE&authuser=0

Thanks guys for the helps !!!
--
---
Best regards!

Rudi Timmermans.


___
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

Re: [SailfishDevel] Scroll horizontal

2015-06-11 Thread Andrey Kozhevnikov
I mean webpage viewport size. when you using QML WebView server detect 
it as mobile client and setting webpage width to your device screen 
width, and you can't scroll.


11.06.2015 16:28, Rudi Timmermans пишет:

Hi Andrey,

Can you tell me where i can change this as best into the code please ?

I'm nit shure i understand this corectly sorry...
---
Best regards!

Rudi Timmermans.
Andrey Kozhevnikov schreef op 11/06/15 om 13:22:

It should scroll if viewport width is higher than webview width.

11.06.2015 16:20, Rudi Timmermans пишет:

Hi,

As i'm start with coding for Sailfish OS, i have some idea but i can 
not figer it out how i can fix this into the code.


I have made a Facebook Messenger with the www.messenger.com webpage 
build into the app, now i like to have that users can scroll 
horizontal to see older message into the chat window, the same as on 
the webpage when you have open it into the browser...


I have search and search for examples how to code this but i can not 
found anything and i can found it out how i need to code it.


You can find all the messenger sources here:

messenger.css

https://drive.google.com/open?id=0B8QiRsNYbAIqMFhqOHExVDBFdGM&authuser=0

messenger.js

https://drive.google.com/open?id=0B8QiRsNYbAIqbk9GbEZNWmpaWWc&authuser=0

messengerpage.qml

https://drive.google.com/open?id=0B8QiRsNYbAIqTGF1NDYzSGRQRlE&authuser=0

Thanks guys for the helps !!!
--
---
Best regards!

Rudi Timmermans.


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail todevel-unsubscr...@lists.sailfishos.org




___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail todevel-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

Re: [SailfishDevel] Scroll horizontal

2015-06-11 Thread Andrey Kozhevnikov
sorry i'm not an web expert, you'd better wait for someone more 
experienced answer :)


11.06.2015 16:44, Rudi Timmermans пишет:

Hi Andrey,

Ok i have try it but now i can not open anymore my chat window.

If you can give me a hint what i change as the best i would love it 
thanks for that !



This i have into my code as messenger.js


(function(){
varmeta=document.createElement('meta');
meta.setAttribute('name','viewport');
if(screen.width<=540)
meta.setAttribute('content','width=device-width/1.5,initial-scale='+(1.5)+',maximum-scale='+(1.5)+',user-scalable=no');
elseif(screen.width>540&&screen.width<=768)
meta.setAttribute('content','width=device-width/2.0,initial-scale='+(2.0)+',maximum-scale='+(2.0)+',user-scalable=no');
elseif(screen.width>768)
meta.setAttribute('content','width=device-width/3.0,initial-scale='+(3.0)+',maximum-scale='+(3.0)+',user-scalable=no');
else
meta.setAttribute('content','width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no');
document.head.appendChild(meta);
console.log("insertemeta");
})();

Into my messenger.qml i have this:



Page{

id:page
SilicaWebView{


url:"https://www.messenger.com/login";
anchors.fill:parent
overridePageStackNavigation:true
experimental.preferences.developerExtrasEnabled:true
experimental.userStyleSheet:Qt.resolvedUrl("helper/messenger.css")
experimental.userScripts:[
Qt.resolvedUrl("helper/console.js"),
Qt.resolvedUrl("helper/messenger.js")
]
experimental.preferences.navigatorQtObjectEnabled:true
experimental.preferences.fullScreenEnabled:true
experimental.preferences.offlineWebApplicationCacheEnabled:true
onTitleChanged:{




---
Best regards!

Rudi Timmermans.
Andrey Kozhevnikov schreef op 11/06/15 om 13:30:
I mean webpage viewport size. when you using QML WebView server 
detect it as mobile client and setting webpage width to your device 
screen width, and you can't scroll.

11.06.2015 16:28, Rudi Timmermans пишет:
Hi Andrey, Can you tell me where i can change this as best into the 
code please ? I'm nit shure i understand this corectly sorry...

---
Best regards!

Rudi Timmermans.
Andrey Kozhevnikov schreef op 11/06/15 om 13:22:

It should scroll if viewport width is higher than webview width.
11.06.2015 16:20, Rudi Timmermans пишет:
Hi, As i'm start with coding for Sailfish OS, i have some idea but 
i can not figer it out how i can fix this into the code. I have 
made a Facebook Messenger with the www.messenger.com webpage build 
into the app, now i like to have that users can scroll horizontal 
to see older message into the chat window, the same as on the 
webpage when you have open it into the browser... I have search 
and search for examples how to code this but i can not found 
anything and i can found it out how i need to code it. You can 
find all the messenger sources here: messenger.css 
https://drive.google.com/open?id=0B8QiRsNYbAIqMFhqOHExVDBFdGM&authuser=0 
messenger.js 
https://drive.google.com/open?id=0B8QiRsNYbAIqbk9GbEZNWmpaWWc&authuser=0 
messengerpage.qml 
https://drive.google.com/open?id=0B8QiRsNYbAIqTGF1NDYzSGRQRlE&authuser=0 
Thanks guys for the helps !!!

--
---
Best regards!

Rudi Timmermans.

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail todevel-unsubscr...@lists.sailfishos.org


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail todevel-unsubscr...@lists.sailfishos.org


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail todevel-unsubscr...@lists.sailfishos.org


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail todevel-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

Re: [SailfishDevel] QtSensors & SensorGesture

2015-06-18 Thread Andrey Kozhevnikov
Did you installed qt5-qtsensors-plugin-gestures-sensor and 
qt5-qtsensors-plugin-gestures-shake to your device?






From: Fab
Sent: ‎Friday‎, ‎June‎ ‎19‎, ‎2015 ‎12‎:‎06‎ ‎AM
To: devel@lists.sailfishos.org





Hello everybody !

This is my first post (and first SailfishOS app), so be indulgent :)

I try to use SensorGesture within an app for the Jolla. I particularly 
want to use the shake gesture. I import for this QtSensors 5.x.

But "onDetected" signal is never raised. availableGestures seems to be 
empty, at least.

Am I missing something ?

Thanks for the answer.
Regards, Fab
___
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] SailfishOS SDK in WIndows 10 x64

2015-07-02 Thread Andrey Kozhevnikov
Hello, just to let you know: SailfishOS SDK works well in Windows x64 
Pro Insider Preview 10159.

Also small addition to make symlinks working in windows hosts:
VBoxManage.exe setextradata MerSDK 
VBoxInternal2/SharedFoldersEnableSymlinksCreate/home 1Run QtCreator as 
Administrator and start VM from QtC, or also start VirtualBox as 
Administrator and start VM manually. It fixes compiling shared libraries 
(.so.xxx symlinks) and other various projects creating symlinks at 
installation.


Have a nice day,
Andrey___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Shell command to enable/disable Developer mode

2015-07-07 Thread Andrey Kozhevnikov

ssh access disabling by clearing nemo password

-- Исходное сообщение --
От: "Alexander Ladygin" 
Кому: "Sailfish OS Developers" 
Отправлено: 08.07.2015 0:20:03
Тема: Re: [SailfishDevel] Shell command to enable/disable Developer mode


Thanks Jens,

but i'm not talking about usb connection mode. I meant developer mode 
which can be enabled in settings to enable  ssh access.



Regards,
Alexander Ladygin.

On Tue, Jul 7, 2015 at 8:27 PM, jklingen  
wrote:

Hi Alexander,

you're looking for usb_moded_util.

Try
usb_moded_util -h
it's pretty much self-explaining :)

Best regards,
Jens


Am 07.07.2015 um 15:39 schrieb Alexander Ladygin:

Hi there, fellow developers!

I was wondering whether there is a shell command to enable/disable 
Developer mode?


Thanks!

Regards,
Alexander Ladygin.


___
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

Re: [SailfishDevel] Setting App Priority

2015-07-14 Thread Andrey Kozhevnikov

set app you want to use with xdg-mime tool

-- Исходное сообщение --
От: neotericdevelo...@gmail.com
Кому: devel@lists.sailfishos.org
Отправлено: 14.07.2015 18:50:54
Тема: [SailfishDevel] Setting App Priority


Ahoy Sailors.
I am Asker.
 I am a completely new to sailfish(linux) os app development.  Can i 
set app priority.


 Consider App AA has mime type text/plain and app BB has also same mime 
type text/plain.   If app AA is install first followed by app BB, 
whenever plainText file is clicked from filemanager only app BB is 
opened. How can i make to open App AA always regardless how many apps 
with same mime type is installed there after.


Any help.
Thanks in advance.


Content-Type: message/rfc822
Content-Disposition: attachment;
 filename="Re: [SailfishDevel] Support for paid applications.eml"
Content-Transfer-Encoding: 7bit

From: "E.S. Rosenberg" 
Reply-to: "E.S. Rosenberg" 
To: "Sailfish OS Developers" 
Cc: "john\@pietrzak.org" 
Subject: Re: [SailfishDevel] Support for paid applications
Date: Sun, 12 Jul 2015 20:27:56 +0530
Message-ID: 
X-Mailer: EPOC Email Version 2.10
MIME-Version: 1.0
Content-Language: i-default
Content-Type: multipart/alternative;
  boundary="EPOC32-7,wrHmzs-gpSTbS6LZHxq'3cH6VBXJcpCp_G+LZ1Fvy64sLV"

This is a MIME Message

--EPOC32-7,wrHmzs-gpSTbS6LZHxq'3cH6VBXJcpCp_G+LZ1Fvy64sLV
Content-Type: TEXT/PLAIN; charset=UTF-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

As far as I understand if the user allows non-trusted sources s/he can
install any rpm, so if you have a way to sell rpms the answer is 
yes


But that does require 'considerable' effort both on the part of the 
user
(going into settings and changing a setting) and on your part to setup 
your

selling/licensing infrastructure

HTH,
Eli

2015-07-11 20:27 GMT+03:00 Giuliettasw :


 Ofc its possible for example if the app provides its own licensing /
 purchase service.


 Best,
 tk

 Von meinem iPad gesendet

 Am 11.07.2015 um 13:52 schrieb John Pietrzak :

 Hey, newbie question here.  Can I ask, is distribution via Jolla's
 "harbor" (or some equivalent store) the only viable way to sell 
software on
 a Sailfish device?  I'm not a huge fan of the "closed garden" 
ecosystem
 used by Apple & Google.  I remember being able to purchase Joikuspot 
on my

 N900 without going through any "store"...

 On 7/11/15 5:37 AM, Bob Summerwill wrote:

 Please could we get a status update?


 
https://together.jolla.com/question/6522/harbourstore-support-for-paid-applications/


 If the newly licensing-oriented Jolla wants to make any sales, this
 feature is essential.

 Without a means for developers to make money (hint - donations are 
nice

 but thoroughly inadequate) the ecosystem will never grow.

 Unless this is seen as outside of the scope of Sailfish?  Ie. Store 
would

 be an 'exercise for the reader', provided by licensees on a per
 manufacturer basis.


 ___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


--EPOC32-7,wrHmzs-gpSTbS6LZHxq'3cH6VBXJcpCp_G+LZ1Fvy64sLV
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: base64

PGRpdiBkaXI9Imx0ciI+PGRpdj48ZGl2PjxkaXY+QXMgZmFyIGFzIEkgdW5k
ZXJzdGFuZCBpZiB0aGUgdXNlciBhbGxvd3Mgbm9uLXRydXN0ZWQgc291cmNl
cyBzL2hlIGNhbiBpbnN0YWxsIGFueSBycG0sIHNvIGlmIHlvdSBoYXZlIGEg
d2F5IHRvIHNlbGwgcnBtcyB0aGUgYW5zd2VyIGlzIHllcy4uLi48YnI+PGJy
PjwvZGl2PkJ1dCB0aGF0IGRvZXMgcmVxdWlyZSAmIzM5O2NvbnNpZGVyYWJs
ZSYjMzk7IGVmZm9ydCBib3RoIG9uIHRoZSBwYXJ0IG9mIHRoZSB1c2VyIChn
b2luZyBpbnRvIHNldHRpbmdzIGFuZCBjaGFuZ2luZyBhIHNldHRpbmcpIGFu
ZCBvbiB5b3VyIHBhcnQgdG8gc2V0dXAgeW91ciBzZWxsaW5nL2xpY2Vuc2lu
ZyBpbmZyYXN0cnVjdHVyZS4uLi48YnI+PGJyPjwvZGl2PkhUSCw8YnI+PC9k
aXY+RWxpPGJyPjwvZGl2PjxkaXYgY2xhc3M9ImdtYWlsX2V4dHJhIj48YnI+
PGRpdiBjbGFzcz0iZ21haWxfcXVvdGUiPjIwMTUtMDctMTEgMjA6MjcgR01U
KzAzOjAwIEdpdWxpZXR0YXN3IDxzcGFuIGRpcj0ibHRyIj4mbHQ7PGEgaHJl
Zj0ibWFpbHRvOnVzZXJzLmdpdWxpZXR0YUBnbWFpbC5jb20iIHRhcmdldD0i
X2JsYW5rIj51c2Vycy5naXVsaWV0dGFAZ21haWwuY29tPC9hPiZndDs8L3Nw
YW4+Ojxicj48YmxvY2txdW90ZSBjbGFzcz0iZ21haWxfcXVvdGUiIHN0eWxl
PSJtYXJnaW46MCAwIDAgLjhleDtib3JkZXItbGVmdDoxcHggI2NjYyBzb2xp
ZDtwYWRkaW5nLWxlZnQ6MWV4Ij48ZGl2IGRpcj0iYXV0byI+PGRpdj5PZmMg
aXRzIHBvc3NpYmxlIGZvciBleGFtcGxlIGlmIHRoZSBhcHAgcHJvdmlkZXMg
aXRzIG93biBsaWNlbnNpbmcgLyBwdXJjaGFzZSBzZXJ2aWNlLjwvZGl2Pjxk
aXY+PGJyPjwvZGl2PjxkaXY+PGJyPjwvZGl2PjxkaXY+QmVzdCw8L2Rpdj48
ZGl2PnRrPGJyPjxicj5Wb24gbWVpbmVtIGlQYWQgZ2VzZW5kZXQ8L2Rpdj48
ZGl2PjxkaXYgY2xhc3M9Img1Ij48ZGl2Pjxicj5BbSAxMS4wNy4yMDE1IHVt
IDEzOjUyIHNjaHJpZWIgSm9obiBQaWV0cnphayAmbHQ7PGEgaHJlZj0ibWFp
bHRvOmpwaWV0cnphazhAZ21haWwuY29tIiB0Y

[SailfishDevel] Base62 conversion

2015-07-14 Thread Andrey Kozhevnikov

Hello!

Is anybody have functions to encode/decode random length QByteArray to 
Base62 without using long integers?


Any help appreciated.

Regards,
Andrey___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Setting App Priority In sailfish

2015-07-15 Thread Andrey Kozhevnikov

https://lists.sailfishos.org/pipermail/devel/2015-July/006334.html

-- Исходное сообщение --
От: neotericdevelo...@gmail.com
Кому: devel@lists.sailfishos.org
Отправлено: 16.07.2015 4:20:23
Тема: [SailfishDevel] Setting App Priority In sailfish


Ahoy Sailors.
I am Asker.
 I am a completely new to sailfish(linux) os app development. Is it 
posisible to set app priority for an app.


 Consider App AA has mime type text/plain and app BB has also same mime 
type text/plain.   If app AA is installed first followed by app BB, 
whenever plainText file is clicked from filemanager only app BB is 
opened. How can i make to open App AA always regardless how many apps 
with same mime type is installed there after.


Any help.
Thanks in advance.

___
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

Re: [SailfishDevel] Opening messaging app from qml.

2015-07-21 Thread Andrey Kozhevnikov

sms:+1234567890?body=hello works for me

-- Исходное сообщение --
От: neotericdevelo...@gmail.com
Кому: devel@lists.sailfishos.org
Отправлено: 21.07.2015 16:36:38
Тема: [SailfishDevel] Opening messaging app from qml.


Hello Sailors..

I tried to open default messaging app using the below code(qml). But 
its not invoking the msg app.


Qt.openUrlExternally("sms:?body=msgtosend");

I also tried this one by providing dummy phone number.

Qt.openUrlExternally("sms:0123456789?body=msgtosend");
Still not working.

How can i successfully open the messaging app with text to send from 
qml.


Any help.
Thanks in advance.

___
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

Re: [SailfishDevel] [VB]verr not supported

2015-07-21 Thread Andrey Kozhevnikov

works well for me with 4.3.30

-- Исходное сообщение --
От: "Florian Desneux" 
Кому: "Sailfish OS Developers" 
Отправлено: 21.07.2015 23:27:55
Тема: [SailfishDevel] [VB]verr not supported


Hi there,

I have a problem with my new Sailfish VB installation: when I run 
Virtual Box, it finds well the vdi files but is unable to recognize 
them.


The error is:

Could not get the storage format of the medium C:\...\med.vdi 
(VERR_NOT_SUPPORTED).

More details ↓
Error code:
VBOX_E_IPRT_ERROR (0x80BB0005)
Component :
Medium
Interface :
IMedium {05f2bbb6-a3a6-4fb9-9b49-6d0dda7142ac}
Called function :
IVirtualBox {fafa4e17-1ee2-4905-a10e-fe7c18bf5554}
Returned code :
VBOX_E_OBJECT_NOT_FOUND (0x80BB0001)


I installed the VB 5, but saw a post saying to downgrade to VB 4.*. So 
now I have the VB 4.3.30. Should I install an older version than the 
4.3.30?


Thank you in advance

--
Florian Desneux___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] [VB]verr not supported

2015-07-22 Thread Andrey Kozhevnikov

Let's hope SailfishOS 2.0 SDK will have VBox5.x support, right?

-- Исходное сообщение --
От: "Stijn Devriendt" 
Кому: "Sailfish OS Developers" 
Отправлено: 22.07.2015 14:46:42
Тема: Re: [SailfishDevel] [VB]verr not supported


Hi,

I've had the same issue with virtualbox 5 and solved it as follows:
Download CloneVDI and make a clone of the VDI files (make sure to keep
the same UUID).
Then replace the original file with the cloned file.

That should be all. I've also found that integration with virtualbox 5
is not ideal in the sailfish SDK,
so you might still want to go for virtualbox 4.

Regards,
Stijn

On Wed, Jul 22, 2015 at 11:03 AM, Jussi Pakkanen
 wrote:

 On 21.07.2015 21:27, Florian Desneux wrote:


 I have a problem with my new Sailfish VB installation: when I run
 Virtual Box, it finds well the vdi files but is unable to recognize 
them.



 Did you try to use the images with VirtualBox 5? If yes, it might 
have done

 something to them so they no longer work right with version 4.

 Please try to fully uninstall the SDK, check with the VirtualBox 
management
 tool that the VMs have been completely removed and then do a 
reinstall.


 Thanks,
 ___
 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

Re: [SailfishDevel] Apps own icon?

2015-07-22 Thread Andrey Kozhevnikov
currently you can access it only by full path, but probably good idea is 
to put same icon into your project folder


-- Исходное сообщение --
От: "Thomas Tanghus" 
Кому: "Sailfish OS Developers" 
Отправлено: 22.07.2015 16:59:40
Тема: [SailfishDevel] Apps own icon?

This may be a total n00b question, but I couldn't find anything about 
it:


I want to show my apps icon in the "About" page - how do I access it?

--
Med venlig hilsen / Best regards

Thomas Tanghus___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Sailfish os on Nokia N9

2015-07-28 Thread Andrey Kozhevnikov

I see sfa and sfe is same dir, probably symlinks.

-- Исходное сообщение --
От: "Zoltán Lutor" 
Кому: "Sailfish OS Developers" 
Отправлено: 28.07.2015 13:05:45
Тема: Re: [SailfishDevel] Sailfish os on Nokia N9


Hi,

What is 'sfe' and 'sfa' here: http://images.devaamo.fi/?

Br,

Zoltan

2015-07-27 12:46 GMT+02:00 Fabio Isgrò :

http://images.devaamo.fi/sfe/n9/

Is quiet old ... my fault ... but is easilly buildable via kickstart 
file ...


Regards
F.

On Tue, Jul 21, 2015 at 9:16 PM, xenobi789  wrote:
WelcomewhetherSailfish oswill ever bereleasedNokia 
N9?.LastSailfishosversion made availableto 
Nokiathisv1.0.2.5whetherthis is the end ?

___
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

Re: [SailfishDevel] Big images in qml rich text

2015-07-29 Thread Andrey Kozhevnikov
i can suggest to remove images from html and paste it below with Image 
component.


-- Исходное сообщение --
От: "Samuli Silvius" 
Кому: "Sailfish OS Developers" 
Отправлено: 30.07.2015 0:46:56
Тема: [SailfishDevel] Big images in qml rich text


Hi,

I have a problem with jolla2gether app when question includes big 
image. App is showing text as rich text with qml html markup i..e 
images are shown as . If image size in very big it will jam not 
only the app but whole phone until it reboots itself.


Any way to prevent? img tag supports only width and height attributes 
and those does not help the situation.


Example of such together link: 
https://together.jolla.com/question/97469/how-to-replace-earreceiver-speaker/


Br
-Samuli___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Unable to run Sailfish OS emulator

2015-08-04 Thread Andrey Kozhevnikov
Maybe it's same with 
https://lists.sailfishos.org/pipermail/devel/2015-July/006357.html?


-- Исходное сообщение --
От: "Marcin Bajor" 
Кому: devel@lists.sailfishos.org
Отправлено: 05.08.2015 4:17:42
Тема: [SailfishDevel] Unable to run Sailfish OS emulator


Hi,
I'm not able to run emulator and mer after install of SDK. VirtualBox 
5.0

The error message:
Could not open the medium
'/home/marcin/devel/SailfishOS/emulator/sailfishos.vdi'.
VDI: invalid header in 
'/home/marcin/devel/SailfishOS/emulator/sailfishos.vdi'

(VERR_VD_VDI_INVALID_HEADER).
VD: error VERR_VD_VDI_INVALID_HEADER opening image file
'/home/marcin/devel/SailfishOS/emulator/sailfishos.vdi'
(VERR_VD_VDI_INVALID_HEADER).


Kod wyniku (RC):
NS_ERROR_FAILURE (0x80004005)
Komponent:
MediumWrap
Interfejs:
IMedium {4afe423b-43e0-e9d0-82e8-ceb307940dda}

How to fix it?

Regards
Marcin Bajor___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Accessing C++ properties from QML

2015-08-13 Thread Andrey Kozhevnikov

for properties system you should use Q_PROPERTY macro inside your class.

-- Исходное сообщение --
От: "Antonio Mancini" 
Кому: "Sailfish OS Developers" 
Отправлено: 13.08.2015 18:14:29
Тема: [SailfishDevel] Accessing C++ properties from QML

Hi all, i need to access a property of a C++ Class, declared inside 
another class, from QML.


This is the principal class:


#ifndef MANAGER_H
#define MANAGER_H

#include 
#include 
#include 
#include "monster.h"
#include "move.h"
#include "turnmanager.h"


class Manager : public QObject
{
Q_OBJECT

public:
explicit Manager(QObject *parent = 0);

int activeId;
QString activeString;

int enemyId;

Monster active;
Monster enemy;

Move activeMove;
Move enemyMove;

Q_INVOKABLE void saveActive();
Q_INVOKABLE void fetchMonster( const int &level );
Q_INVOKABLE void assignMoves(Monster &monster );
Q_INVOKABLE void setMove( Move &move, const int &id );

signals:

void fetchMonsterDone();

public slots:

};

#endif // MANAGER_H


this is the Monster Class:


#ifndef MONSTER_H
#define MONSTER_H

#include 
#include 
#include 
#include "move.h"


class Monster : public QObject
{
Q_OBJECT

public:

explicit Monster(QObject *parent = 0);

...

QString name;

...
};

#endif // MONSTER_H


in my qml page i include the class properly and i have something like 
this:



Page {
id: page
Manager {
id: manager
onFetchMonsterDone: {
 console.log("Fetch done")
}
}
Label {
id: label
}
}


after doing some operations with fetchMonster(), the "active" class has 
been assigned some values to its properties, i need to access these 
values from QML in the "onFetchMonsterDone", let's say i need to assign 
to label.text the value of manager.active.name


OR

i read there are some ways to access end edit QML properties from C++

Can someone help me?___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Experimental prerelease SDK

2015-09-11 Thread Andrey Kozhevnikov
Oh My God! You finally offering upgrade method almost officially! 
Thanks!


-- Исходное сообщение --
От: "Jussi Pakkanen" 
Кому: devel@lists.sailfishos.org
Отправлено: 11.09.2015 17:52:52
Тема: [SailfishDevel] Experimental prerelease SDK


Hi all

In preparation for the upcoming Sailfish OS 2.0 release we have been 
looking into providing a prerelease version of the SDK. Unfortunately 
we can not provide an officially supported version just yet, but in the 
spirit of hacking we can provide you a way to upgrade your current SDK 
into the next version.


Note that there are several limitations in this approach and it is only 
recommended for those people who want to test that their apps compile 
with the next version of the SDK. Specifically the limitations include 
(but are not limited to):


- there is no guarantee of any kind, if these instructions break your 
install, you get to keep both pieces :)


- the emulator can not be updated, so testing your apps might not work, 
though they can be deployed to devices that have 1.1.9 prerelease 
installed


- apps built against the 1.1.9 SDK might not be accepted to harbor, 
even if they work on your device


- whenever the real 1.1.9 SDK comes out, it will overwrite any changes 
made


If you are fine with these limitations and want to test your app 
against the next Sailfish OS version, read on.


First of all you should create a snapshot of your MerSDK build machine 
using the control tool that comes with VirtualBox. If you wish to 
return to the regular SDK (or your build machine gets broken for any 
reason) just restore the snapshot.


Start the MerSDK and log in to it with SSH using the following command:

ssh -p  -i ~/SailfishOS/vmshare/ssh/private_keys/engine/mersdk 
mersdk@localhost


Once you are logged in, issue the following commands:

sb2 -t SailfishOS-i486 -m sdk-install -R ssu release 1.1.9.28
sb2 -t SailfishOS-i486 -m sdk-install -R zypper ref -f
sb2 -t SailfishOS-i486 -m sdk-install -R zypper dup

sb2 -t SailfishOS-armv7hl -m sdk-install -R ssu release 1.1.9.28
sb2 -t SailfishOS-armv7hl -m sdk-install -R zypper ref -f
sb2 -t SailfishOS-armv7hl -m sdk-install -R zypper dup

sudo ssu release 1.1.9.28

sudo zypper ref -f
sudo zypper dup

Once this is done, reboot the MerSDK vbox machine.
___
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

Re: [SailfishDevel] executing step 'qmake'

2015-09-13 Thread Andrey Kozhevnikov

I think you should show complete build log :)

-- Исходное сообщение --
От: "Dylan Van Assche" 
Кому: devel@lists.sailfishos.org
Отправлено: 13.09.2015 22:48:39
Тема: [SailfishDevel] executing step 'qmake'


Hi Devel-Sailors,

I want to build the I2CTool app in the SDK however I get this error:

19:43:27: The process 
"/home/dylan/.config/SailfishBeta5/mer-sdk-tools/MerSDK/SailfishOS-i486/qmake" 
exited with code 126.


Error while building/deploying project i2ctool (kit: 
MerSDK-SailfishOS-i486)


When executing step 'qmake'



If I try it with another app I get the same error...

Cheers,
Dylan___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Share Plugin

2015-09-14 Thread Andrey Kozhevnikov
It's nemomobile transfer-engine, and docs are here: 
https://github.com/nemomobile/transfer-engine

But share plugins are not allowed for Jolla Store yet.

-- Исходное сообщение --
От: "Nicolas Cisco" 
Кому: "Sailfish OS Developers" 
Отправлено: 14.09.2015 6:50:22
Тема: [SailfishDevel] Share Plugin

I've seen that some apps have a Share option. The gallery uses it, and 
i remember that Mitakuuluu app implemented. I couldn't find any 
official documentation, i found a unanswered question in jolla together 
( 
https://together.jolla.com/question/28188/where-is-the-shareshareui-api-in-sailfishos/ 
). Is there any unofficial documentation about the share plugin?.


Thanks in advanced!

--
Nicolas Cisco
www.nckweb.com.ar___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] QML switch connecting to a C++ function

2015-09-14 Thread Andrey Kozhevnikov

Hello!

You need to read following links. If you have any future problems please 
ask it with including your source code, which don't work properly.


http://doc.qt.io/qt-5/qtqml-cppintegration-definetypes.html
http://doc.qt.io/qt-5/qtqml-cppintegration-exposecppattributes.html

-- Исходное сообщение --
От: "Dylan Van Assche" 
Кому: "Sailfish OS Developers" 
Отправлено: 14.09.2015 13:05:50
Тема: [SailfishDevel] QML switch connecting to a C++ function


Hi devel-Sailors,

I have read a lot of tutorials about exposing data from C++ to QML and 
the other way.
Even source code from I2CTools which has the component that I need: 
enable and disable VDD.
However, I still don't understand how to connect a simple switch to a 
C++ function. I no longer see the wood for the trees.


Can somebody assist me here?

Cheers,
Dylan

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

Re: [SailfishDevel] Can't use QDeviceInfo

2015-09-16 Thread Andrey Kozhevnikov

or just add sailfishapp in config AFTER link_pkgconfig entry ;)

-- Исходное сообщение --
От: "Kimmo Lindholm" 
Кому: "Sailfish OS Developers" 
Отправлено: 17.09.2015 1:58:51
Тема: Re: [SailfishDevel] Can't use QDeviceInfo


add sailfishapp also to the PKGCONFIG




Lähettäjä: devel-boun...@lists.sailfishos.org 
[devel-boun...@lists.sailfishos.org] käyttäjän tw_bolek 
[tw_bo...@op.pl] puolesta

Lähetetty: 16. syyskuuta 2015 23:55
Vastaanottaja: devel@lists.sailfishos.org
Aihe: [SailfishDevel] Can't use QDeviceInfo


 do you have such in your .pro
 CONFIG += link_pkgconfig
 PKGCONFIG += Qt5SystemInfo


Just added:

CONFIG += sailfishapp \
   link_pkgconfig
PKGCONFIG += Qt5SystemInfo

Now I get:

undefined reference to `SailfishApp::main(int&, char**)'

___
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

Re: [SailfishDevel] setContextProperty

2015-09-16 Thread Andrey Kozhevnikov

Hello,

https://lists.sailfishos.org/pipermail/devel/2013-December/001717.html

-- Исходное сообщение --
От: "tw_bolek" 
Кому: "devel@lists.sailfishos.org" 
Отправлено: 17.09.2015 2:29:27
Тема: [SailfishDevel] setContextProperty

Please excuse me guys for being such a newbie. Coming from BB10 where 
many details are different, I have a lot of problems with even the most 
basic stuff on Sailfish :(


I have a Q_INVOKABLE - let's say something like:

QInt DoSomeMath() {

// does some calulation

return result;

}

and I need to call it from QML, e.g. like this:

myQmlProperty = _myapp.DoSomeMath()

I've got everything working, except for how (and where) to 
setContextProperty (_myapp) so that I can call it from QML...


Can you please help?  That's ALL left to make my project complete.

Once again, thank you very much!
Bolek
___
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

Re: [SailfishDevel] Problem installing lipstick-qt5-tools to get notification tool

2015-09-25 Thread Andrey Kozhevnikov

pkcon refresh
pkcon install lipstick-qt5-tools

for notifications look at 
https://sailfishos.org/develop/docs/nemo-qml-plugin-notifications/


to make it work while locked you need this: 
https://github.com/nemomobile/nemo-keepalive


-- Исходное сообщение --
От: "Gurvan Kervern" 
Кому: devel@lists.sailfishos.org
Отправлено: 25.09.2015 0:49:44
Тема: [SailfishDevel] Problem installing lipstick-qt5-tools to get 
notification tool



Hi,



I hope I'm posting on the right list, if not please excuse me :)

I want to make a small notification tool for myself using 
bash/Python/Perl. This page mentions an already existing tool which 
seems interesting : 
https://together.jolla.com/question/78054/how-to-check-notifications-via-command-line/ 
. Unfortunately I can't install lipstick-qt5-tools, I get this error :


Resolving dependencies
Fatal error: lipstick-qt5-tools-0.27.20.5-1.61.3.armv7hl requires 
libdsme_dbus_if.so.0.2.0, but this requirement cannot be provided


If I search these libraries, I get :

Installed   libdsme-0.64.1-1.5.1.armv7hlDSME 
dsmesock dynamic library
Available   libdsme-0.63.2-1.4.2.armv7hlDSME 
dsmesock dynamic library


Unfortunately the installed package provides the 3.0 version :

[root@Jolla ~]# find / -name 'libdsme_dbus_if*'
find: /home/nemo/android_storage/.aptoide/icons: Interrupted system 
call

/usr/lib/libdsme_dbus_if.so.0.3.0
/usr/lib/libdsme_dbus_if.so.0
/opt/alien/usr/lib/libdsme_dbus_if.so.0.3.0
/opt/alien/usr/lib/libdsme_dbus_if.so.0

What should I do?
1) Install libdsme-0.63.2-1.4.2.armv7hl? (coudl it break existing 
applications?)
2) make a symbolic link to a libdsme_dbus_if.so.0.2.0 from the existing 
libdsme_dbus_if.so.0.3.0? (doesn't seem very clean...)

3) Something else?

Otherwise, if someone found a good documentation on how to send 
yourself/a user notifications (sound, SMS, etc...) without making a 
full-feldged c++ Jolla application, I would be interested.
I made a little tool sending me SMS a while ago, but it didn't work 
very well as it didn't send them while phone was locked and/or if the 
screen had gone black. I was using dbus-send :
dbus-send --system --print-reply --dest=org.ofono /ril_0 
org.ofono.MessageManager.SendMessage string:"etc...


Regards,
Gurvan
___
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

Re: [SailfishDevel] Emulator and multimedia components

2015-09-25 Thread Andrey Kozhevnikov
You should always specify all extra you have in CONFIG and 
LINK_PKGCONFIG to BuildRequires and Requires in spec/yaml


-- Исходное сообщение --
От: "Kaj-Michael Lang" 
Кому: devel@lists.sailfishos.org
Отправлено: 25.09.2015 17:59:23
Тема: [SailfishDevel] Emulator and multimedia components

I'm trying to get a basic port available of my radio app for the 
tablet,

using the tablet emulation mode. The emulator image seems to default to
missing most of gstreamer and qt multimedia packages.

I've done all my previous testing/development on the phone and on there
I could assume that everything needed was installed. And I seem to
remember that I was not supposed to list any such rpm dependencies.

How is it now, do I now need to specify all specific dependencies or
not ?


--
Kaj-Michael Lang 

___
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

Re: [SailfishDevel] How to use Insomniac?

2015-09-25 Thread Andrey Kozhevnikov
You probably did not converted project to subdirs. Check 
kitchentimer.pro file


-- Исходное сообщение --
От: jollail...@gmail.com
Кому: devel@lists.sailfishos.org
Отправлено: 25.09.2015 19:21:36
Тема: [SailfishDevel] How to use Insomniac?


Hello,

I tried to import Insomniac to my Simple Stopwatch by copying the files 
from https://github.com/tanghus/kitchen-timer-qml/tree/master/insomniac 
to simplestopwatch/src/insomniac, replacing kitchentimer in the files 
with simplestopwatch and finally using 'Add Existing Files...' in the 
IDE (plus writing 'import harbour.simplestopwatch.insomniac 1.0' to the 
QML file).  Well, it doesn't work, building the project fails. How do I 
correctly import the plugin to my project?


--
Lähetetty Jollastani
___
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

Re: [SailfishDevel] How to use Insomniac?

2015-09-25 Thread Andrey Kozhevnikov

Look at kitchentimer.pro file, do not blindly append random lines.

-- Исходное сообщение --
От: jollail...@gmail.com
Кому: devel@lists.sailfishos.org
Отправлено: 25.09.2015 20:21:31
Тема: Re: [SailfishDevel] How to use Insomniac?

Oops, I thought it was working because all the folders and stuff were 
there at the IDE, but then building failed. I used the debugger and 
found out it need some other files from kitchentimer/src/. I copied all 
the files and replaced kitchentimer with simplestopwatch. Now it 
builds, but the app is just plain white. Could someone help? I updated 
the source code to https://github.com/jollailija/simplestopwatch/ 
please make a pull request.


Andrey Kozhevnikov kirjoitti pe syyskuuta 25 17:34:17 2015 GMT+0300:

 You probably did not converted project to subdirs. Check
 kitchentimer.pro file

 -- Исходное сообщение --
 От: jollail...@gmail.com
 Кому: devel@lists.sailfishos.org
 Отправлено: 25.09.2015 19:21:36
 Тема: [SailfishDevel] How to use Insomniac?

 >Hello,
 >
 >I tried to import Insomniac to my Simple Stopwatch by copying the 
files
 >from 
https://github.com/tanghus/kitchen-timer-qml/tree/master/insomniac
 >to simplestopwatch/src/insomniac, replacing kitchentimer in the 
files
 >with simplestopwatch and finally using 'Add Existing Files...' in 
the
 >IDE (plus writing 'import harbour.simplestopwatch.insomniac 1.0' to 
the
 >QML file).  Well, it doesn't work, building the project fails. How 
do I

 >correctly import the plugin to my project?
 >
 >--
 >Lähetetty Jollastani
 >___
 >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.or


--
Lähetetty Jollastani
___
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

Re: [SailfishDevel] How to use Insomniac?

2015-09-26 Thread Andrey Kozhevnikov
you should have subfolders in your project to be able to build multiple 
binaries


-- Исходное сообщение --
От: jollail...@gmail.com
Кому: devel@lists.sailfishos.org
Отправлено: 26.09.2015 17:24:56
Тема: Re: [SailfishDevel] How to use Insomniac?





 In harbour-simplestopwatch.pro remove or comment out the line "CONFIG 
+=

 sailfishapp".


 From the top of my head I can't see any other errors, other than that 
you
 don't need to also add folderlistmodel, display.h/cpp and 
qmlsettings.h/cpp

 unless you need need them. The Insomniac plugin doesn't need them.

 --
 Med venlig hilsen / Best regards

 Thomas Tanghus

Tack! I think I have broken a few things while trying to solve this, 
but I will revert to an older version and try importing Insomniac again 
following your instructions. I'll keep spamming your inbox if something 
goes wrong :)


--
Lähetetty Jollastani
___
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

Re: [SailfishDevel] How to use Insomniac?

2015-09-26 Thread Andrey Kozhevnikov
check 
https://github.com/tanghus/kitchen-timer-qml/blob/master/harbour-kitchentimer.pro 
and https://github.com/tanghus/kitchen-timer-qml/blob/master/src/src.pro 
carefully


-- Исходное сообщение --
От: jollail...@gmail.com
Кому: devel@lists.sailfishos.org
Отправлено: 26.09.2015 17:50:21
Тема: Re: [SailfishDevel] How to use Insomniac?

How do I do that? Please remember I am a total newbie. I updated my 
github repository, please see builderror.txt and issues.png for more 
info if needed.


Andrey Kozhevnikov kirjoitti la syyskuuta 26 15:26:47 2015 GMT+0300:
 you should have subfolders in your project to be able to build 
multiple

 binaries

 -- Исходное сообщение --
 От: jollail...@gmail.com
 Кому: devel@lists.sailfishos.org
 Отправлено: 26.09.2015 17:24:56
 Тема: Re: [SailfishDevel] How to use Insomniac?

 >
 >>
 >>  In harbour-simplestopwatch.pro remove or comment out the line 
"CONFIG

 >>+=
 >>  sailfishapp".
 >>
 >>
 >>  From the top of my head I can't see any other errors, other than 
that

 >>you
 >>  don't need to also add folderlistmodel, display.h/cpp and
 >>qmlsettings.h/cpp
 >>  unless you need need them. The Insomniac plugin doesn't need 
them.

 >>
 >>  --
 >>  Med venlig hilsen / Best regards
 >>
 >>  Thomas Tanghus
 >>
 >Tack! I think I have broken a few things while trying to solve this,
 >but I will revert to an older version and try importing Insomniac 
again
 >following your instructions. I'll keep spamming your inbox if 
something

 >goes wrong :)
 >
 >--
 >Lähetetty Jollastani
 >___
 >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.or


--
Lähetetty Jollastani
___
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

Re: [SailfishDevel] How to use Insomniac?

2015-09-26 Thread Andrey Kozhevnikov
missed whole installs from 
https://github.com/tanghus/kitchen-timer-qml/blob/master/src/insomniac/insomniac.pro 
?


-- Исходное сообщение --
От: "Jollailija Developer" 
Кому: "Sailfish OS Developers" 
Отправлено: 26.09.2015 18:22:22
Тема: Re: [SailfishDevel] How to use Insomniac?

Like, seriously, just gimme a break. Ques what? I think I missed 
something:


[W] unknown:32 - 
file:///opt/sdk/harbour-simplestopwatch/usr/share/harbour-simplestopwatch/qml/harbour-simplestopwatch.qml:32:1: 
module "harbour.simplestopwatch.insomniac" is not installed


import harbour.simplestopwatch.insomniac 1.0



How do I fix it? What did I miss?


^


2015-09-26 16:11 GMT+03:00 Jollailija Developer :
Phew, I think I did it! It now builds without errors and deploys 
nicely into the emulator. I'll build it for the phone and test it out 
(but before that write the QML code using it, duh), but so far so 
good. Thanks for your help! This is why I love (developing for) 
Sailfish so much, there are always some helpful people in case you 
don't manage to do something on your own. Thanks again!


2015-09-26 15:56 GMT+03:00 Andrey Kozhevnikov 
:
check 
https://github.com/tanghus/kitchen-timer-qml/blob/master/harbour-kitchentimer.pro 
and 
https://github.com/tanghus/kitchen-timer-qml/blob/master/src/src.pro 
carefully


-- Исходное сообщение --
От: jollail...@gmail.com
Кому: devel@lists.sailfishos.org
Отправлено: 26.09.2015 17:50:21

Тема: Re: [SailfishDevel] How to use Insomniac?

How do I do that? Please remember I am a total newbie. I updated my 
github repository, please see builderror.txt and issues.png for more 
info if needed.


Andrey Kozhevnikov kirjoitti la syyskuuta 26 15:26:47 2015 GMT+0300:
 you should have subfolders in your project to be able to build 
multiple

 binaries

 -- Исходное сообщение --
 От: jollail...@gmail.com
 Кому: devel@lists.sailfishos.org
 Отправлено: 26.09.2015 17:24:56
 Тема: Re: [SailfishDevel] How to use Insomniac?

 >
 >>
 >>  In harbour-simplestopwatch.pro remove or comment out the line 
"CONFIG

 >>+=
 >>  sailfishapp".
 >>
 >>
 >>  From the top of my head I can't see any other errors, other 
than that

 >>you
 >>  don't need to also add folderlistmodel, display.h/cpp and
 >>qmlsettings.h/cpp
 >>  unless you need need them. The Insomniac plugin doesn't need 
them.

 >>
 >>  --
 >>  Med venlig hilsen / Best regards
 >>
 >>  Thomas Tanghus
 >>
 >Tack! I think I have broken a few things while trying to solve 
this,
 >but I will revert to an older version and try importing Insomniac 
again
 >following your instructions. I'll keep spamming your inbox if 
something

 >goes wrong :)
 >
 >--
 >Lähetetty Jollastani
 >___
 >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.or


--
Lähetetty Jollastani
___
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

Re: [SailfishDevel] How to use Insomniac?

2015-10-03 Thread Andrey Kozhevnikov

You can just check sources one more time and more carefully :)

https://github.com/tanghus/kitchen-timer-qml/blob/master/rpm/harbour-kitchentimer.spec#L9-L11

-- Исходное сообщение --
От: "Jollailija Developer" 
Кому: "Sailfish OS Developers" 
Отправлено: 03.10.2015 14:28:09
Тема: Re: [SailfishDevel] How to use Insomniac?

Thanks Tanghus! As discussed earlier, I needed to remove the /lib 
subfolder from those paths to build the project. Now it makes the RPM 
packages nicely, but I noticed some errors:

WARNING: translations.path is not defined: install target not created
- -
warning: File listed twice: /usr/share/harbour-simplestopwatch/harbour

warning: File listed twice: 
/usr/share/harbour-simplestopwatch/harbour/simplestopwatch


warning: File listed twice: 
/usr/share/harbour-simplestopwatch/harbour/simplestopwatch


- -

warning: File listed twice: 
/usr/share/harbour-simplestopwatch/harbour/simplestopwatch/insomniac


warning: File listed twice: 
/usr/share/harbour-simplestopwatch/harbour/simplestopwatch/insomniac


warning: File listed twice: 
/usr/share/harbour-simplestopwatch/harbour/simplestopwatch/insomniac


warning: File listed twice: 
/usr/share/harbour-simplestopwatch/harbour/simplestopwatch/insomniac/libinsomniac.so


warning: File listed twice: 
/usr/share/harbour-simplestopwatch/harbour/simplestopwatch/insomniac/libinsomniac.so


warning: File listed twice: 
/usr/share/harbour-simplestopwatch/harbour/simplestopwatch/insomniac/libinsomniac.so


warning: File listed twice: 
/usr/share/harbour-simplestopwatch/harbour/simplestopwatch/insomniac/qmldir


warning: File listed twice: 
/usr/share/harbour-simplestopwatch/harbour/simplestopwatch/insomniac/qmldir


warning: File listed twice: 
/usr/share/harbour-simplestopwatch/harbour/simplestopwatch/insomniac/qmldir



warning: File listed twice: /usr/lib/debug/.build-id



Also, RPM validator says the following:
- -

Libraries

=

INFO 
[/usr/share/harbour-simplestopwatch/harbour/simplestopwatch/insomniac/libinsomniac.so] 
Shared library for private QML import (qmldir found)


PASSED

- -

Provides



ERROR [libinsomniac.so] 'Provides: libinsomniac.so' not allowed in RPM

FAILED

- -

Requires



ERROR [libc.so.6(GLIBC_2.17)] Cannot require shared library: 
'libc.so.6(GLIBC_2.17)'


INFO [harbour-simplestopwatch] Please see our FAQ here: 
https://harbour.jolla.com/faq#2.6.0 how to use 
'__provides_exclude_from' and '__requires_exclude' .spec file to avoid 
that


FAILED

- -

RPATH

=

OK [rpath in binary seems to be ok: 
'/usr/share/harbour-simplestopwatch/lib']


PASSED

- -



So, I can't submit it to the Harbour. How to fix? :) I updated my 
source code at github.com/jollailija/simplestopwatch



2015-09-27 16:01 GMT+03:00 Thomas Tanghus :

On Friday 25 September 2015 15:58:28 jollail...@gmail.com wrote:
> Maybe I am just too tired, but I don't understand what I should be 
looking

> for in the kitchentimer.pro file. I'll look at it more tomorrow

I'm not quite sure how this works, but in 
/rpm/harbour-simplestopwatch.yaml

try to add under "Files:":

- '%{_datadir}/%{name}/lib/harbour/simplestopwatch/insomniac'
- '%{_datadir}/%{name}/lib/harbour/simplestopwatch'
- '%{_datadir}/%{name}/lib/harbour'

At least that's how it looks in my setup.

--
Med venlig hilsen / Best regards

Thomas Tanghus

A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?

___
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

Re: [SailfishDevel] How to use Insomniac?

2015-10-03 Thread Andrey Kozhevnikov
It should be very great app randomly combining different lines of 
different sources, and just works with some unknown magic :D


-- Исходное сообщение --
От: "Jollailija Developer" 
Кому: "Sailfish OS Developers" 
Отправлено: 03.10.2015 19:47:53
Тема: Re: [SailfishDevel] How to use Insomniac?

I can confirm that this has done the trick. I also added some lines to 
harbour-simplestopwatch.pro and Compile Output no longer says that 
translations.path is not defined. I will now submit the app to Harbour, 
hopefully everything will work this time :) Thank you for your help.___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] How to use Insomniac?

2015-10-14 Thread Andrey Kozhevnikov
i think just one day nemomobile-keepalive qml plugin will be allowed for 
harbour.


-- Исходное сообщение --
От: "Thomas Tanghus" 
Кому: "Sailfish OS Developers" 
Отправлено: 14.10.2015 15:38:42
Тема: Re: [SailfishDevel] How to use Insomniac?


On Saturday 03 October 2015 10:46:05 jollail...@gmail.com wrote:

 Andrey Kozhevnikov kirjoitti la lokakuuta 3 12:32:09 2015 GMT+0300:

 > You can just check sources one more time and more carefully :)
 >
 > 
https://github.com/tanghus/kitchen-timer-qml/blob/master/rpm/harbour-kitch

 > entimer.spec#L9-L11

 >

 Thank you! I'll try that when I get on the computer. I think I 
misunderstood
 the whole "drop-in replacement"-thing, seems like I have a lot to 
learn.


I would also prefer to make libinsomniac a real "drop-in 
replacement"-thing ;)
as apparently quite a few people are using it by now, but I don't think 
that's

possible with the current Harbour rules?

PS: I wish I'd named it better now that others are using it, but I 
couldn't

find a better name from the top of my head ;)

--
Med venlig hilsen / Best regards

Thomas Tanghus

A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] SailfishOS SDK 1510 and launcher icon for tablet version

2015-10-20 Thread Andrey Kozhevnikov

icon128.files = icon128/appname.png
icon128.path = /usr/share/icons/hicolor/128x128/apps
INSTALLS += icon128

and add /usr/share/icons/hicolor/128x128/apps to files section in 
yaml/spec


-- Исходное сообщение --
От: "Luca Donaggio" 
Кому: "Sailfish OS Developers" 
Отправлено: 20.10.2015 14:53:55
Тема: [SailfishDevel] SailfishOS SDK 1510 and launcher icon for tablet 
version


Launcher icon for the tablet version of any app should by 128x128 px 
and have to be deployed in 
/usr/share/icons/hicolor/128x128/apps/appname.png, but sailfishapp.prf 
and the auto-generated appname.yaml seems to take care only of launcher 
icon for the phone version (86x86 px).


Which is the best way to include a 128x128 px launcher icon in my 
projects?


Are there any plans to automate this process in a future SDK release?

--
Luca Donaggio___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Lipstick and xdg-open

2015-10-22 Thread Andrey Kozhevnikov
lipstick itself doesnt handle xdg, because it's a different things. to 
make it works like clicking in application grid you should use 
libcontentaction instead.


-- Исходное сообщение --
От: "r0kk3rz" 
Кому: "Sailfish OS Developers" 
Отправлено: 23.10.2015 2:09:41
Тема: [SailfishDevel] Lipstick and xdg-open


Hi Developers,

How does Lipstick handle xdg-open in cases when the app is already 
running?


When the app isn't running, I can currently open a file through 
xdg-open, which opens the app and passes in the file url as a command 
line parameter.


I expected that upon subsequent xdg-open calls, it would also call the 
program with command line parameter, which I could use to check for an 
open instance on dbus, fire off a method call, and close again. Sounds 
easy, but this doesn't seem to be the case.


If the app is already open, it comes into focus, and presumably needs 
some kind of an interface to get the open args?



Watching dbus-monitor, i can see the following happen as i am trying to 
open a file


method call sender=:1.394 -> dest=org.freedesktop.DBus serial=1 
path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; 
member=Hello
signal sender=:1.394 -> dest=(null destination) serial=2 
path=/org/gtk/gio/DesktopAppInfo; interface=org.gtk.gio.DesktopAppInfo; 
member=Launched


which has a parameter with my file url that i'm trying to open. And 
then lipstick brings my app into focus with this straight after


method call sender=:1.390 -> dest=org.nemomobile.lipstick serial=3 
path=/WindowModel; interface=local.Lipstick.WindowModel; 
member=launchProcess

   string "/usr/bin/harbour-sirensong"

Any information about how this is supposed to work?

Regards,

Lewis Rockliffe___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] How to require an exact sailfish version in rpm?

2015-10-23 Thread Andrey Kozhevnikov
for Harbour you not allowed to do so, for education purposes you can 
depend on sailfish-version package version :)


-- Исходное сообщение --
От: "Alexander Ladygin" 
Кому: "Sailfish OS Developers" 
Отправлено: 23.10.2015 15:46:33
Тема: [SailfishDevel] How to require an exact sailfish version in rpm?


Hello there sailors.

What should i put in .spec file to require a specific OS version?

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

Re: [SailfishDevel] How to require an exact sailfish version in rpm?

2015-10-23 Thread Andrey Kozhevnikov
check how spec file for patch should look: 
https://github.com/CODeRUS/sailfishos-launcher-combined-patch/blob/master/rpm/sailfishos-launcher-combined-patch.spec


-- Исходное сообщение --
От: "Alexander Ladygin" 
Кому: "Sailfish OS Developers" 
Отправлено: 23.10.2015 18:50:33
Тема: Re: [SailfishDevel] How to require an exact sailfish version in 
rpm?



it is for patches for pachmanager. And they are OS version dependant.

On Fri, Oct 23, 2015 at 4:07 PM, Artem Marchenko 
 wrote:
But then certainly you shouldn't need to refer to exact Sailfish OS 
version. Unless you want to tune the UI look, it's all about the 
versions of libraries used, right? ;)


Best regards,
Artem.


On Fri, Oct 23, 2015 at 2:47 PM, Alexander Ladygin  
wrote:

it's not for harbour, it's for openrepos
Thanks Andrei, sailfish-version will do it

On Fri, Oct 23, 2015 at 1:54 PM, Martin Grimme 
 wrote:

Hi,

depending on the used libraries, Harbour tries to detect the 
required

OS version automatically. But you can also select it manually if
Harbour's guess doesn't look good to you.


Martin


2015-10-23 12:50 GMT+02:00, Adam Pigg :
> You can also specify the is version in the harbour store listing.
>
> Sent from my BlackBerry 10 smartphone.
> From: Andrey Kozhevnikov
> Sent: Friday, 23 October 2015 11:48 AM
> To: Sailfish OS Developers
> Reply To: Andrey Kozhevnikov
> Subject: Re: [SailfishDevel] How to require an exact sailfish 
version in

> rpm?
>
> for Harbour you not allowed to do so, for education purposes you 
can depend

> on sailfish-version package version :)
>
> -- Исходное сообщение --
> От: "Alexander Ladygin" 
> Кому: "Sailfish OS Developers" 
> Отправлено: 23.10.2015 15:46:33
> Тема: [SailfishDevel] How to require an exact sailfish version in 
rpm?

>
>>
>> Hello there sailors.
>>
>> What should i put in .spec file to require a specific OS version?
>>
>> Alex.
>
>
>
___
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




--
Artem Marchenko
http://agilesoftwaredevelopment.com
http://twitter.com/AgileArtem

___
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

Re: [SailfishDevel] QtContacts & jolla-contacts app

2015-10-28 Thread Andrey Kozhevnikov
your application should run in "privileged" group to do so. you can do 
it using suid bit and setgid call, of course such application is not 
allowed for harbour.


-- Исходное сообщение --
От: "Michał" 
Кому: devel@lists.sailfishos.org
Отправлено: 28.10.2015 16:48:21
Тема: [SailfishDevel] QtContacts & jolla-contacts app


Hi,

I'm struggling with an issue related to QtContacts API and 
jolla-contacts app.


Using QtContacts, I can get, update or create new contact. It works as 
expected, so my app is able to access phone's contacts. The issue I 
have is when I create new contact via QtContacts, this contact is not 
visible in jolla-contacts app. I "see" this new contact via QtContacts 
in the same way how I "see" other contacts, but for some reason, I 
can't see contacts created with QtContacts API in jolla-contacts.


Any idea what could be wrong?



QContactManager cm = new QContactManager();

QContactDisplayLabel label;
label.setLabel("Test Contact");

QContactName name;
name.setFirstName("Test");
name.setLastName("Contact");

QContactPhoneNumber number;
number.setNumber("111-111-111");

QContact contact;
contact.saveDetail(&label);
contact.saveDetail(&name);
contact.saveDetail(&number);

cm->saveContact(&contact));



-- Michal

___
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

<    1   2   3   4   5   6   >