[SailfishDevel] QQuickView showFullscreen() and ApplicationWindow.activate() not working after application window deactivated

2013-11-03 Thread Andrey Kozhevnikov

minimized window by gesture, ApplicationWindow deactivated() signal received
tried to restore window to foreground usong view-showFullscreen() in Qt 
and appWindow.activate() in QML, but no luck.
activated() signal received and applicationActive is true, but window 
not in foreground.


Any info about this bug?
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] File chooser

2013-11-05 Thread Andrey Kozhevnikov
FilePicker should choose file from whole filesystem (we cam always have 
settings to restrict it to $HOME or i.e.) and TrackerPicker should 
select media from Tracker database. Two different solutions is better.


On 05.11.2013 02:29, jezra wrote:

On Mon, 04 Nov 2013 09:32:06 -0200
Roberto Colistete Jr. roberto.colist...@gmail.com wrote:


Em 04-11-2013 07:41, Artem Marchenko escreveu:

As for my current person and arguably humble opinion, iOS is doing
just great without the file dialog. It does force/encourage all the
apps use own sandbox only (and own file-like selection dialogs
then) and calls for workarounds when you actually want apps to
interoperate, but.. the simplicity benefits you get to user by
hiding the file level are great.

  Please, Sailfish community, don't take Android, iOS and other
dumbed down mobile OS as examples. These mobile OS limit the freedom
of the users, as well as developers : fake multi-tasking, restricted
file system access, no dependencies, etc. For example, Ubuntu Touch
13.10 has more limitations than Android, because Canonical takes
Android and iOS as models to copy many features. Please, Sailfish
community, continue to take the examples from Maemo, MeeGo Harmattan
and Nemo Mobile. ___
SailfishOS.org Devel mailing list

I couldn't agree more. Please do not limit the freedom of the
users. When I visit a web page with a file upload form and I click the
file input field, I expect a file selection dialog to let me pick a
file on my device to upload.

jezra
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Innovative app store. Or just a traditional one

2013-11-05 Thread Andrey Kozhevnikov

OpenRepos.net is here

many features are coming. Client app Warehouse available for Harmattan. 
Sailfish client is coming too.


On 06.11.2013 04:47, Martin Kolman wrote:

I'll chip in with my idea/RFE:

Built-in donation support.

* usecase
- the app is free
- but there is a donation button in the store interface
- users can click it to donate to the developer

As it is part of the store interface, it can use the same payment 
mechanism
as paid apps, making the donation procedure as painless as possible 
and thus more likely. :)

In-application donation buttons need to use external payment methods,
that have many drawbacks such as:
- being evil (PayPal)
- not widely used (Flattr)
- experimental (Bitcoin)
- generally not being available in many countries

* example of store having something like this - Mozilla addons
https://addons.mozilla.org/en-US/firefox/

Each extension can have a Contribute button, see the Firebug 
extension as an example:

https://addons.mozilla.org/en-US/firefox/addon/firebug/

* could be a nice first :)

I don't know about any current mobile store having built-it donation 
support,

so it could be another nice first for Jolla. :)


5.11.2013 22:04, Artem Marchenko:

Hi All

Phone is going to be in sales soon, app store is going to accompany 
it. What would you as app developer appreciate in the app phone?


Is there anything on top of just buy an app or just buy this game 
upgrade in-app what could be an important feature for you? Any 
disruptive ideas?



As for me, I'd appreciate a couple of options:

1. Built-in try-before-you-buy.
To get rid of free/paid app pairs you see in the other app platforms. 
If developer doesn't mind, user should just be able to use app for 
free for some 7 or 30 days. After that - only after payment or with 
some features downgraded.


2. Built-in subscriptions, especially for micro-sums
Subscription-based schemes motivate developers to improve apps all 
the time while worrying less about hit-or-miss situation, so it would 
be cool if app store supported it.


I seriously would think even of small prices as just $0.95 a year, 
but it has to be charged on a monthly basis yet nobody is going to 
bug users with 10 cents monthly paid upgrade.


It would be great if app store supported such subscription methods 
natively. And certainly it could be seamlessly combined with 
try-before-you-buy so that first month is completely free.


What do you think?

Cheers,
Artem.

P.S.
I am not working for Jolla, just a random developer interested in the 
topic.


--
Artem Marchenko
http://agilesoftwaredevelopment.com
http://twitter.com/AgileArtem


___
SailfishOS.org Devel mailing list




___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Jolla Harbour and Jolla Store

2013-11-06 Thread Andrey Kozhevnikov

Please more information about Harbour:

- it can accept only single files, means i cant upload some libraries, 
required as depends for my appliction?


- does it acts as repository?

On 06.11.2013 17:06, Karl Granström wrote:

Ahoy all,

Today we're launching Jolla Harbour harbour.jolla.com, the portal for 
submitting applications to the Jolla Store.
You can submit and manage your applications. Consumers will be able to install 
them directly from their Jolla phones.

Here are some details about Jolla Harbour:
  
Joining and logging into Jolla Harbour:

Joining is free! You can create a Jolla account from the Jolla Harbour landing 
page (harbour.jolla.com) or if you have pre-ordered your Jolla phone, you have 
everything you need to get started. To manage your account details, please 
visit account.jolla.com.
  
Support for Sailfish and Android™ applications:

You can submit both Sailfish and Android™ applications to Jolla Harbour. The 
submission process is the same.
  
Start with free applications:

At launch, the Jolla Harbour and Jolla Store will support only free 
applications. We are working hard to enable payment solutions and we will keep 
you posted about these capabilities as they develop.
  
Binary package naming:

You will receive naming guidelines when you upload the binary package to Jolla 
Harbour. You can also find guidelines on versioning at http://semver.org.
  
Preparing your metadata:

Jolla Harbour needs to know a few things about your app:
  - An app icon for the Store  (86x86px, png) (Current SDK supports 90x90px 
images; more details to follow soon)
  - 1-3 screenshots (540x960px, png or jpg)
  - An optional Cover image for your Store page (516x252px, png or jpg)
  
Submission process:

To submit your application to Jolla Harbour, fill in the metadata for it and 
upload the binary and required images. After you have submitted your app, Jolla 
will start Quality Assurance testing.
  
Quality Assurance testing:

Jolla will perform QA testing on your applications on real Jolla devices. We 
will get back to you with feedback on your app within a few days. You will be 
notified on the QA results via the email address you have registered to your 
Jolla account.
  
  
If you encounter any issues, please contact us by email, developer-c...@jolla.com, or report them to the Sailfish developers mailing list at devel at lists.sailfishos.org.


Happy hacking!
The Jolla Store Team


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Jolla Harbour and Jolla Store

2013-11-06 Thread Andrey Kozhevnikov
Actually mean uploading application with its depends. Application goes 
to applications, depends goes to sailfish harbour depends repository.


If not we still need OpenRepos for Sailfish :)

On 06.11.2013 18:27, Jonni Rainisto wrote:

HI,

AFAIK, uploading libraries to store is forbidden, you can only depend on common 
mer/nemomobile libraries in .spec/rpm Requires field.

re, Jonni

From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] 
on behalf of Andrey Kozhevnikov [coderusin...@gmail.com]
Sent: Wednesday, November 06, 2013 1:40 PM
To: devel@lists.sailfishos.org
Subject: Re: [SailfishDevel] Jolla Harbour and Jolla Store

Please more information about Harbour:

- it can accept only single files, means i cant upload some libraries,
required as depends for my appliction?

- does it acts as repository?

On 06.11.2013 17:06, Karl Granström wrote:

Ahoy all,

Today we're launching Jolla Harbour harbour.jolla.com, the portal for 
submitting applications to the Jolla Store.
You can submit and manage your applications. Consumers will be able to install 
them directly from their Jolla phones.

Here are some details about Jolla Harbour:

Joining and logging into Jolla Harbour:
Joining is free! You can create a Jolla account from the Jolla Harbour landing 
page (harbour.jolla.com) or if you have pre-ordered your Jolla phone, you have 
everything you need to get started. To manage your account details, please 
visit account.jolla.com.

Support for Sailfish and Android™ applications:
You can submit both Sailfish and Android™ applications to Jolla Harbour. The 
submission process is the same.

Start with free applications:
At launch, the Jolla Harbour and Jolla Store will support only free 
applications. We are working hard to enable payment solutions and we will keep 
you posted about these capabilities as they develop.

Binary package naming:
You will receive naming guidelines when you upload the binary package to Jolla 
Harbour. You can also find guidelines on versioning at http://semver.org.

Preparing your metadata:
Jolla Harbour needs to know a few things about your app:
   - An app icon for the Store  (86x86px, png) (Current SDK supports 90x90px 
images; more details to follow soon)
   - 1-3 screenshots (540x960px, png or jpg)
   - An optional Cover image for your Store page (516x252px, png or jpg)

Submission process:
To submit your application to Jolla Harbour, fill in the metadata for it and 
upload the binary and required images. After you have submitted your app, Jolla 
will start Quality Assurance testing.

Quality Assurance testing:
Jolla will perform QA testing on your applications on real Jolla devices. We 
will get back to you with feedback on your app within a few days. You will be 
notified on the QA results via the email address you have registered to your 
Jolla account.


If you encounter any issues, please contact us by email, 
developer-c...@jolla.com, or report them to the Sailfish developers mailing 
list at devel at lists.sailfishos.org.

Happy hacking!
The Jolla Store Team


___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Loading installed images

2013-11-06 Thread Andrey Kozhevnikov

deploy as rpm package.
binary deploying suitable if you dont know anything what to do :D

On 06.11.2013 18:35, Mark Johnson wrote:
I'm working on a graphics editing project where the user can perform 
some rudimentary drawing and having a problem when trying to load in 
sample images that are included with the install.


In the project file structure I've got a folder called samples which 
has some png images.


In the yaml file I've defined under the Files section:
/usr/share/imagewiz/samples/*.png

And in the code I've tried:
QPixmap sample1 = new 
QPixmap(/opt/sdk/imagewiz/usr/samples/sample1.png);


Anyone got any smart ideas what I'm doing wrong?

Thanks,
Mark


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Jolla Harbour and Jolla Store

2013-11-06 Thread Andrey Kozhevnikov

Opensource dies here :D

On 06.11.2013 22:12, Marcin M. wrote:
It's not a pity when it comes to libraries. It is when you create a 
modular app ;) - divided into packages. But if there was an 
in-app-purchase system, it wouldn't be so bad :)


--
Marcin


2013/11/6 Mohammed Hassan mohammed.has...@jollamobile.com 
mailto:mohammed.has...@jollamobile.com


I don't see it as a pity. I see it as an opportunity for everyone
to push their libraries and stuff to mer/nemo/sailfish.

An advantage of SailfishOS is that everyone can contribute and
have their
own applications, libraries and tools there.

Just my 0.02

Cheers,

On Wed, Nov 06, 2013 at 05:06:58PM +0100, Marcin M. wrote:
  Hi,
  Thanks! Well, it's a pity ;(
  Regards,

  --
  Marcin
  2013/11/6 Jonni Rainisto [1]jonni.raini...@jolla.com
mailto:jonni.raini...@jolla.com

  Hi,
  AFAIK. Currently you can only depend on mer/nemomobile
packages, you
  cannot depend on store packages.
  re, Jonni
  __

  From: [2]devel-boun...@lists.sailfishos.org
mailto:devel-boun...@lists.sailfishos.org
  [[3]devel-boun...@lists.sailfishos.org
mailto:devel-boun...@lists.sailfishos.org] on behalf of Marcin M.
  [[4]marmistrz...@gmail.com mailto:marmistrz...@gmail.com]
  Sent: Wednesday, November 06, 2013 5:34 PM
  To: Sailfish OS Developers
  Subject: Re: [SailfishDevel] Jolla Harbour and Jolla Store
  And what about in-app-store depends? (Free app, paid databases,
  databases depend on the free app)
  --
  Marcin
  2013/11/6 Andrey Kozhevnikov [5]coderusin...@gmail.com
mailto:coderusin...@gmail.com

  Good point, thanks!

  On 06.11.2013 18:30, Jonni Rainisto wrote:

  And if some good library is missing, and you are willing to
maintain
  the library, feel free trying to get it added to Mer/Nemomobile
side
  (after that you can depend against it).
  re, Jonni
  
  From: [6]devel-boun...@lists.sailfishos.org
mailto:devel-boun...@lists.sailfishos.org
  [[7]devel-boun...@lists.sailfishos.org
mailto:devel-boun...@lists.sailfishos.org] on behalf of Jonni
Rainisto
  [[8]jonni.raini...@jolla.com mailto:jonni.raini...@jolla.com]
  Sent: Wednesday, November 06, 2013 2:27 PM
  To: Sailfish OS Developers
  Subject: Re: [SailfishDevel] Jolla Harbour and Jolla Store
  HI,
  AFAIK, uploading libraries to store is forbidden, you can only
  depend on common mer/nemomobile libraries in .spec/rpm Requires
  field.
  re, Jonni
  
  From: [9]devel-boun...@lists.sailfishos.org
mailto:devel-boun...@lists.sailfishos.org
  [[10]devel-boun...@lists.sailfishos.org
mailto:devel-boun...@lists.sailfishos.org] on behalf of Andrey
  Kozhevnikov [[11]coderusin...@gmail.com
mailto:coderusin...@gmail.com]
  Sent: Wednesday, November 06, 2013 1:40 PM
  To: [12]devel@lists.sailfishos.org
mailto:devel@lists.sailfishos.org
  Subject: Re: [SailfishDevel] Jolla Harbour and Jolla Store
  Please more information about Harbour:
  - it can accept only single files, means i cant upload some
  libraries,
  required as depends for my appliction?
  - does it acts as repository?
  On 06.11.2013 17:06, Karl Granström wrote:

  Ahoy all,
  Today we're launching Jolla Harbour [13]harbour.jolla.com
http://harbour.jolla.com, the
  portal for submitting applications to the Jolla Store.
  You can submit and manage your applications. Consumers will be able
  to install them directly from their Jolla phones.
  Here are some details about Jolla Harbour:
  Joining and logging into Jolla Harbour:
  Joining is free! You can create a Jolla account from the Jolla
  Harbour landing page ([14]harbour.jolla.com
http://harbour.jolla.com) or if you have
  pre-ordered your Jolla phone, you have everything you need to get
  started. To manage your account details, please visit
  [15]account.jolla.com http://account.jolla.com.
  Support for Sailfish and Android^(TM) applications:
  You can submit both Sailfish and Android^(TM) applications to Jolla
  Harbour. The submission process is the same.
  Start with free applications:
  At launch, the Jolla Harbour and Jolla Store will support only free
  applications. We are working hard to enable payment solutions
and we
  will keep you posted about these capabilities as they develop.
  Binary package naming:
  You will receive naming guidelines when you upload the binary
  package to Jolla Harbour. You can also find guidelines on
versioning
  at [16]http://semver.org.
  Preparing your metadata:
  Jolla Harbour needs to know

Re: [SailfishDevel] Jolla Harbour and Jolla Store

2013-11-06 Thread Andrey Kozhevnikov

Okay. Next question about depends:

- which nemo repositories will be enabled as libraries sources?

- what is procedure of including libraries to this repositories?

the main point is building gui separate from library and update only 
gui/library when need. it good choice when both gui and libraries have 
big size to download again


On 06.11.2013 22:45, Marcin M. wrote:

No dependencies mean problems too...

--
Marcin


2013/11/6 Benoît HERVIER kher...@khertan.net 
mailto:kher...@khertan.net


But apps shipping his own libraries mean not updated library, and
could be a mess if there is a security issue on one of it s libs ...

There is always advantages and problems :)

Le 2013-11-06 17:25, ??? a écrit :


i think every app should be independent. apps' dependence caused
many problems.

???(Guo Yunhe)
http://guoyunhe.me/

? 2013-11-7 ??12:13,Marcin M. marmistrz...@gmail.com
mailto:marmistrz...@gmail.com? ?:

It's not a pity when it comes to libraries. It is when you
create a modular app ;) - divided into packages. But if there
was an in-app-purchase system, it wouldn't be so bad :)

--
Marcin


2013/11/6 Mohammed Hassan mohammed.has...@jollamobile.com
mailto:mohammed.has...@jollamobile.com

I don't see it as a pity. I see it as an opportunity for
everyone
to push their libraries and stuff to mer/nemo/sailfish.

An advantage of SailfishOS is that everyone can
contribute and have their
own applications, libraries and tools there.

Just my 0.02

Cheers,

On Wed, Nov 06, 2013 at 05:06:58PM +0100, Marcin M. wrote:
  Hi,
  Thanks! Well, it's a pity ;(
  Regards,

  --
  Marcin
  2013/11/6 Jonni Rainisto [1]jonni.raini...@jolla.com
mailto:jonni.raini...@jolla.com

  Hi,
  AFAIK. Currently you can only depend on mer/nemomobile
packages, you
  cannot depend on store packages.
  re, Jonni

 __

  From: [2]devel-boun...@lists.sailfishos.org
mailto:devel-boun...@lists.sailfishos.org
  [[3]devel-boun...@lists.sailfishos.org
mailto:devel-boun...@lists.sailfishos.org] on behalf of
Marcin M.
  [[4]marmistrz...@gmail.com
mailto:marmistrz...@gmail.com]
  Sent: Wednesday, November 06, 2013 5:34 PM
  To: Sailfish OS Developers
  Subject: Re: [SailfishDevel] Jolla Harbour and Jolla Store
  And what about in-app-store depends? (Free app, paid
databases,
  databases depend on the free app)
  --
  Marcin
  2013/11/6 Andrey Kozhevnikov
[5]coderusin...@gmail.com mailto:coderusin...@gmail.com

  Good point, thanks!

  On 06.11.2013 18:30, Jonni Rainisto wrote:

  And if some good library is missing, and you are
willing to maintain
  the library, feel free trying to get it added to
Mer/Nemomobile side
  (after that you can depend against it).
  re, Jonni
  
  From: [6]devel-boun...@lists.sailfishos.org
mailto:devel-boun...@lists.sailfishos.org
  [[7]devel-boun...@lists.sailfishos.org
mailto:devel-boun...@lists.sailfishos.org] on behalf of
Jonni Rainisto
  [[8]jonni.raini...@jolla.com
mailto:jonni.raini...@jolla.com]
  Sent: Wednesday, November 06, 2013 2:27 PM
  To: Sailfish OS Developers
  Subject: Re: [SailfishDevel] Jolla Harbour and Jolla Store
  HI,
  AFAIK, uploading libraries to store is forbidden, you
can only
  depend on common mer/nemomobile libraries in .spec/rpm
Requires
  field.
  re, Jonni
  
  From: [9]devel-boun...@lists.sailfishos.org
mailto:devel-boun...@lists.sailfishos.org
  [[10]devel-boun...@lists.sailfishos.org
mailto:devel-boun...@lists.sailfishos.org] on behalf of
Andrey
  Kozhevnikov [[11]coderusin...@gmail.com
mailto:coderusin...@gmail.com]
  Sent: Wednesday, November 06, 2013 1:40 PM
  To: [12]devel@lists.sailfishos.org
mailto:devel@lists.sailfishos.org
  Subject: Re: [SailfishDevel] Jolla Harbour and Jolla Store
  Please more information about Harbour

Re: [SailfishDevel] Jolla Harbour and Jolla Store

2013-11-06 Thread Andrey Kozhevnikov
And please tell about possible ways for paying for application and 
developer ways to receive funds.


On 07.11.2013 03:29, Michal Jerz wrote:

Hi guys,

It's a great news about the store, and a great name, too.  I have 9
applications ported to Sailfish OS from Harmattan/Symbian, but they're
commercial, so I hope that submission of paid apps will soon be allowed as
well...


Anyway, I also have a few remarks regarding the current specification of the
store (in a good purpose, so that the store is as good as possible, both for
publishers and customers). I know that it's just the beginning, but I also
know that if something isn't done at start then either it never comes or it
takes ages to add it...

1) *PLEASE* allow more screenshots than just THREE. It has always been a
major problem with the Nokia store that only 3 screenshots could be posted.
It is way too little to properly present even just part of functionality of
more complex applications. I am not saying that it should be up to 64
screenshots like in the BlackBerry store but *FIVE* is IMO a minimum.

2) I could not find what's the character limit of the application's
description, but I hope that it's bigger than Nokia Store's 400 characters,
for the same reasons as above. It is nearly impossible to properly describe
a complex application's functionality within 400 characters. Using
abbreviations like  instead of every and, skipping spaces after commas,
etc. only to manage to fit a few more words is a common practice at the
Nokia store due to their tiny limit, and it still doesn't help much. Just to
compare, the BlackBerry store allows 4000 characters.

3) PLEASE, allow publishers to post replies to customers' reviews in the
store, like e.g. in Google Play.  No such possibility in the Nokia store,
along with no access to any reviewer's contact data, prevents ANY
communication between publishers and their users/customers. It often happens
that in the Nokia store a customer complains about a trivial problem (often
at the user's end) that could be very easily resolved if a reply could be
posted, but lack of such possibility causes that the reviewer stays with his
problem and his negative comment also remains and scares away others.  In
the worst case, please at least allow publishers to accept/deny reviews,
like in the Blackberry store...

4) Please, distinguish native applications from Android applications in the
store, even just with some kind of icon. RIM does so with Built for
Blackberry apps - a small BB icon is shown on lists and in the description.
  Native Sailfish OS applications should be distinguished and promoted
somehow - this will surely stimulate native development...

Well, that's all for now...

Or maybe one more question: is there any news regarding availability of
developer units? All my applications use sensors, the GPS receiver, one also
uses the camera none of which can be tested in the emulator. I'd like to
make sure everything works fine prior to publishing the applications
(especially that they're commercial, so it is important to make sure that
what people will be paying for really works perfectly).  Maybe you could
offer some kind of PRE-PRE-sales to developers who have several projects
ready for publication? I'll happily pay for a developer unit if I can only
get access to it as early as possible so that I can have all my applications
ready before the phone starts shipping...

Many thanks and kindest regards,
Michal
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


[SailfishDevel] Emoji in Sailfish

2013-11-07 Thread Andrey Kozhevnikov
Will be Emoji supported by Sailfish internally by Silica components at 
real devices? Or we should start prepare hacks for components for custom 
Emoji support?

___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Jolla Harbour and Jolla Store

2013-11-08 Thread Andrey Kozhevnikov
If Harbour will have an alternate paying methods such as Paypal and etc. 
it will be acceptable.


On 08.11.2013 03:40, Jonni Rainisto wrote:

DRM has nothing to to do with with copy protection. DRM on mobile devices 
usually means supporting DRM PlayReady (Microsoft) or Widevine L1 L2 L3 L4 
(google). And we dont have those in Sailfish OS.

There is no Aegis on the system, and after you enable developer mode, you have 
_true_ root access to the device and can freely replace system binaries and do 
what ever you want with your device (you may lose warranty when you enable 
developer mode).

Everything is crackable, copy protection library is just supposed to make 
cracking and copying process hard enough so that most of the people will just 
choose to use store for getting their rpm's. And to give app developers easier 
ways to give some protection their applications so direct .rpm file copy from 
device to device wont work, so you don't have to invent the wheel again and 
again by creating their own copy protection solutions. And if you have a danger 
of beeing blacklisted from Store if your detected of using cracked applications 
it also might scare some people from using cracked apps.

Nobody forces you to use any copy protection libraries in your applications 
that you develop or you can try to create your own solution. And you can just 
choose not to use any protection in your commercial appliations (then your 
applications can be freely copied from device to device, just like on N9).

Hopefully that answered your question.

re, Jonni

From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] 
on behalf of Attila Csipa [q...@csipa.in.rs]
Sent: Thursday, November 07, 2013 10:09 PM
To: devel@lists.sailfishos.org
Subject: Re: [SailfishDevel] Jolla Harbour and Jolla Store

On 07-Nov-13 01:42, Jonni Rainisto wrote:

We are working hard on adding copy protection

In the context of Will you support DRM? No in your FAQ, and having an
open, hackable device environment, please do elaborate. I sincerely hope
that Jolla has learned from the Aegis experience and general success
of copy-protection schemes on other platforms.

Best regards,
Attila
___
SailfishOS.org Devel mailing list
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Jolla Harbour and Jolla Store

2013-11-08 Thread Andrey Kozhevnikov

well. IMEI checkings is bad idea. device id is better.

Also its good to have Beta versions in Harbour, to allow selected 
lists of users install beta packages. Similar to WP store feature :)


And i'm voting for Gift! button in self application options, to allow 
some user install your application for free and not to be banned in Harbour.


On 08.11.2013 23:02, Martin Kolman wrote:

8.11.2013 16:18, Marcin M.:
Well, this all anty-piracy campaign is going too far! :) Who lives by 
the sword, dies by the sword.


1. People who won't have money - won't buy. If they can't use the 
apps, they won't use the system. And choose Android/Jailbroken iOS
2. It's becoming a little spy-like to send data from device to the 
manufacturer's servers! It's not IE to access internet from your 
device and vice versa
I'll point to all the criticism Canonical is currently facing due to 
the DASH privacy issues  their botched handling of it (most recent 
being the fixubuntu case).


Also regarding the previously mentioned IMEI checking, just something 
to think about in regards of leaking the IMEI:

http://mobile.slashdot.org/story/12/09/08/2126234/whatsapp-is-using-imei-numbers-as-passwords

3. How can we detect if someone installed a free version from 
talk.maemo.org http://talk.maemo.org instead of buying the same 
version from Harbor? What about being given the package by the developer?


I think that there's no use in write a complicated copy protection 
library. The optimal option is to just make installing (just using 
CLI would discourage many). If someone wants to crack, he'll crack 
anyway or not use the platform at all.


And... Losing warranty after dev mode? Please elaborate.

Also interested to hear a clarification to this.


Regards,

--
Marcin


2013/11/8 Andrey Kozhevnikov coderusin...@gmail.com 
mailto:coderusin...@gmail.com


Well. As Harmattan havent copy protection at all, developers
started creating own methods for detecting if application is
*really* bought by user. And it was done using osa binaries. You
can always get application source, and if it osa - application
installed from Store (means paid applicatioin was bought).

I see following:

Lightweight library provides methods for developer to detect if
application installed from Harbour (bought actually) or not.
Daemon side of library handles this calls and send negative
results to Harbour servers. This protection library should
provide also some kind of *sandbox*. Functions, included into
sandbox will be executed in safe threads and will be
self-obfuscated and protected from modifications. Any byte
changing *sandbox* part of application cause showing warning
screen when application starting, application became misbehave or
quiting after some period of time, and sending information to
Harbour servers.

And developer can choose which strategy application will use:
easy or hard, or make own methods based on easy *is bought?* checks.


On 08.11.2013 12:02, Jonni Rainisto wrote:

That's good, but what I don't get in that case is... does
that
coincidentally mean enable developer mode == disable
copy protection?

It doesn't mean that.  It will be lightweight, does not limit
resources and does not care what mode you are on. People will
just have to wait for untill its ready before more datails
will be available. But feel free to give suggestions what
kind of API's you would prefer to have as a developer in
Harbour to make your life easier.

re, Jonni

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
Attila Csipa [q...@csipa.in.rs mailto:q...@csipa.in.rs]
Sent: Friday, November 08, 2013 2:37 AM
To: Mohammed Hassan; Sailfish OS Developers
Subject: Re: [SailfishDevel] Jolla Harbour and Jolla Store

On 07-Nov-13 15:51, Mohammed Hassan wrote:

Not quite :) What I'm interested in is what *will* be
there (or,
rather, what resources will it limit) as opposed to
what is NOT
going to be there (whether not having Aegis there is
good, or bad,
depends on what you will have there instead is better
or worse than
Aegis).

As Jonni said:
After you enable developer mode, you have _true_ root
access to the device
and can freely replace system binaries and do what ever
you want with your
device (you may lose warranty when you enable developer
mode).

That's good, but what I don't get in that case is... does

Re: [SailfishDevel] Jolla Harbour and Jolla Store

2013-11-08 Thread Andrey Kozhevnikov
Maybe Humble Bundle strategy then? Pay as more as you can and then you 
can get apps you want :)


On 09.11.2013 03:48, Michal Jerz wrote:

People who won't have money - won't buy. If they can't
use the apps, they won't use the system. And choose
Android/Jailbroken iOS

The N9 costed $650 and generally wasn't subsidized, so it certainly wasn't a
phone for 'poor people'. How could have a person afforded a $650 smartphone
but not a $1 application? It obviously wasn't about no money but about
not willing to spend any money if a copy is available for free and so
EASILY installable, without ANY effort or risk.

As for if they can't use the apps they won't use the system and will choose
Android instead, I really do want to support Sailfish OS, but I don't think
I am ready to give up on all my revenue only to attract to the platform
those who don't want to spend any money on anything but the device itself.
I'm not THAT altruistic :-)

Lastly, on a platform providing Android compatibility, possible revenue of
'native developers' is already strongly (negatively) affected by
availability of TENS OF THOUSANDS of free (and cracked) Android
applications. I released several paid apps for BB10 and I know how hard it
is to compete with numerous freely available Android equivalents (even worse
- but free).

For any given native application to be made for Sailfish OS (or BB10), at
least a DOZEN free Android equivalents already exist. To make someone buy
the native application, it will have to be CONSIDERABLY BETTER, thus
requiring even more effort and investment. I am ready for that challenge,
but please let's NOT further diminish chances of native Sailfish OS
developers by opting AGAINST any copy protection, especially an OPTIONAL one
that won't be forcing anyone to use it.

For a platform to be REALLY successful, I believe it takes both a lot of
'happy users' and a lot of 'happy developers'. Not JUST users. Unless one
thinks that all Sailfish OS needs is possibility to run Android apps, as
that's how it'll end up if developing native software turns out to be
completely unrewarding... I'm afraid that as just a good looking Android
emulator it would not survive long.


If someone wants to crack, he'll crack anyway

At least he will have to make the effort, and those who then install it will
have to bear some risk (e.g. of getting blacklisted from the store, as Ronni
wrote).

Referring to an example from my previous email, why do you have any locks in
your home's or garage's door? If someone wants to break in, he'll break in
anyway... It's kind of inconsistent to have locks at home and vote against
any software protection.

Obviously, it's not that all those who use cracked copies would buy a legal
copy if no crack was available. But THE EASIER it is to make/get a cracked
version and the easier (and risk-free) it is to install it, the more people
GET TEMPTED to use it instead of paying even just $1 (which, I am sure,
every owner of a $500-600 smartphone can afford, unless he stole it, too).
So it is actually a matter of *ALTERNATIVE COST*. Make it sufficiently
cumbersome (and possibly also risky) and at least SOME people will find
paying $1 simply EASIER and QUICKER than bothering with not so easily
installable and potentially risky stuff.  Or opt for lack of any protection
and only real altruists (i.e. probably some 0,5% of this species) will pay
you $1 for what they can get for free without ANY risk and with THE SAME
effort.


Cheers,
Michal
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] SDK paths reference

2013-11-10 Thread Andrey Kozhevnikov
afaik Sailfish uses canonical paths. /usr/share/appname for persistent 
data and $HOME/.local/share/appname for user data.


On 10.11.2013 17:19, Tone Kastlunger wrote:

Hey;
is there some kind of path reference for Sailfish available yet?
Something like the Harmattan Path reference for instance.

Best,
tortoisedoc


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] SDK paths reference

2013-11-10 Thread Andrey Kozhevnikov
some system plugins or plugins for your own application? for system 
plugins you should know where to put them. And for own application 
plugins create /usr/share/appname/plugins folder and keep plugins there.


On 10.11.2013 17:24, Tone Kastlunger wrote:
Thanks coderus, this is for apps; how about the other relevant OS 
paths (plugins, etc)?

tortoisedoc


On Sun, Nov 10, 2013 at 1:23 PM, Andrey Kozhevnikov 
coderusin...@gmail.com mailto:coderusin...@gmail.com wrote:


afaik Sailfish uses canonical paths. /usr/share/appname for
persistent data and $HOME/.local/share/appname for user data.


On 10.11.2013 17:19, Tone Kastlunger wrote:

Hey;
is there some kind of path reference for Sailfish available yet?
Something like the Harmattan Path reference for instance.

Best,
tortoisedoc


___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list




___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] QSqlDatabase cannot create db file when deployed as rpm package

2013-11-12 Thread Andrey Kozhevnikov

have you added sql to your project CONFIG?

and what is resulting dbPath value?

On 12.11.2013 14:12, Stockona wrote:

Source code:

Q_DECL_EXPORTintmain(intargc,char*argv[]) {
   ...
FileHandler*fileHandler=newFileHandler();
view-rootContext()-setContextProperty(fileHandler,  fileHandler);
   ...
}

FileHandler::FileHandler(QObject*parent):QObject(parent){
...
 // /usr/share/Stockona/
  QString  dbPath  =  QString(DEPLOYMENT_PATH);
 dbPath.append(.stockona_db);
 qDebug()DB  path=dbPath;

 QSqlDatabase  db  =  QSqlDatabase::addDatabase(QSQLITE);
 db.setDatabaseName(dbPath);
 // Cannot open database when deployed as rpm
 bool  ok  =  db.open();
...
}


*From:* Andrey Kozhevnikov coderusin...@gmail.com
*To:* devel@lists.sailfishos.org
*Sent:* Monday, November 11, 2013 11:32 PM
*Subject:* Re: [SailfishDevel] QSqlDatabase cannot create db file when 
deployed as rpm package


My project working with QSQLITE local database, and everything good :)

Share your code and we can found issues.

On 12.11.2013 02:35, Stockona wrote:
When I switched to Deploy by copying binary, the database is 
created and connected correctly.
Changing the deployment to rpm package the same code just failed with 
database error message out of memory Error opening database.


I checked in Emulator terminal and the database file was not created 
at all. Is this a permission issue? How do I work around this?

Thanks in advance!



___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list




___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] QSqlDatabase cannot create db file when deployed as rpm package

2013-11-12 Thread Andrey Kozhevnikov

ah. you have no write permissions to these folders.
create db in /home/nemo/.local/share/Sockona
or /home/nemo/.config/Stockona

On 12.11.2013 14:25, Stockona wrote:

I have QT += sql in my pro.
DB path= /usr/share/Stockona/.stockona_db
By the way, db.lastError().text() and type() gave me:
Error: DB failed to open,  out of memory Error opening database  
errorType= 1


The path I got when deployed as binary was:
DB path= /opt/sdk/Stockona/usr/share/Stockona/.stockona_db
Database file can be created as expected with this configuration.

Thanks,
William


*From:* Andrey Kozhevnikov coderusin...@gmail.com
*To:* devel@lists.sailfishos.org
*Sent:* Tuesday, November 12, 2013 12:14 AM
*Subject:* Re: [SailfishDevel] QSqlDatabase cannot create db file when 
deployed as rpm package


have you added sql to your project CONFIG?

and what is resulting dbPath value?

On 12.11.2013 14:12, Stockona wrote:

Source code:

Q_DECL_EXPORTintmain(intargc,char*argv[]) {
   ...
FileHandler*fileHandler=newFileHandler();
view-rootContext()-setContextProperty(fileHandler,  fileHandler);
   ...
}

FileHandler::FileHandler(QObject*parent):QObject(parent){
...
 // /usr/share/Stockona/
  QString  dbPath  =  QString(DEPLOYMENT_PATH);
 dbPath.append(.stockona_db);
 qDebug()DB  path=dbPath;

 QSqlDatabase  db  =  QSqlDatabase::addDatabase(QSQLITE);
 db.setDatabaseName(dbPath);
 // Cannot open database when deployed as rpm
 bool  ok  =  db.open();
...
}


*From:* Andrey Kozhevnikov coderusin...@gmail.com 
mailto:coderusin...@gmail.com

*To:* devel@lists.sailfishos.org mailto:devel@lists.sailfishos.org
*Sent:* Monday, November 11, 2013 11:32 PM
*Subject:* Re: [SailfishDevel] QSqlDatabase cannot create db file 
when deployed as rpm package


My project working with QSQLITE local database, and everything good :)

Share your code and we can found issues.

On 12.11.2013 02:35, Stockona wrote:
When I switched to Deploy by copying binary, the database is 
created and connected correctly.
Changing the deployment to rpm package the same code just failed 
with database error message out of memory Error opening database.


I checked in Emulator terminal and the database file was not created 
at all. Is this a permission issue? How do I work around this?

Thanks in advance!



___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list




___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list




___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] How to? using SB2 environment.

2013-11-12 Thread Andrey Kozhevnikov

i have no mb2 or mb commands. something missing in my installation?

On 12.11.2013 15:03, David Greaves wrote:

On 12/11/13 08:19, Andrey Kozhevnikov wrote:

Can you give me example of using sb2 SailfishOS-i486-x86 environment for
cross-compilation?

$ sb2 -t SailfishOS-i486-x86 ./configure
Error: Target root directory does not exist
Failed to configure /opt/cross/bin/i486-meego-linux-gnu-gcc
Failed to upgrade configuration files

For some detail and background try:
   https://wiki.merproject.org/wiki/Platform_SDK_and_SB2

However, the 'mb2' command was written to make life easy for us; it's rare to
use sb2 by itself.

Note that the Sailfish SDK sets up the targets in a private area so they can
only be used from inside the build engine VM.

David


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Problem finding main qml file

2013-11-12 Thread Andrey Kozhevnikov

i'm using

view-setSource(SailfishApp::pathTo(qml/main.qml));

On 12.11.2013 18:45, Andreas Enbacka wrote:


Hello,

I am using view-setSource(QUrl::fromLocalFile(qml/projectName.qml)) 
to set the initial qml view for my app, however it is not found using 
run-time (it tries to access it from /home/nemo/qml/..). What is the 
correct way to specify the relative path in SailfishOS?


BR,
Andreas Enbacka

___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] How to use setContext() or what is recommended?!

2013-11-13 Thread Andrey Kozhevnikov
This is almost same what SailfishApp::main() does for you and it keeping 
booster working, just lets you to use application and view instances 
directly.


Have fun with Sailfish ;)

On 13.11.2013 21:23, Gabriel Boehme wrote:

Wow, thanks to you and also Andrey!

This is nearly the way I took back in the first Jolla Qt5 SDK, is it
also the recommended way to do that?

Will it have a (bad) influence on the start up times?

Thanks so much! :)


Hi,

Yes your setContextProperty() to rootContext is the right approach. Usually I 
do something like this:

 QScopedPointerQGuiApplication app(Sailfish::createApplication(argc, 
argv));
 QScopedPointerQQuickView view(Sailfish::createView());
 MyClass data;
 view-rootContext()-setContextProperty(myObject, data);
 Sailfish::setView(view.data(), qrc:/main.qml);


From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] 
on behalf of Gabriel Boehme [m.gabrielboe...@googlemail.com]
Sent: Wednesday, November 13, 2013 4:58 PM
To: Sailfish OS Developers
Subject: [SailfishDevel] How to use setContext() or what is recommended?!

Hi sailors,

in the very first (Qt4 version) of the SDK I ported an easy application,
that is using a list model. To connect the list model and also my main
logic stuff I used the setContextProperty() method. In the first Qt5 SDK
version I had to work a bit around that (created a view from
Sailfish::createView() and used the views
data().rootContext()-setContextProperty() methods.

But now in the latest version I'm not quite sure about, how to do that?

Or better: What is the recommended way to connect QML UI with C++ logic
and add a model for a view? I'm a bit confused, because coming from
Python/PySide I always used it that way with QDeclarativeView and get a
bit lost with Qt5 and QQuickView and QQuickApplication and all this
stuff, that changed also between 5.0 and 5.1, doesn't it? :-/

Would be great to get some advice!

Thank you very much!

___
SailfishOS.org Devel mailing list
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Please, try my Flash API tester on device

2013-11-14 Thread Andrey Kozhevnikov

Let me know please - Jolla Phone have Flash LED or other technology?

On 14.11.2013 15:38, Artem Marchenko wrote:

Thanks

Thanks. I also found a couple of kind sailors on IRC yesterday and by 
now got the confirmation (meaning tried in the code on their devices) 
that Torch functionality is not supported in the current 
hardware-drivers-middlewhere, but just turning on flash by simulating 
a camera start should be possible. I managed to almost start it, but 
not quite yet, camera sequences tend to be very specific for this or 
that phone.


There is a chance, a camera guy might contact me today, hoping for 
it. Or will just post 20 more different experiments to IRC/mailing 
list. Switching on camera flash should be possible, I just need to 
figure out the proper sequence of starting, changing flash mode etc 
either by advise or by many trials.


Best regards,
Artem.

P.S.
Could it be the time to start ramping up developer program or to just 
have come-and-play-with-it device pool for developers in 
Helsinki-Tampere at least?




On Thu, Nov 14, 2013 at 9:51 AM, Jukka Eklund ju...@jukka.com 
mailto:ju...@jukka.com wrote:


Hi,

sorry to report Flash doesn't come on either way.

-Jukka


On Thu, Nov 14, 2013 at 1:12 AM, Artem Marchenko
artem.marche...@gmail.com mailto:artem.marche...@gmail.com wrote:

Hi All

Could somebody with the real device, please, try my test app -
http://bit.ly/flatest

There's RPM with the simplest possible app for controling
flashlight using two methods: Torch and CameraFlash. To my
understanding Torch can't work in Jolla as it's shared with
CameraFlash, but I still included it.

Just start the app, click buttons and see if flash gos on or not

Best regards,
Artem.

-- 
Artem Marchenko

http://agilesoftwaredevelopment.com
http://twitter.com/AgileArtem

___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list




--
Artem Marchenko
http://agilesoftwaredevelopment.com
http://twitter.com/AgileArtem


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Saving state/config

2013-11-15 Thread Andrey Kozhevnikov
both are easy. check Qt Assistant. examples and api reference are inside 
your Qt Creator ;)


On 15.11.2013 20:48, Thomas Tanghus wrote:

On Friday 15 November 2013 20:26 Andrey Kozhevnikov wrote:

use QSettings as Jonni said and register own component to use in qml, if
need, or export single class instance via setContextProperty

The latter sounds like the easiest approach.

Thanks both for your good advice.


On 15.11.2013 20:24, Thomas Tanghus wrote:

On Friday 15 November 2013 05:44 Jonni Rainisto wrote:

import org.nemomobile.configuration 1.0

My n00bness shows again :P Will I have to add this module to my project?
The SailfishOS-i486-x86 target only comes with org.nemomobile.ngf


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Saving state/config

2013-11-15 Thread Andrey Kozhevnikov

Sure. but you can make own classes for bth QSettings and GConfItem ;)

On 15.11.2013 21:00, Marcin M. wrote:

The plugin uses gconf, doesn't it?
Can we use it to modify any gconf entry then?

--
Marcin


2013/11/15 Andrey Kozhevnikov coderusin...@gmail.com 
mailto:coderusin...@gmail.com


both are easy. check Qt Assistant. examples and api reference are
inside your Qt Creator ;)


On 15.11.2013 20:48, Thomas Tanghus wrote:

On Friday 15 November 2013 20:26 Andrey Kozhevnikov wrote:

use QSettings as Jonni said and register own component to
use in qml, if
need, or export single class instance via setContextProperty

The latter sounds like the easiest approach.

Thanks both for your good advice.

On 15.11.2013 20:24, Thomas Tanghus wrote:

On Friday 15 November 2013 05:44 Jonni Rainisto wrote:

import org.nemomobile.configuration 1.0

My n00bness shows again :P Will I have to add this
module to my project?
The SailfishOS-i486-x86 target only comes with
org.nemomobile.ngf


___
SailfishOS.org Devel mailing list




___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

[SailfishDevel] Persecute - indie WhatsApp client for SailfishOS

2013-11-15 Thread Andrey Kozhevnikov

Hello Sailors!

Please test my application - Persecute.

Persecute is indie WhatsApp client in Qt/QML. Initially written by me 
for Harmattan in Qt4/QML and now ported to Qt5/QML for Sailfish.


http://sailfish.openrepos.net/coderus/personal/main/p/persecute-0.1-1.armv7hl.rpm
http://sailfish.openrepos.net/coderus/personal/main/p/persecute-0.1-1.i586.rpm
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Status of Sailfish SMS?

2013-11-15 Thread Andrey Kozhevnikov
Telepathy is not protocol. Its service controlling all system-wide 
accounts including ring, sms, mms services.


On 15.11.2013 22:22, Seppo Tiainen wrote:
I just want to point out what exactly I meant by SMS: Short Message 
Service of a mobile network (GSM/2G/3G/LTE) provided by the network 
operators. To me, Telepathy protocol is something else (chat using SIP 
etc.).


Regards,
Seppo


2013/11/15 christopher.l...@thurweb.ch 
mailto:christopher.l...@thurweb.ch


Hi Jonni

Could you please confirm whether or not it will be possible to
send SMSes direct from an app? (from your reply below it seems
this will not be possible).

My app Landed on Harmattan could send SMS directly - indeed it is
the raison-d'etre for the app, and it is obvious to the user that
he is sending an SMS (so no problems of secret bypassing...).

My understanding was that it should be possible to send SMS from
an app on Sailfish using Telepathy.

I would be thankful for clarification on this issue.

Chris

Zitat von Jonni Rainisto jonni.raini...@jolla.com
mailto:jonni.raini...@jolla.com:


Afaik, if you try to send sms, it opens default messaging
application where you can enter the sms. And same for outgoing
phonecalls, opens phone application where you can make a call.

Reasoning behind it is that as those call create a phone bill
to end user, then applications are not allowed to secretly
bypass default applications. But dont take my word on it, its
just AFAIK on store QA process.

But ofcourse if you enable developer mode you can do what ever
you want. I'm not familiar with that side of middleware, so
someone else can comment more.

re, Jonni


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
Seppo Tiainen [seppo.tiai...@gmail.com
mailto:seppo.tiai...@gmail.com]
Sent: Wednesday, November 13, 2013 8:19 PM
To: devel@lists.sailfishos.org mailto:devel@lists.sailfishos.org
Subject: [SailfishDevel] Status of Sailfish SMS?

Hi,

Does anybody know about a possible module and its status in
Sailfish/Qt-5 that corresponds to Harmattan Qt Mobility
Messaging so that it would be possible to send and receive
SMSs (which is essential in my app) through Qt/QML on the
Jolla phone?

Thanks,
Seppo




___
SailfishOS.org Devel mailing list




___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Harbour publishing - Invalid website

2013-11-16 Thread Andrey Kozhevnikov
i have prefix, and Submit button is active, this error message occurs 
after i pressed Submit :)



On 16.11.2013 17:31, Stephen Jayna wrote:

Hello,

On 16 Nov 2013 [46], at 08:20, Andrey Kozhevnikov wrote:


Trying to publish my app to Harbour, but i'm getting  Invalid website 
message. What it means and what websites are not allowed and why?

It might be that you haven't prefixed the URL with either http:// or https:// - 
the URL validator currently insists on this.

There should be a fix coming this week to address this issue.

Regards,
Steve

___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] ListModel sorting in QML

2013-11-17 Thread Andrey Kozhevnikov

afaik the use of JSONListModel not intended the sorting functions.
you need to make own model and sort json data before pushing it to model.

On 17.11.2013 18:39, Tigre-Bleu wrote:

Hi,

I have a ListView which loads a model from JSON with JSONListModel. The model 
contains items and category ids, but is not sorted by category.

What I wand to do is to display the items sorted by categories in the ListView. 
I have put a section.property in the ListView but it is working only half as 
expected because it is not sorting the model.

For instance, if my model content is:

Item1 - Category1
Item2 - Category1
Item3 - Category2
Item4 - Category3
Item5 - Category3
Item6 - Category1

Then my ListView will display:

Category1
   Item1
   Item2
Category2
   Item3
Category3
   Item4
   Item5
Category1
   Item6

Of course I would like Item6 to be set between Item2 and Item3.

How is possible to do that in QML? I would like to avoid manually iterating on 
all the items to re-order.

Thanks,

Antoine
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] directory structure on Sailfish

2013-11-19 Thread Andrey Kozhevnikov

read old mailing lists

/usr/bin/executable
/usr/share/myapplication
read reference articles in QtCreator
/usr/share/myapplication for data installed by package and 
$HOME/.local/share/myapplication for data created by application

i have no answer
structure is same

On 19.11.2013 23:13, Wim de Vries wrote:

Hi,
Does anyone know about documentation concerning the directory 
structure on Sailfish?


Where are apps installed?
What is the applications data directory?
How can I create extra dirs with data during installation/deployment?
What is the recommended dir for the user to store app data (in my case 
specific text docs)?

What will be the dir name of the mem card?
Is the Sailfish dir structure of the emulator the same as on the final 
device?


Robin already pointed me to QStandardPaths, but that one gives me 
non-existing dir names and not answers to all of the above questions.


Thanks.
wim


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


[SailfishDevel] Connection to Emulator not working if PC offline

2013-11-20 Thread Andrey Kozhevnikov
Just found weird problem. If my laptop not connected to internet, 
Sailfish Emulator not responding and i can't work with it.

Anyone else have same problem?
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Connection to Emulator not working if PC offline

2013-11-20 Thread Andrey Kozhevnikov
I'm not connected via wlan or lan. just not connected. want to code when 
i'm on long road to home without any internet connection :)


On 20.11.2013 14:26, Jarko Vihriala wrote:

party, but the name acrynym is not that obivious, it is 
(P)rogram(R)esponsiveness(I)dle(S)ystem(M)anagement :)

Joke's aside. It's interesting to see that happen with your PC as we tried both 
offline and online with the 1310 SDK package. Obiviously we did not test some 
combination. Are you on WLAN or LAN?

thanks, Jarko


From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] 
on behalf of Andrey Kozhevnikov [coderusin...@gmail.com]
Sent: Wednesday, November 20, 2013 10:05 AM
To: Sailfish OS Developers
Subject: [SailfishDevel] Connection to Emulator not working if PC offline

Just found weird problem. If my laptop not connected to internet,
Sailfish Emulator not responding and i can't work with it.
Anyone else have same problem?
___
SailfishOS.org Devel mailing list
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Full Emulator and/or APIs

2013-11-20 Thread Andrey Kozhevnikov

dbus is here and fully functional :)

On 20.11.2013 18:54, wsvries wrote:

Same question from me about Qt Serial Port.
And, I also need QDBus.
Cannot port my app until it is supported.
wim

Gabriel Boehme schreef op 2013-11-20 12:36:

Hi sailors,

@JollaHQ told me on Twitter to discuss the following question on the
mailing list, but is more or less a question to some official Jolla
member.

Is there any plan to release with the next updates an emulator, with all
standard apps/APIs integrated? This would be very helpful to create/port
(better) apps. At the moment I'm missing some dbus service/API related
to the camera. Also I'm not sure at the moment, how to share results
from my app with the common Sailfish calendar, also social service
integration would be a big benefit - share options for example.

I guess you are very busy at the moment, but would be nice to hear some
details. And in a week the first real devices are sold, so it would be
nice to offer some native stuff for all these sailors.

Thank you very much.

Gabriel.

___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Full Emulator and/or APIs

2013-11-20 Thread Andrey Kozhevnikov

you wrong again :)
install qt5-qttools-qdbus

and transfer api also here, just not integrated to emulator ui.

On 20.11.2013 19:17, Tone Kastlunger wrote:

coderus, dbus is, but handfull tools like qdbus is not :)
Ofc you could always build  deploy them by yourself as well :)
Same goes for the transfer UI, which is completely absent.


On Wed, Nov 20, 2013 at 2:55 PM, Andrey Kozhevnikov 
coderusin...@gmail.com mailto:coderusin...@gmail.com wrote:


dbus is here and fully functional :)


On 20.11.2013 18:54, wsvries wrote:

Same question from me about Qt Serial Port.
And, I also need QDBus.
Cannot port my app until it is supported.
wim

Gabriel Boehme schreef op 2013-11-20 12:36:

Hi sailors,

@JollaHQ told me on Twitter to discuss the following
question on the
mailing list, but is more or less a question to some
official Jolla
member.

Is there any plan to release with the next updates an
emulator, with all
standard apps/APIs integrated? This would be very helpful
to create/port
(better) apps. At the moment I'm missing some dbus
service/API related
to the camera. Also I'm not sure at the moment, how to
share results
from my app with the common Sailfish calendar, also social
service
integration would be a big benefit - share options for
example.

I guess you are very busy at the moment, but would be nice
to hear some
details. And in a week the first real devices are sold, so
it would be
nice to offer some native stuff for all these sailors.

Thank you very much.

Gabriel.

___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list




___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Connection to Emulator not working if PC offline

2013-11-20 Thread Andrey Kozhevnikov

seems so. my host is kubuntu too

On 20.11.2013 19:31, christopher.l...@thurweb.ch wrote:

Hi

I do most of my development work on the train, and have not had such 
problems.


Just to be sure: I have run a quick test

a) stop SDK and Emulator
b) stop WLAN-- I now have no network connections.
c) restart SDK and Emulator -- successful.
d) build and run a demo app -- successful.

My host is OSX, and I am running the most recent SDK.

So it looks like the problem is limited to Linux hosts...

mfg

Chris


Zitat von Luciano Montanaro mikel...@gmail.com:


Hi Andrey,

this happens to me too. I am using Linux, Kubuntu 13.10.

The workaround I have found is to ifconfig 192.168.0.1 (or something 
like that)
to give an address to the network. This usually lets me use the 
emulator.


Luciano


On Wed, Nov 20, 2013 at 9:28 AM, Andrey Kozhevnikov
coderusin...@gmail.com wrote:
I'm not connected via wlan or lan. just not connected. want to code 
when i'm

on long road to home without any internet connection :)


On 20.11.2013 14:26, Jarko Vihriala wrote:


party, but the name acrynym is not that obivious, it is
(P)rogram(R)esponsiveness(I)dle(S)ystem(M)anagement :)

Joke's aside. It's interesting to see that happen with your PC as 
we tried
both offline and online with the 1310 SDK package. Obiviously we 
did not

test some combination. Are you on WLAN or LAN?

thanks, Jarko


From: devel-boun...@lists.sailfishos.org
[devel-boun...@lists.sailfishos.org] on behalf of Andrey Kozhevnikov
[coderusin...@gmail.com]
Sent: Wednesday, November 20, 2013 10:05 AM
To: Sailfish OS Developers
Subject: [SailfishDevel] Connection to Emulator not working if PC 
offline


Just found weird problem. If my laptop not connected to internet,
Sailfish Emulator not responding and i can't work with it.
Anyone else have same problem?
___
SailfishOS.org Devel mailing list
___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list




--
Luciano Montanaro

Anyone who is capable of getting themselves made President should on
no account be allowed to do the job. -- Douglas Adams
___
SailfishOS.org Devel mailing list




___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] installing extra files via rpm

2013-11-21 Thread Andrey Kozhevnikov

create sailfish project, or dont use yaml, use spec.

On 21.11.2013 16:01, Wim de Vries wrote:

Hi Artem,
Thanks for the reply.
Best way would then to change .yaml, I guess.
But somehow there is no .yaml in the rpm dir.
Tried to add an empty one hoping that qmake or rebuild would fill it, 
but remains emty.

Any idea how to get the yaml created?
Thanks.


On 11/20/2013 09:45 PM, Artem Marchenko wrote:
You need to mention these files in .yaml (or user editable part of 
.spec that's generated from .yaml).


Basically here's what happens:

1. Your project files are mounted to the virtual build machine
2. make install copies data to the appropriate final folders on the 
build machine (not visible from your PC)
3. RPM generation happens on build machine. RPM packager puts 
installed file to one or more (just one for a simple case) RPM 
packages according to .yaml/.spec and then it figures that some 
installed files are not going into any .rpm, so it gives you an error:

Installed (but unpackaged) file(s) found:

Cheers,
Artem.



On Wed, Nov 20, 2013 at 9:45 PM, Wim de Vries wsvr...@xs4all.nl 
mailto:wsvr...@xs4all.nl wrote:


Hi,
I am able to deploy via RPM. Or better, QtCreator is able to do
it ;-)
Still, I need to install some data files as well.
pro file:

data.files = checklistsdata/*
OTHER_FILES += \
checklistsdata/skyArrow-walkaround \
checklistsdata/skyArrowEMERGENCY \
.

In the .pri:
data.path = /home/nemo/checklistsdata
INSTALLS += target qml desktop data

As far as I understand this should be sufficient.
Still deployment fails.
Any hints?
Thanks.

Output when deploying:

nstall -m 755 -p checklists
/home/deploy/installroot/usr/bin/checklists

install -m 755 -p /home/mersdk/qt/checklists/main.qml
/home/deploy/installroot/usr/share/checklists/

cp -f -R /home/mersdk/qt/checklists/pages
/home/deploy/installroot/usr/share/checklists/

cp -f -R /home/mersdk/qt/checklists/cover
/home/deploy/installroot/usr/share/checklists/

cp -f -R /home/mersdk/qt/checklists/controls
/home/deploy/installroot/usr/share/checklists/

install -m 755 -p /home/mersdk/qt/checklists/main.qml
/home/deploy/installroot/usr/share/checklists/

install -m 755 -p /home/mersdk/qt/checklists/checklists.desktop
/home/deploy/installroot/usr/share/applications/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/eurofox
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/eurofoxEMERGENCY
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO1
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO2
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO3
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO4
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO5
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO6
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO7
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO8
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO9
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/skyArrow
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/skyArrow-walkaround
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/skyArrowEMERGENCY
/home/deploy/installroot/home/nemo/checklistsdata/

+ /usr/lib/rpm/find-debuginfo.sh --strict-build-id
/home/mersdk/qt/checklists/

.


Processing files: checklists-0.1-1.i586

Requires(rpmlib): rpmlib(CompressedFileNames) = 3.0.4-1
rpmlib(FileDigests) = 4.6.0-1 rpmlib(PayloadFilesHavePrefix) =
4.0-1

Requires: libGLESv2.so.2 libQt5Core.so.5 libQt5Gui.so.5
libQt5Network.so.5 libQt5Qml.so.5 libQt5Quick.so.5 libc.so.6
libc.so.6(GLIBC_2.0) libgcc_s.so.1 libgcc_s.so.1(GCC_3.0)
libm.so.6 libpthread.so.0 libstdc++.so.6
libstdc++.so.6(CXXABI_1.3) libstdc++.so.6(GLIBCXX_3.4) rtld(GNU_HASH)

Processing files: checklists-debugsource-0.1-1.i586

Processing files: checklists-debuginfo-0.1-1.i586

Provides: debuginfo(build-id) =

Re: [SailfishDevel] installing extra files via rpm

2013-11-21 Thread Andrey Kozhevnikov
i have src/client and src/server and everything is built correctly 
automatically.


On 21.11.2013 21:05, Artem Marchenko wrote:
Yes, Qt Creator plugin trying to modify .yaml is a big annoyance to 
anybody with non standard .yaml (I have src/test subprojects and 
plugin is apparently able to work with one package only). How I solved 
it, I just keep resetting .yaml to version from version control 
whenever QtCreator wants to be clever and touch .yaml himself. Sure, 
sometimes I miss it, but most of the time everything's fine.


Maybe same will work for you. Or maybe somebody will now post how to 
kill this .yaml modification plugin completely :)


Cheers,
Artem.




On Thu, Nov 21, 2013 at 3:25 PM, Wim de Vries wsvr...@xs4all.nl 
mailto:wsvr...@xs4all.nl wrote:


Thanks.
Removing and adding kits seems to generate new .yaml file based on
.pro and .pri.



On 11/21/2013 11:11 AM, Andrey Kozhevnikov wrote:

create sailfish project, or dont use yaml, use spec.

On 21.11.2013 16:01, Wim de Vries wrote:

Hi Artem,
Thanks for the reply.
Best way would then to change .yaml, I guess.
But somehow there is no .yaml in the rpm dir.
Tried to add an empty one hoping that qmake or rebuild would
fill it, but remains emty.
Any idea how to get the yaml created?
Thanks.


On 11/20/2013 09:45 PM, Artem Marchenko wrote:

You need to mention these files in .yaml (or user editable part
of .spec that's generated from .yaml).

Basically here's what happens:

1. Your project files are mounted to the virtual build machine
2. make install copies data to the appropriate final folders
on the build machine (not visible from your PC)
3. RPM generation happens on build machine. RPM packager puts
installed file to one or more (just one for a simple case)
RPM packages according to .yaml/.spec and then it figures that
some installed files are not going into any .rpm, so it gives
you an error:
Installed (but unpackaged) file(s) found:

Cheers,
Artem.



On Wed, Nov 20, 2013 at 9:45 PM, Wim de Vries
wsvr...@xs4all.nl mailto:wsvr...@xs4all.nl wrote:

Hi,
I am able to deploy via RPM. Or better, QtCreator is able
to do it ;-)
Still, I need to install some data files as well.
pro file:

data.files = checklistsdata/*
OTHER_FILES += \
checklistsdata/skyArrow-walkaround \
checklistsdata/skyArrowEMERGENCY \
.

In the .pri:
data.path = /home/nemo/checklistsdata
INSTALLS += target qml desktop data

As far as I understand this should be sufficient.
Still deployment fails.
Any hints?
Thanks.

Output when deploying:

nstall -m 755 -p checklists
/home/deploy/installroot/usr/bin/checklists

install -m 755 -p /home/mersdk/qt/checklists/main.qml
/home/deploy/installroot/usr/share/checklists/

cp -f -R /home/mersdk/qt/checklists/pages
/home/deploy/installroot/usr/share/checklists/

cp -f -R /home/mersdk/qt/checklists/cover
/home/deploy/installroot/usr/share/checklists/

cp -f -R /home/mersdk/qt/checklists/controls
/home/deploy/installroot/usr/share/checklists/

install -m 755 -p /home/mersdk/qt/checklists/main.qml
/home/deploy/installroot/usr/share/checklists/

install -m 755 -p
/home/mersdk/qt/checklists/checklists.desktop
/home/deploy/installroot/usr/share/applications/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/eurofox
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/eurofoxEMERGENCY
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/GEO1
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/GEO2
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/GEO3
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/GEO4
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/GEO5
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/GEO6
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/GEO7
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/GEO8
/home/deploy/installroot/home/nemo/checklistsdata

[SailfishDevel] Emoji in SailfishOS

2013-11-21 Thread Andrey Kozhevnikov

Back to my old question:
will jolla device with sailfishos have emoji fonts to display hi-color 
unicode emoji correctly or i should prepare my own input method 
component for emoji selection?

___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] installing extra files via rpm

2013-11-21 Thread Andrey Kozhevnikov

check __ARMEL__ or __ARM_ARCH_7__

On 21.11.2013 21:37, Luciano Montanaro wrote:

For the record, I also have problems,. whenever I switch between
ARM/486 builds or between sailfish and harmattan.

A slightly different topic...

Is there a way to detect the kit in use from the qmake file?

Currently, I add CONFIG+=sailfish on the build options when I want to
build for sailfish... But this setting also gets lost often. If there
were a method to detect the toolchain automatically from the qmake
file that would be great.

Alternatively, is it possible to add the CONFIG+=sailfish option to
the .yaml file?

Am I the only one that is trying to keep their applicaion buildable
for sailfish as well as other targets?
How are you dealing with this? Because my application.pro file is
getting hard to maintain.


On Thu, Nov 21, 2013 at 4:19 PM, Andrey Kozhevnikov
coderusin...@gmail.com wrote:

i have src/client and src/server and everything is built correctly
automatically.


On 21.11.2013 21:05, Artem Marchenko wrote:

Yes, Qt Creator plugin trying to modify .yaml is a big annoyance to anybody
with non standard .yaml (I have src/test subprojects and plugin is
apparently able to work with one package only). How I solved it, I just keep
resetting .yaml to version from version control whenever QtCreator wants to
be clever and touch .yaml himself. Sure, sometimes I miss it, but most of
the time everything's fine.

Maybe same will work for you. Or maybe somebody will now post how to kill
this .yaml modification plugin completely :)

Cheers,
Artem.




On Thu, Nov 21, 2013 at 3:25 PM, Wim de Vries wsvr...@xs4all.nl wrote:

Thanks.
Removing and adding kits seems to generate new .yaml file based on .pro
and .pri.



On 11/21/2013 11:11 AM, Andrey Kozhevnikov wrote:

create sailfish project, or dont use yaml, use spec.

On 21.11.2013 16:01, Wim de Vries wrote:

Hi Artem,
Thanks for the reply.
Best way would then to change .yaml, I guess.
But somehow there is no .yaml in the rpm dir.
Tried to add an empty one hoping that qmake or rebuild would fill it, but
remains emty.
Any idea how to get the yaml created?
Thanks.


On 11/20/2013 09:45 PM, Artem Marchenko wrote:

You need to mention these files in .yaml (or user editable part of .spec
that's generated from .yaml).

Basically here's what happens:

1. Your project files are mounted to the virtual build machine
2. make install copies data to the appropriate final folders on the
build machine (not visible from your PC)
3. RPM generation happens on build machine. RPM packager puts installed
file to one or more (just one for a simple case) RPM packages according to
.yaml/.spec and then it figures that some installed files are not going
into any .rpm, so it gives you an error:
Installed (but unpackaged) file(s) found:

Cheers,
Artem.



On Wed, Nov 20, 2013 at 9:45 PM, Wim de Vries wsvr...@xs4all.nl wrote:

Hi,
I am able to deploy via RPM. Or better, QtCreator is able to do it ;-)
Still, I need to install some data files as well.
pro file:

data.files = checklistsdata/*
OTHER_FILES += \
 checklistsdata/skyArrow-walkaround \
 checklistsdata/skyArrowEMERGENCY \
.

In the .pri:
data.path = /home/nemo/checklistsdata
INSTALLS += target qml desktop data

As far as I understand this should be sufficient.
Still deployment fails.
Any hints?
Thanks.

Output when deploying:

nstall -m 755 -p checklists
/home/deploy/installroot/usr/bin/checklists

install -m 755 -p /home/mersdk/qt/checklists/main.qml
/home/deploy/installroot/usr/share/checklists/

cp -f -R /home/mersdk/qt/checklists/pages
/home/deploy/installroot/usr/share/checklists/

cp -f -R /home/mersdk/qt/checklists/cover
/home/deploy/installroot/usr/share/checklists/

cp -f -R /home/mersdk/qt/checklists/controls
/home/deploy/installroot/usr/share/checklists/

install -m 755 -p /home/mersdk/qt/checklists/main.qml
/home/deploy/installroot/usr/share/checklists/

install -m 755 -p /home/mersdk/qt/checklists/checklists.desktop
/home/deploy/installroot/usr/share/applications/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/eurofox
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/eurofoxEMERGENCY
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO1
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO2
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO3
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO4
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO5
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO6
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p

Re: [SailfishDevel] Emoji in SailfishOS

2013-11-21 Thread Andrey Kozhevnikov

the other question is: does it support color fonts? or just common glyphs?

On 21.11.2013 23:29, Andrea Bernabei wrote:

Andrey Kozhevnikov coderusinbox@... writes:


Back to my old question:
will jolla device with sailfishos have emoji fonts to display hi-color
unicode emoji correctly or i should prepare my own input method
component for emoji selection?
___
SailfishOS.org Devel mailing list




I have two news for you, one bad and one good :)

The bad news is that SailfishOS default font doesn't have color emoji so they
will be shown as boxes

The good news is that there is a fallback system (and it's working) that will
get the missing bits from other eventually installed fonts :)




___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] SDK and Harbour news

2013-11-21 Thread Andrey Kozhevnikov

i have two binaries in application, how to?

On 21.11.2013 19:52, Reto Zingg wrote:

Hi,

On 21.11.2013 15:48, Andrey Kozhevnikov wrote:

binary names rename same or should be renamed in domain-style too?
/usr/bin/myapp or /usr/bin/org.coderus.myapp ?


yes, also the binary name has to be named after that schema.

But do not mix that up with the Title you give your application in 
Harbour where you upload the application.


br
Reto


On 21.11.2013 18:20, Iekku Pylkka wrote:


Ahoy all,

As you might have noticed, there has been lot of stuff happening on
application development and application releasing. Some of you who
have already submitted applications to Harbour (Jolla's app store
intake) have faced these challenges already. Thank you very much for
your submissions.

Here is a list of items we have identified that cause headache and are
the reasons why your app might not have gotten store approval yet:

- Icon size:

·SDK still uses 90x90 icon size whereas the device uses 86x86. Harbour
submission requires 86x86 icons. An update to the SDK will be released
soon to sync it up to the new icon size.

- Icon path defined in .desktop file:

·Application icon path is not needed anymore (Icon=appname is enough),
you will have to remove absolute paths for Harbour submission. The
home screen in upcoming SDK release will have a fix for this.

- Application name

·There will be a FAQ on Harbour regarding what file names need to
match the RPM package name at upload time. Your application name
should be in dotted form, e.g. com.example.myapp and we will soon
update Harbour to validate this and then all the applications should
follow this naming convention.

- QML API

·For QML application development we support QtQuick 2.x and Sailfish
Silica 1.0. In our repositories there are various other packages but
as they are not reviewed by us we cannot guarantee that APIs they
provide are available in future, so take caution when using them -
your application might be rejected or stop working if you are using
unsupported API.

- Shared libraries

·You can ship your own private copies of shared libraries that you
link against in /usr/share/name of your app/, you are not allowed to
install shared libraries anywhere else.

- Private QML imports

·If you are using custom QML imports, you have to install them into
/usr/share/name of your app/, you are not allowed to install the QML
imports anywhere else. Also, the name of your QML import must match
the application package name (e.g. an application
org.example.coolapp can only have a single private qml import
module, and that must be imported as import org.example.coolapp 1.0).

- Runtimes

·Application runtimes such as Python are not supported yet, but we are
actively working on getting Python support into shape, at which point
Python QML APIs will be allowed in Harbour. Stay tuned.

- More info

·There will be the mentioned FAQ page on Harbour which addresses the
known application submission problems.

Hopefully, most of these will make sense and not require clarification
but if you need any help at all, just holler. We hope to expand the
list of supported APIs, and are interested in feedback from you as to
what you would like to see and be able to do in store applications.

Should you have any questions or improvement ideas of these, please
send replies to this mailing list.

Happy hacking,

The Jolla Crew



___
SailfishOS.org Devel mailing list




___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Problem with installing package in SDK Control Center

2013-11-21 Thread Andrey Kozhevnikov
dont press enter in input field. its bug. search for available packages 
will be automatically.


On 22.11.2013 00:23, Sven Putze wrote:

Hi there,

on one computer I've got problems with installing a packages via SDK Control 
Center, here are the steps:

SDK Control Center, Tab Target
click on manage (SailfishOS-i486-x86)
enter boost-devel,
click install


 finished: installing package 
boost-devel - exited with status 0

  (WARNING) rpm[6896/1862375168]Executing statically linked native 
binary /srv/mer/targets/SailfishOS-i486-x86/sbin/ldconfig
  (WARNING) rpm[6929/1862960896]Executing statically linked native 
binary /srv/mer/targets/SailfishOS-i486-x86/sbin/ldconfig
  (WARNING) rpm[6935/1862911744]Executing statically linked native 
binary /srv/mer/targets/SailfishOS-i486-x86/sbin/ldconfig
  (WARNING) rpm[6937/1862608640]Executing statically linked native 
binary /srv/mer/targets/SailfishOS-i486-x86/sbin/ldconfig
  (WARNING) rpm[6939/1862158080]Executing statically linked native 
binary /srv/mer/targets/SailfishOS-i486-x86/sbin/ldconfig
  (WARNING) rpm[6941/1862596352]Executing statically linked native 
binary /srv/mer/targets/SailfishOS-i486-x86/sbin/ldconfig
  (WARNING) rpm[6943/1862625024]Executing statically linked native 
binary /srv/mer/targets/SailfishOS-i486-x86/sbin/ldconfig
# exit 0 (0)
Sync completed

SDK Control Center, Tab Target
click on manage (SailfishOS-armv7hl)
enter name, names appear, dark red error message:

Toolchain '' is not available in any repository. That target cannot be 
installed.

Tab Updates

Engine
Up-to-date

SailfishOS-armv7hl   Up-to-date
SailfishOS-i486-x86  Up-to-date

Most recent version of the SDK
Most recent version of Virtual Box
Platform: OSX

Works on one computer, one with error message


What should I do?


Best.
Sven
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Update on application naming for Harbour applications

2013-11-22 Thread Andrey Kozhevnikov

really?

harbour-org.coderus.application

how domain.organization.application naming can clash with device packages?

why?

On 22.11.2013 20:32, Robin Burchell wrote:

Ahoy,

In Iekku’s mail yesterday, we referred to application names needing to use a 
“dotted” form (e.g. com.example.myapp). It was brought to our attention that 
this isn’t factually possible at this time due to limitations in Qt 
Creator/qmake, so we’re unfortunately forced due to time limitations - so as to 
not inconvenience you developers - to change plans.

The new requirement is that application names must start with a prefix of 
“harbour-“.

The reason (if it wasn’t clear) for this requirement is so that applications do 
not clash with other installed packages on the device.

We’re very sorry for the confusion. Thanks for understanding. Should you have 
any questions on this or anything else, feel free to send an e-mail as always!

P.S. We’ll be launching a FAQ explaining this (and other store requirements) in 
detail early next week, unless anything unforeseen crops up.

Happy hacking,
The Jolla Crew
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Update on application naming for Harbour applications

2013-11-22 Thread Andrey Kozhevnikov

ah, just harbour-application instead of domain naming? ok then
sorry for misreading.

but i compiled package with dots successfully. check my package in 
Harbour :)


On 22.11.2013 20:40, Reto Zingg wrote:

Hi,

On 22.11.2013 16:39, Andrey Kozhevnikov wrote:

really?

harbour-org.coderus.application

how domain.organization.application naming can clash with device 
packages?


why?


QtCreator does not allow it:

https://qt.gitorious.org/qt-creator/qt-creator/source/54636d9756966fab7365043d8fd255993675e935:src/libs/utils/projectnamevalidatinglineedit.cpp#L46 



br
Reto


On 22.11.2013 20:32, Robin Burchell wrote:

Ahoy,

In Iekku’s mail yesterday, we referred to application names needing to
use a “dotted” form (e.g. com.example.myapp). It was brought to our
attention that this isn’t factually possible at this time due to
limitations in Qt Creator/qmake, so we’re unfortunately forced due to
time limitations - so as to not inconvenience you developers - to
change plans.

The new requirement is that application names must start with a prefix
of “harbour-“.

The reason (if it wasn’t clear) for this requirement is so that
applications do not clash with other installed packages on the device.

We’re very sorry for the confusion. Thanks for understanding. Should
you have any questions on this or anything else, feel free to send an
e-mail as always!

P.S. We’ll be launching a FAQ explaining this (and other store
requirements) in detail early next week, unless anything unforeseen
crops up.

Happy hacking,
The Jolla Crew
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Update on application naming for Harbour applications

2013-11-22 Thread Andrey Kozhevnikov

i need to rebuild everything again? :D

On 22.11.2013 20:52, Reto Zingg wrote:

Hi,

On 22.11.2013 16:47, Andrey Kozhevnikov wrote:

ah, just harbour-application instead of domain naming? ok then
sorry for misreading.

but i compiled package with dots successfully. check my package in
Harbour :)


yes renaming a existing project by hand works incl. build and 
compiling, but you can't start a new SailfishOS project, which 
contains dots :-(


And we want to stick to upstream QtCreator.

br
Reto


On 22.11.2013 20:40, Reto Zingg wrote:

Hi,

On 22.11.2013 16:39, Andrey Kozhevnikov wrote:

really?

harbour-org.coderus.application

how domain.organization.application naming can clash with device
packages?

why?


QtCreator does not allow it:

https://qt.gitorious.org/qt-creator/qt-creator/source/54636d9756966fab7365043d8fd255993675e935:src/libs/utils/projectnamevalidatinglineedit.cpp#L46 




br
Reto


On 22.11.2013 20:32, Robin Burchell wrote:

Ahoy,

In Iekku’s mail yesterday, we referred to application names 
needing to

use a “dotted” form (e.g. com.example.myapp). It was brought to our
attention that this isn’t factually possible at this time due to
limitations in Qt Creator/qmake, so we’re unfortunately forced due to
time limitations - so as to not inconvenience you developers - to
change plans.

The new requirement is that application names must start with a 
prefix

of “harbour-“.

The reason (if it wasn’t clear) for this requirement is so that
applications do not clash with other installed packages on the 
device.


We’re very sorry for the confusion. Thanks for understanding. Should
you have any questions on this or anything else, feel free to send an
e-mail as always!

P.S. We’ll be launching a FAQ explaining this (and other store
requirements) in detail early next week, unless anything unforeseen
crops up.

Happy hacking,
The Jolla Crew
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Update on application naming for Harbour applications

2013-11-23 Thread Andrey Kozhevnikov
Jolla dont want to force developers manually edit project files to be 
able to build dotted application names.


On 23.11.2013 17:26, Artem Marchenko wrote:

What if there are two packages in app store named harbour-videocam?
Or whoever grabs the name first keeps it?

What about the main app binary name and it's data folder?
Shall they be harbour-videocam or com.supercell.videocam? Or 
harbour-com.supercell.videocam?


Cheers,
Artem.


On Sat, Nov 23, 2013 at 1:11 PM, Jonni Rainisto 
jonni.raini...@jolla.com mailto:jonni.raini...@jolla.com wrote:


Hi,

Domain part is not needed anymore, so its in the form of:

harbour-applicationname

That way for example harbour-videocam-package doesnt confilict
with possible systems videocam-package.


*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
zoltan.lu...@gmail.com mailto:zoltan.lu...@gmail.com
[zoltan.lu...@gmail.com mailto:zoltan.lu...@gmail.com]
*Sent:* Saturday, November 23, 2013 7:59 AM
*To:* Sailfish OS Developers
*Subject:* Re: [SailfishDevel] Update on application naming for
Harbour applications

will such name be accepted by package uploader of Jolla Harbour?


'_' were not accepted before there...


Andrey Kozhevnikov írta ekkor: 2013.11.22. 15
tel:2013.11.22.%2015:39

really?

harbour-org.coderus.application

how domain.organization.application naming can clash with device
packages?

why?

On 22.11.2013 20:32, Robin Burchell wrote:
 Ahoy,

 In Iekku's mail yesterday, we referred to application names
needing to use a dotted form (e.g. com.example.myapp). It was
brought to our attention that this isn't factually possible at
this time due to limitations in Qt Creator/qmake, so we're
unfortunately forced due to time limitations - so as to not
inconvenience you developers - to change plans.

 The new requirement is that application names must start with a
prefix of harbour-.

 The reason (if it wasn't clear) for this requirement is so that
applications do not clash with other installed packages on the device.

 We're very sorry for the confusion. Thanks for understanding.
Should you have any questions on this or anything else, feel free
to send an e-mail as always!

 P.S. We'll be launching a FAQ explaining this (and other store
requirements) in detail early next week, unless anything
unforeseen crops up.

 Happy hacking,
 The Jolla Crew
 ___
 SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list




--
Artem Marchenko
http://agilesoftwaredevelopment.com
http://twitter.com/AgileArtem


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Update on application naming for Harbour applications

2013-11-23 Thread Andrey Kozhevnikov
if i already build and sent to Harbour  my org.coderus.persecute 
application, i should rebuild it now to harbour-persecute? =(


On 23.11.2013 18:34, Jonni Rainisto wrote:

Hi,

Whoever grabs the name first keeps it (AFAIK). So of someone before 
you takes harbour-videocam, you can do something like 
harbour-videocam-artem or some other unique name.


So if $NAME == harbour-videocam then:
/usr/bin/$NAME == /usr/bin/harbour-videocam
/usr/share/$NAME == /usr/share/harbour-videocam
/usr/share/icons/hicolor/86x86/apps/$NAME.png == 
/usr/share/icons/hicolor/86x86/apps/harbour-videocam.png


So forget the domain names with dots as current tools dont really 
support them currently.



*From:* devel-boun...@lists.sailfishos.org 
[devel-boun...@lists.sailfishos.org] on behalf of Artem Marchenko 
[artem.marche...@gmail.com]

*Sent:* Saturday, November 23, 2013 1:26 PM
*To:* Sailfish OS Developers
*Subject:* Re: [SailfishDevel] Update on application naming for 
Harbour applications


What if there are two packages in app store named harbour-videocam?
Or whoever grabs the name first keeps it?

What about the main app binary name and it's data folder?
Shall they be harbour-videocam or com.supercell.videocam? Or 
harbour-com.supercell.videocam?


Cheers,
Artem.


On Sat, Nov 23, 2013 at 1:11 PM, Jonni Rainisto 
jonni.raini...@jolla.com mailto:jonni.raini...@jolla.com wrote:


Hi,

Domain part is not needed anymore, so its in the form of:

harbour-applicationname

That way for example harbour-videocam-package doesnt confilict
with possible systems videocam-package.


*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
zoltan.lu...@gmail.com mailto:zoltan.lu...@gmail.com
[zoltan.lu...@gmail.com mailto:zoltan.lu...@gmail.com]
*Sent:* Saturday, November 23, 2013 7:59 AM
*To:* Sailfish OS Developers
*Subject:* Re: [SailfishDevel] Update on application naming for
Harbour applications

will such name be accepted by package uploader of Jolla Harbour?


'_' were not accepted before there...


Andrey Kozhevnikov írta ekkor: 2013.11.22. 15
tel:2013.11.22.%2015:39

really?

harbour-org.coderus.application

how domain.organization.application naming can clash with device
packages?

why?

On 22.11.2013 20:32, Robin Burchell wrote:
 Ahoy,

 In Iekku's mail yesterday, we referred to application names
needing to use a dotted form (e.g. com.example.myapp). It was
brought to our attention that this isn't factually possible at
this time due to limitations in Qt Creator/qmake, so we're
unfortunately forced due to time limitations - so as to not
inconvenience you developers - to change plans.

 The new requirement is that application names must start with a
prefix of harbour-.

 The reason (if it wasn't clear) for this requirement is so that
applications do not clash with other installed packages on the device.

 We're very sorry for the confusion. Thanks for understanding.
Should you have any questions on this or anything else, feel free
to send an e-mail as always!

 P.S. We'll be launching a FAQ explaining this (and other store
requirements) in detail early next week, unless anything
unforeseen crops up.

 Happy hacking,
 The Jolla Crew
 ___
 SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list




--
Artem Marchenko
http://agilesoftwaredevelopment.com
http://twitter.com/AgileArtem


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Folder for the icons according to the new requirements.

2013-11-23 Thread Andrey Kozhevnikov

86x86 dir.
current SDK cant build 86x86 icons to apply new Harbour requirements.
You need to wait for SDK update. It will have 86x86 folders.

On 23.11.2013 19:21, Artem Marchenko wrote:

New icons are to be 86x86, okay.
Do I still deploy them to /90x90 directory or to new /86x86 dir?
Anybody knows?

Cheers,
Artem.

--
Artem Marchenko
http://agilesoftwaredevelopment.com
http://twitter.com/AgileArtem


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Dynamically populate a ContextMenu

2013-11-23 Thread Andrey Kozhevnikov

you may need to make childs of menu._contentColumn, not just menu.

On 23.11.2013 19:47, Tigre-Bleu wrote:

Hi,

I try to dynamically populate a ContextMenu but either I ran into a bug in the 
Silica Component or there is something I'm doing wrong.

Here is an example of simplified code showing the problem:

 ComboBox {
 width: parent.width
 label: Menu

 menu: ContextMenu {
 id: menu
 MenuItem { text: Static 1 }
 MenuItem { text: Static 2 }
 }

 Component {
 id: menuItemComp
 MenuItem {}
 }

 Component.onCompleted: {
 console.debug(Populating menu)
 for (var i=0; i 4 ; i++){
 var newMenuItem = menuItemComp.createObject(menu, {text : 
Dynamic + i})
 }
 }
 }

And in attachment is the result in the emulator.

We see that Static entries are correctly displayed, but dynamic ones are all 
superposed.

What is wrong?

Thanks,

Antoine


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Dynamically populate a ContextMenu

2013-11-23 Thread Andrey Kozhevnikov

You should use it if you want real dynamically created components.
Or reimplement ContextMenu item.

What would you prefer?

On 23.11.2013 21:06, christopher.l...@thurweb.ch wrote:

Hi Andrey

Zitat von Andrey Kozhevnikov coderusin...@gmail.com:


you may need to make childs of menu._contentColumn, not just menu.


I thought that the underscore stuff are private internal properties / 
functions that we mere mortals should not be using 8-) (Not that 
that would necessarily stop me).


Chris




___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Dynamically populate a ContextMenu

2013-11-23 Thread Andrey Kozhevnikov

Just dont use dynamic childs if you dont want, but let it to others ;)

On 24.11.2013 00:03, christopher.l...@thurweb.ch wrote:

We should not have to make that choice.

using an underscore property is the pragmatic solution, but I would be 
interested to hear what the Jolla developers have to say on this issue.


Zitat von Andrey Kozhevnikov coderusin...@gmail.com:


You should use it if you want real dynamically created components.
Or reimplement ContextMenu item.

What would you prefer?






___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Dynamically populate a ContextMenu

2013-11-24 Thread Andrey Kozhevnikov

Please check ContextMenu and ComboBox code.
_contentColumn property used in a proper way.

QML is not C++ where you not allowed to reimplement headers to use 
private and protected functions outside. QML is hack-for-fun.


On 24.11.2013 00:03, christopher.l...@thurweb.ch wrote:

We should not have to make that choice.

using an underscore property is the pragmatic solution, but I would be 
interested to hear what the Jolla developers have to say on this issue.


Zitat von Andrey Kozhevnikov coderusin...@gmail.com:


You should use it if you want real dynamically created components.
Or reimplement ContextMenu item.

What would you prefer?






___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] .ico : Unsupported image format

2013-11-24 Thread Andrey Kozhevnikov

its default webpage favicon format. how it can be ignored by OS?

On 24.11.2013 22:04, Gabriel Böhme wrote:


Transform it to an usual image format. I think *.ico is just known in 
the Microsoft world. ;) So change it to somethink like, jpg or png. :)



Gabriel

--

Von meinem Nokia N9 gesendet


Tigre-Bleu schrieb am 24.11.13 16:59:

Hi sailors,

I've just realized that .ico is not supported by QtQuick Image {} QML 
Component


QML Image: Error decoding: http://www.jollatides.com/favicon.ico: 
Unsupported image format


I'm surprised as I was assuming that ico files shall be displayed as 
it is a defacto icon standard.


Is there another way to display a .ico in QML?

Thanks,

Antoine
___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Packaging with icons in 86x86 folder

2013-11-26 Thread Andrey Kozhevnikov
Sure, you can edit file 
SailfishOS/mersdk/targets/SailfishOS-armv7hl/usr/share/qt5/mkspecs/features/sailfishapp.prf


On 26.11.2013 19:33, Unai IRIGOYEN wrote:


Hi,

I submitted my app before naming policy change but it got rejected 
according to new naming policy.


I fixed all naming to comply with new policy but I cannot change the 
intermediate install folder from 
/home/deploy/installroot/usr/share/icons/hicolor/90x90/apps to 
/home/deploy/installroot/usr/share/icons/hicolor/86x86/apps.


I made a search in SDK files and replaced 90x90 occurrences by 
86x86 but my makefile still has 90x90 even after deleting and 
running qmake.


Does somebody have a workaround to package according to new policy so 
I can submit my app again or do I absolutely need to wait for SDK update?


Best regards.

--

Unai IRIGOYEN



___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Packaging with icons in 86x86 folder

2013-11-26 Thread Andrey Kozhevnikov

you should clean project and restart qmake to generate new Makefiles ;)

On 26.11.2013 19:48, Artem Marchenko wrote:
Or if you fail to correct this file (I failed whatever changes I do 
and run qmake, Makefile generated still uses 90x90), you can ignore 
CONFIG += sailfishapp and use that stuff manually - you can see how 
it's done at 
https://github.com/amarchen/Wikipedia/blob/master/src/src.pro


/Artem.


On Tue, Nov 26, 2013 at 3:36 PM, Andrey Kozhevnikov 
coderusin...@gmail.com mailto:coderusin...@gmail.com wrote:


Sure, you can edit file

SailfishOS/mersdk/targets/SailfishOS-armv7hl/usr/share/qt5/mkspecs/features/sailfishapp.prf



On 26.11.2013 19:33, Unai IRIGOYEN wrote:


Hi,

I submitted my app before naming policy change but it got
rejected according to new naming policy.

I fixed all naming to comply with new policy but I cannot change
the intermediate install folder from
/home/deploy/installroot/usr/share/icons/hicolor/90x90/apps to
/home/deploy/installroot/usr/share/icons/hicolor/86x86/apps.

I made a search in SDK files and replaced 90x90 occurrences by
86x86 but my makefile still has 90x90 even after deleting and
running qmake.

Does somebody have a workaround to package according to new
policy so I can submit my app again or do I absolutely need to
wait for SDK update?

Best regards.

-- 


Unai IRIGOYEN



___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list




--
Artem Marchenko
http://agilesoftwaredevelopment.com
http://twitter.com/AgileArtem


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] people having reach to real device?

2013-11-27 Thread Andrey Kozhevnikov
join #sailfishos at freenode. there are several peoples with real device 
can help you :)


On 27.11.2013 22:10, Zoltán Lutor wrote:

Hi,

Is there anybody out there with real Jolla device and willing to test 
some apps on real device?


I would really appreciate some true testing since apps were rejected 
from the store but the given reasoning did not helped too much and 
dev. support does not respond to any of my mails... :-(


Thanks in advance,

  Zoltan


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

[SailfishDevel] Non-Devel questions in mailing list

2013-11-27 Thread Andrey Kozhevnikov

Hello!

I'm glad to see you enjoy your new Jolla devices, but can you ask 
NON-DEVEL questions outside devel mailing lists please? You can do it on 
#sailfoshos freenode channel or any sailfish/jolla forum thread.


Thanks.
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Linking to qwidget, or any other method to access the clipboard

2013-12-02 Thread Andrey Kozhevnikov

edit sailfishapp.prf in arm target rootfs

On 02.12.2013 17:14, Michael Demetriou wrote:

Perfect, thank you very much.

I still have a minor problem though. I have purged every instance of
90x90 from my project but the sdk still wants to install the icons in
/usr/share/icons/90x90 (it autogenerates the Makefile with the path
hardcoded even if there is no 90x90 in .spec and .yaml)

M.

On Mon, Dec 2, 2013 at 11:40 AM, Michael Demetriou
qwa...@outofbounds.gr wrote:

Thanks!

I'll check it out once I fix the mess I just created by trying to
rename to harbour-speedcrunch

M.

On Mon, Dec 2, 2013 at 11:36 AM, Vesa-Matti Hartikainen
vesa-matti.hartikai...@jolla.com wrote:

On 12/02/2013 11:19 AM, Michael Demetriou wrote:

Hello,

I'm trying to port speedcrunch to sailfish, and I have functionality
that uses the clipboard (cover swipe copies last result to the
clipboard), however since harbour does not allow linking to qtWidgets
this is not possible.

Is there a workaround to this? I am not using widgets for the
interface, I just need to include QApplication.

Thank you.

Michael Demetriou
___
SailfishOS.org Devel mailing list


See:
  http://qt-project.org/doc/qt-5.1/qtgui/qguiapplication.html#clipboard

--
Vesa-Matti Hartikainen
Jolla Oy
http://jolla.com
p. +358 50 487 6067


___
SailfishOS.org Devel mailing list



--

Michael Demetriou
Software Engineer - Graphic Designer
tel: +30 6944 727 963
www.outofbounds.gr





___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] where did the template sailfishapplication.cpp/h go?

2013-12-06 Thread Andrey Kozhevnikov

sure

QGuiApplication *app = SailfishApp::application(argc, argv);
QQuickView *view = SailfishApp::createView();
view-rootContext()-setContextProperty(view, view);
view-setSource(SailfishApp::pathTo(qml/main.qml));
view-showFullScreen();
app-exec();

On 06.12.2013 18:50, Wim de Vries wrote:

On 12/06/2013 12:34 PM, Robin Burchell wrote:

Hi,

They were moved into libsailfishapp so that we are easier able to 
roll out improvements to all applications if there’s a need. For 
instance, we ran into a bug with QtWayland that we had to temporarily 
work around in there a while ago.


I would recommend *not* subclassing QQuickView (since then you won’t 
get some of the performance enhancements on startup that 
libsailfishapp provides when you use createView and so on), but if 
you absolutely *must* subclass QQuickView, then just don’t use 
createView, and subclass QQuickView directly ( new it yourself).
Well, that means moving all C++ callback functions out of my inherited 
QQuickview ;-(

Just to be sure, will
SailfishApp::createView()
return a QQuickView pointer ?
I need to set
returnedQQuickViewPointer-rootContext()-setContextProperty(myNewCPP, 
myNewCPPclass );

Thanks.



BR,
Robin

On 06 Dec 2013, at 11:58, Wim de Vries wsvr...@xs4all.nl wrote:


Hi,
Just looking at the template and documentation of the latest SDK and 
found out that sailfishapplication.cpp and sailfishapplication.h 
were removed from the sources.

I used to redefine them (using MyQQuickview etc.).
Am I overlooking sth?
thanks.
wim

___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] working on apps?

2013-12-14 Thread Andrey Kozhevnikov

WhatsApp client.

On 14.12.2013 16:41, AL13N wrote:

if there are people who are working on apps, and want to let it know, so
that no other devs will waste time making the same apps, you can add these
here:

http://elinux.org/Jolla

in the appriopriate section.

Thanks!

___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Delegate creation on demand

2013-12-15 Thread Andrey Kozhevnikov

load model dynamically?

if you wont preload model before using it can solve many problems.
:)

On 16.12.2013 02:03, Hendrik Borghorst wrote:

Hello,

the problem isn't my delegate. It is quite minimal.

The problem is I think a bug in QML Listview. It goes absolutly crazy if
it is invisible and starts making delegate for around 50% of all items.
This causes the memory to run full.

A workaround I added is

model: visible ? modelVar : null

which works quite nicely. I think this bug could be an upstream qt bug?

greetings

Am Sonntag, den 15.12.2013, 10:01 +0100 schrieb
christopher.l...@thurweb.ch:

Hi Hendrik

Have you seen this? http://qt-project.org/wiki/Performance_tip_Lists

The general advice is to keep the delegates is lightweight as
possible, and to use Loaders for anything needed later (e.g. onClick)

Chris

Zitat von Hendrik Borghorst hendrikborgho...@gmail.com:


Hello folks,

I've got a problem with long lists (~25000 elements). All delegates are
created at once which causes the memory usage to explode beyond the
devices capability.

I already tried setting cacheBuffer: 0 in SiliciaListView but  it
doesn't change it.

Is the something I'm doing wrong.

You can see the actual page code here:

https://github.com/djselbeck/smpc/blob/master/pages/CurrentPlaylistPage.qml

Shouldn't the delegates be constructed on demand? It is weird because my
old n8 wasn't struggling with qml lists with this size.

greetings and congrats on getting the devices to your customers (I'm
very pleased)








___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Delegate creation on demand

2013-12-15 Thread Andrey Kozhevnikov

no, i mean manual optimization.

like loading model when it actually requires, or dynamically create 
listview with model using component loader or createComponent.


QML is easy and fast when you making small projects. but for complex you 
should thinh HOW code actially works after interpretation.


On 16.12.2013 02:08, Hendrik Borghorst wrote:

What do you mean exactly?

Isn't this exactly what ListView should do automatically which can be
influenced with cacheBuffer? Which by the way works correctly as long as
the listview stays visible.

greetings


Am Montag, den 16.12.2013, 02:05 +0600 schrieb Andrey Kozhevnikov:

load model dynamically?

if you wont preload model before using it can solve many problems.
:)

On 16.12.2013 02:03, Hendrik Borghorst wrote:


Hello,

the problem isn't my delegate. It is quite minimal.

The problem is I think a bug in QML Listview. It goes absolutly crazy if
it is invisible and starts making delegate for around 50% of all items.
This causes the memory to run full.

A workaround I added is

model: visible ? modelVar : null

which works quite nicely. I think this bug could be an upstream qt bug?

greetings

Am Sonntag, den 15.12.2013, 10:01 +0100 schrieb
christopher.l...@thurweb.ch:

Hi Hendrik

Have you seen this? http://qt-project.org/wiki/Performance_tip_Lists

The general advice is to keep the delegates is lightweight as
possible, and to use Loaders for anything needed later (e.g. onClick)

Chris

Zitat von Hendrik Borghorst hendrikborgho...@gmail.com:


Hello folks,

I've got a problem with long lists (~25000 elements). All delegates are
created at once which causes the memory usage to explode beyond the
devices capability.

I already tried setting cacheBuffer: 0 in SiliciaListView but  it
doesn't change it.

Is the something I'm doing wrong.

You can see the actual page code here:

https://github.com/djselbeck/smpc/blob/master/pages/CurrentPlaylistPage.qml

Shouldn't the delegates be constructed on demand? It is weird because my
old n8 wasn't struggling with qml lists with this size.

greetings and congrats on getting the devices to your customers (I'm
very pleased)






___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Delegate creation on demand

2013-12-15 Thread Andrey Kozhevnikov

you doing it wrong. its all what i see now :)

On 16.12.2013 02:17, Hendrik Borghorst wrote:

It is weird if I have to manually optimize something which worked for 2
years on an old Nokia N8 with 128? MB memory. I don't see any reason for
qt to create those delegate items and as I read the documentation of the
qt-project QAbstractListModel is exactly the way to go.

Also there are cases where manual optimization is far less efficient
than tested optimizations done by compilers or good libraries ;) .

Am Montag, den 16.12.2013, 02:14 +0600 schrieb Andrey Kozhevnikov:

no, i mean manual optimization.

like loading model when it actually requires, or dynamically create
listview with model using component loader or createComponent.

QML is easy and fast when you making small projects. but for complex
you should thinh HOW code actially works after interpretation.

On 16.12.2013 02:08, Hendrik Borghorst wrote:


What do you mean exactly?

Isn't this exactly what ListView should do automatically which can be
influenced with cacheBuffer? Which by the way works correctly as long as
the listview stays visible.

greetings


Am Montag, den 16.12.2013, 02:05 +0600 schrieb Andrey Kozhevnikov:

load model dynamically?

if you wont preload model before using it can solve many problems.
:)

On 16.12.2013 02:03, Hendrik Borghorst wrote:


Hello,

the problem isn't my delegate. It is quite minimal.

The problem is I think a bug in QML Listview. It goes absolutly crazy if
it is invisible and starts making delegate for around 50% of all items.
This causes the memory to run full.

A workaround I added is

model: visible ? modelVar : null

which works quite nicely. I think this bug could be an upstream qt bug?

greetings

Am Sonntag, den 15.12.2013, 10:01 +0100 schrieb
christopher.l...@thurweb.ch:

Hi Hendrik

Have you seen this? http://qt-project.org/wiki/Performance_tip_Lists

The general advice is to keep the delegates is lightweight as
possible, and to use Loaders for anything needed later (e.g. onClick)

Chris

Zitat von Hendrik Borghorst hendrikborgho...@gmail.com:


Hello folks,

I've got a problem with long lists (~25000 elements). All delegates are
created at once which causes the memory usage to explode beyond the
devices capability.

I already tried setting cacheBuffer: 0 in SiliciaListView but  it
doesn't change it.

Is the something I'm doing wrong.

You can see the actual page code here:

https://github.com/djselbeck/smpc/blob/master/pages/CurrentPlaylistPage.qml

Shouldn't the delegates be constructed on demand? It is weird because my
old n8 wasn't struggling with qml lists with this size.

greetings and congrats on getting the devices to your customers (I'm
very pleased)




___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Delegate creation on demand

2013-12-15 Thread Andrey Kozhevnikov

start with Dynamic Object Management

On 16.12.2013 02:21, Hendrik Borghorst wrote:

Than if it is so clear could you be so nice and point me to some
documentation?

Am Montag, den 16.12.2013, 02:19 +0600 schrieb Andrey Kozhevnikov:

you doing it wrong. its all what i see now :)

On 16.12.2013 02:17, Hendrik Borghorst wrote:


It is weird if I have to manually optimize something which worked for 2
years on an old Nokia N8 with 128? MB memory. I don't see any reason for
qt to create those delegate items and as I read the documentation of the
qt-project QAbstractListModel is exactly the way to go.

Also there are cases where manual optimization is far less efficient
than tested optimizations done by compilers or good libraries ;) .

Am Montag, den 16.12.2013, 02:14 +0600 schrieb Andrey Kozhevnikov:

no, i mean manual optimization.

like loading model when it actually requires, or dynamically create
listview with model using component loader or createComponent.

QML is easy and fast when you making small projects. but for complex
you should thinh HOW code actially works after interpretation.

On 16.12.2013 02:08, Hendrik Borghorst wrote:


What do you mean exactly?

Isn't this exactly what ListView should do automatically which can be
influenced with cacheBuffer? Which by the way works correctly as long as
the listview stays visible.

greetings


Am Montag, den 16.12.2013, 02:05 +0600 schrieb Andrey Kozhevnikov:

load model dynamically?

if you wont preload model before using it can solve many problems.
:)

On 16.12.2013 02:03, Hendrik Borghorst wrote:


Hello,

the problem isn't my delegate. It is quite minimal.

The problem is I think a bug in QML Listview. It goes absolutly crazy if
it is invisible and starts making delegate for around 50% of all items.
This causes the memory to run full.

A workaround I added is

model: visible ? modelVar : null

which works quite nicely. I think this bug could be an upstream qt bug?

greetings

Am Sonntag, den 15.12.2013, 10:01 +0100 schrieb
christopher.l...@thurweb.ch:

Hi Hendrik

Have you seen this? http://qt-project.org/wiki/Performance_tip_Lists

The general advice is to keep the delegates is lightweight as
possible, and to use Loaders for anything needed later (e.g. onClick)

Chris

Zitat von Hendrik Borghorst hendrikborgho...@gmail.com:


Hello folks,

I've got a problem with long lists (~25000 elements). All delegates are
created at once which causes the memory usage to explode beyond the
devices capability.

I already tried setting cacheBuffer: 0 in SiliciaListView but  it
doesn't change it.

Is the something I'm doing wrong.

You can see the actual page code here:

https://github.com/djselbeck/smpc/blob/master/pages/CurrentPlaylistPage.qml

Shouldn't the delegates be constructed on demand? It is weird because my
old n8 wasn't struggling with qml lists with this size.

greetings and congrats on getting the devices to your customers (I'm
very pleased)


___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Making HTTP-requests

2013-12-17 Thread Andrey Kozhevnikov
Why not to make class with features you want and export it via 
setContextProperty to use on QML side?


On 17.12.2013 22:14, da4c3...@ssl-mail.com wrote:

What is the preferred way to make HTTP-requests in Sailfish?
XMLHttpRequest doesn't cut it, since I need a custom user agent string.

Are there any QML-libraries or do I have to hack it with QNetworkRequest
and friends?
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Receiving notifications

2013-12-18 Thread Andrey Kozhevnikov
There is mlite5 library providing MNotification compability for 
lipstick, it have all features MeeGo have.


On 18.12.2013 21:24, Mike Sheldon wrote:

Hi,

  I'm currently in the process of porting Rockwatch, my Pebble smart
watch application, from MeeGo to Sailfish. I've got the basics working
with it communicating correctly with the watch over bluetooth, however
I'm running into a bit of a problem with notifications.

  From what I can tell from a bit of poking around, Sailfish's
notification system is based around the org.freedesktop.Notifications
standard. However from what I can see looking at the documentation for
this it doesn't really make any provision for multiple notification
sinks/servers like MeeGo's MNotificationManager did. Is there something
I'm overlooking? Or is there some other mechanism by which an
application can register an interest in receiving notifications?

Thanks,
  Mike.

___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] qca-qt5 for Jolla phone

2013-12-19 Thread Andrey Kozhevnikov

qt5 have good QCryptographicHash classes. Why you need QCA?
On 19.12.2013 13:37, Denis Zalevskiy wrote:

Hi Ruediger,

On 12/17/2013 11:16 PM, Ruediger Gad wrote:

Hi,

as far as I can see, qca-qt5 is not available in the pre-installed
repositories of the Jolla phone.
So, my questions are:
- Is it planned to make it available (qca-qt5 is already in
nemo:devel:mw on Mer OBS.)?
If this package is in the Nemo already, it should be available soon 
(some upcoming winter update) in Sailfish with some upcoming update. 
Ask lbt on irc@freenode #mer about approx. estimations.

- What would be the process to make it available and how long would it
roughly take?
   I filed the PR on github that added the packaging for the actual qt5
version and would be willing to help here if I can.
- Are there alternatives to adding qca-qt5 to the pre-installed
repositories in order to allow apps on Harbour to use it as dependency?
Now you can just package it with your application. Sometime later it 
has a big chance to appear in the list of officially supported 
packages if API will be considered stable enough to be supported.


- denis


Background:
My app MeePasswords requires qca-qt5.
So far, I succeeded in building it in the SDK and successfully ran it on
my device (I manually added the qca-qt5 dependency via zypper.).
The biggest problem right now is the qca-qt5 dependency.

I'd be very happy if it was possible to get MeePasswords into the 
Harbour.




Thanks and best regards,

Ruediger






___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Calling QML function from C++ class

2013-12-21 Thread Andrey Kozhevnikov

http://qt-project.org/doc/qt-5.0/qtqml/qtqml-cppintegration-interactqmlfromcpp.html

here useful examples.

also same article can be found offline directly in QtCreator Help.

On 21.12.2013 16:05, Jukka Heikkilä wrote:

Hi,

I have successfully learned how to call C++ method from QML. I would
like to see a practical example how to call QML function from C++
method. All examples and instructions which I have found from web have
been such kind of codes where all is done from main loop.

I'm not sure is my approach right, but in my program I would first
like to call C++ method from QML and C++ function will retrive data.
After the data retrive is ready the C++ method will call other C++
method which will update the screen (e.g. multiple labels).

I would be very happy to get help with this problem and I think that
the begginners will also fighting with this kind of problems.

Happy Holidays!

Kind Regards,
Jukka Heikkilä
@Juukks
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] QtContacts available

2013-12-21 Thread Andrey Kozhevnikov

add it to pro file CONFIG += Qt5Contacts
and then include in Qt QtContacs/...

On 21.12.2013 18:02, Matthias Barmeier wrote:

Hi,

I am new to SailfishOS coming from Harmattan. How can I add this module ?
Is there any Dev Introduction available on how to add modules or which 
modules are available ?


Thanks.

Ciao
Matze

Am 21.12.2013 12:59, schrieb Andrey Kozhevnikov:

its Qt5Contacts module

On 21.12.2013 17:58, Matthias Barmeier wrote:

Hi,

is QtContacts available for SDK emulator or Device ? And if it is 
available where and how can I get it ?


Ciao
 Matze
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] QtContacts available

2013-12-21 Thread Andrey Kozhevnikov

add
INCLUDEPATH += /usr/include/qt5/QtContacts
to pro file

On 21.12.2013 18:44, Matthias Barmeier wrote:

Hi,

I added the CONFIG line to my project file. And added the include to 
my .cpp file, but got this.


/usr/include/qt5/QtContacts/qcontact.h:53: Fehler:qcontactsglobal.h: 
No such file or directory


This file is availables under:
/opt/SailfishOS/mersdk/targets/SailfishOS-i486-x86/usr/include/qt5/QtContacts 



I try to use QtContacts from qml ist this possible ?

Ciao
Matze

Am 21.12.2013 13:04, schrieb Andrey Kozhevnikov:

add it to pro file CONFIG += Qt5Contacts
and then include in Qt QtContacs/...

On 21.12.2013 18:02, Matthias Barmeier wrote:

Hi,

I am new to SailfishOS coming from Harmattan. How can I add this 
module ?
Is there any Dev Introduction available on how to add modules or 
which modules are available ?


Thanks.

Ciao
Matze

Am 21.12.2013 12:59, schrieb Andrey Kozhevnikov:

its Qt5Contacts module

On 21.12.2013 17:58, Matthias Barmeier wrote:

Hi,

is QtContacts available for SDK emulator or Device ? And if it is 
available where and how can I get it ?


Ciao
 Matze
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] QtContacts available

2013-12-21 Thread Andrey Kozhevnikov

There is no QML Contacts 5.0 in Sailfish.
You can use Sailfish.Contacts in sailfish-components-contacts-qt5

On 21.12.2013 20:26, Matthias Barmeier wrote:

Hi,

the include error is fixed, but now I am back to my old problem:

[W] unknown:33 - file:///usr/share/test/qml/pages/FirstPage.qml:33:1: 
module QtContacts is not installed


import QtContacts 5.0


my QML:

import QtQuick 2.0
import Sailfish.Silica 1.0
import QtContacts 5.0

Page {
id: page
 ...


my test.cpp:

#ifdef QT_QML_DEBUG
#include QtQuick
#endif

#include sailfishapp.h
#include QtContacts/QtContacts

...

What else must I do ?

Ciao
Matze

Am 21.12.2013 14:36, schrieb Andrey Kozhevnikov:

add
INCLUDEPATH += /usr/include/qt5/QtContacts
to pro file

On 21.12.2013 18:44, Matthias Barmeier wrote:

Hi,

I added the CONFIG line to my project file. And added the include to 
my .cpp file, but got this.


/usr/include/qt5/QtContacts/qcontact.h:53: Fehler:qcontactsglobal.h: 
No such file or directory


This file is availables under:
/opt/SailfishOS/mersdk/targets/SailfishOS-i486-x86/usr/include/qt5/QtContacts 



I try to use QtContacts from qml ist this possible ?

Ciao
Matze

Am 21.12.2013 13:04, schrieb Andrey Kozhevnikov:

add it to pro file CONFIG += Qt5Contacts
and then include in Qt QtContacs/...

On 21.12.2013 18:02, Matthias Barmeier wrote:

Hi,

I am new to SailfishOS coming from Harmattan. How can I add this 
module ?
Is there any Dev Introduction available on how to add modules or 
which modules are available ?


Thanks.

Ciao
Matze

Am 21.12.2013 12:59, schrieb Andrey Kozhevnikov:

its Qt5Contacts module

On 21.12.2013 17:58, Matthias Barmeier wrote:

Hi,

is QtContacts available for SDK emulator or Device ? And if it 
is available where and how can I get it ?


Ciao
 Matze
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list





___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Where does my locally installed app go?

2013-12-22 Thread Andrey Kozhevnikov

rpm maybe? not qpm :)

On 22.12.2013 20:42, Wim de Vries wrote:

thx, but
qpm is not on Jolla:

-bash: qpm: No such file or directory

and find does not find my app files either

BTW: same for deployment via SDK (via WLAN)

thanks
r
wim

On 12/22/2013 03:03 PM, David Greaves wrote:

On 22/12/13 13:43, Wim de Vries wrote:

Hi,
On Jolla phone.
I did a local install (pkcon install-local 
checklists-1.0.1-1.i586.rpm).

No errors. But I cannot find any trace of app anywhere.

Any rpm installs to standard locations

  qpm -ql checklists

will tell you more

David

___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Mainloop problem

2013-12-22 Thread Andrey Kozhevnikov

use lastWindowClosed signal instead of destroyed
and
int retval = app-exec();
delete x;
delete y;
return retval;

On 22.12.2013 21:22, Mikael Hermansson wrote:

Cant figure out what I am doing wrong but it  seems mainloop does not shutdown 
when
using QQuickView like below.

And I can't figure out what signal I should conect to? Or more exact what 
signal is sent from
sailfish when app is closed?

AFAIK SailfishApp is just a subclass of QQuickView but there is no public API 
what signals it
implements/overrides?

[code]
   QGuiApplication *app = SailfishApp::application(argc, argv);
 UDPManager *udp = new UDPManager();
 QQuickView *view = SailfishApp::createView();


/* FIXME: THIS DOES NOT WORK */
 QObject::connect(view, SIGNAL(destroyed()), view, 
SLOT(QGuiApplication::quit()));

 view-rootContext()-setContextProperty(version, QString(VERSION));
 view-rootContext()-setContextProperty(udp, udp);
 view-setSource(QString(/usr/share/harbour-push2sail/qml/push2sail.qml));
 view-showFullScreen();
 app-exec();
 delete app;
 delete udp;
[/code]





___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] SailfishOs Integration questions

2013-12-23 Thread Andrey Kozhevnikov
you should create json file in subdirectory inside 
/usr/share/jolla-settings/entries
then add qml page, preferable inside /usr/share/jolla-settings/pages 
subdirectory


On 24.12.2013 00:00, jja...@gmail.com wrote:

Hi sailors,

I'm also interested (spesifically question 2)  to know  how can I make my 
application to appear in the Jolla system Settings  Apps section. Thanks for 
asking this, Winfried ;)

I am developing an app that uses QSettings to manage app-spesific configuration 
and that handless nicely the persistence of settings in default file-system 
locations. Now, it would be perfect tp expose those settings to system Settings 
GUI.

Cheers,
-jukka

  
On Mon Dec 23 2013 11:53:26 GMT+0200 (EET), winfried.do...@xmsnet.nl wrote:

Hi,

Two questions about making apps as much integrated as possible in SailfishOs:

1) Is it possible to add notifications to the notification overview (swipe
up from bottom of phone) from my own app ?

2) What should I do to make my application's settings accessible from the
Settings app - Applications screen ?

thanks for any info,

Winfried

___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] SailfishOs Integration questions

2013-12-23 Thread Andrey Kozhevnikov

i see no problems with harbour.

On 24.12.2013 01:53, Gabriel Böhme wrote:

Hi,


thank you very much, for this answer, but will this be allowed in harbour
apps as well? Guess not. Will it be in the future? :)


Cheers Gabriel



--



Von meinem Nokia N9 gesendet



Andrey Kozhevnikov schrieb am 23.12.13 19:53:
you should create json file in subdirectory inside
/usr/share/jolla-settings/entries
then add qml page, preferable inside /usr/share/jolla-settings/pages
subdirectory

On 24.12.2013 00:00, jja...@gmail.com wrote:


Hi sailors,

I'm also interested (spesifically question 2)  to know  how can I make my
application to appear in the Jolla system Settings  Apps section. Thanks
for asking this, Winfried ;)

I am developing an app that uses QSettings to manage app-spesific
configuration and that handless nicely the persistence of settings in
default file-system locations. Now, it would be perfect tp expose those
settings to system Settings GUI.

Cheers,
-jukka

   On Mon Dec 23 2013 11:53:26 GMT+0200 (EET), winfried.dobbe@xmsnet.nlwrote:


Hi,

Two questions about making apps as much integrated as possible in
SailfishOs:

1) Is it possible to add notifications to the notification overview (swipe
up from bottom of phone) from my own app ?

2) What should I do to make my application's settings accessible from the
Settings app - Applications screen ?

thanks for any info,

Winfried

___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Jolla hostname == localhost

2013-12-24 Thread Andrey Kozhevnikov

create /etc/hostname

On 24.12.2013 14:17, Risto Sainio wrote:
I noticed that jolla has as hostname localhost. Could this be changed 
to another name as right now there could be only one jolla-device 
known by my local DNS-DHCP-combo. Did not find any /etc/hostname or 
/etc/HOSTNAME files to change this. Is the hostname  buried somewhere 
in dbus ?

___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] configure mail accounts via command line

2013-12-25 Thread Andrey Kozhevnikov

did you tried emulating keypress with char codes?

On 25.12.2013 21:57, Sven Putze wrote:

On 25.12.2013, at 15:40, Andrey Kozhevnikov coderusin...@gmail.com wrote:


pasting from clipboard to onscreen keyboard not working? sadly then.


Sadly, indeed :-)
If only I had something I could copy and paste from...
...I've seen the suggestion from Mikael Hermansson but am not desperate enough 
to install the app;-)

BR.
Sven

___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] configure mail accounts via command line

2013-12-25 Thread Andrey Kozhevnikov

system wide or to active window, using QApplication::sendEvent.
I didnt tried it to send events to another window, just suggesting 
different way.


On 25.12.2013 23:30, Sven Putze wrote:

I din't get that. Emulate keypress where?

BR.
Sven
On 25.12.2013, at 17:39, Andrey Kozhevnikov coderusin...@gmail.com wrote:


did you tried emulating keypress with char codes?

On 25.12.2013 21:57, Sven Putze wrote:

On 25.12.2013, at 15:40, Andrey Kozhevnikov coderusin...@gmail.com wrote:


pasting from clipboard to onscreen keyboard not working? sadly then.


Sadly, indeed :-)
If only I had something I could copy and paste from...
...I've seen the suggestion from Mikael Hermansson but am not desperate enough 
to install the app;-)

BR.
Sven

___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] configure mail accounts via command line

2013-12-25 Thread Andrey Kozhevnikov

i see. you hope someone did solution for you ;)

On 25.12.2013 23:44, Sven Putze wrote:

Oh,

sorry. I am not writing an app. It's just about entering my long and cryptic 
password in the real device. I hope I don't need to write an app for that ;-)

BR.
Sven
On 25.12.2013, at 18:32, Andrey Kozhevnikov coderusin...@gmail.com wrote:


system wide or to active window, using QApplication::sendEvent.
I didnt tried it to send events to another window, just suggesting different 
way.

On 25.12.2013 23:30, Sven Putze wrote:

I din't get that. Emulate keypress where?

BR.
Sven
On 25.12.2013, at 17:39, Andrey Kozhevnikov coderusin...@gmail.com wrote:


did you tried emulating keypress with char codes?

On 25.12.2013 21:57, Sven Putze wrote:

On 25.12.2013, at 15:40, Andrey Kozhevnikov coderusin...@gmail.com wrote:


pasting from clipboard to onscreen keyboard not working? sadly then.


Sadly, indeed :-)
If only I had something I could copy and paste from...
...I've seen the suggestion from Mikael Hermansson but am not desperate enough 
to install the app;-)

BR.
Sven

___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] configure mail accounts via command line

2013-12-25 Thread Andrey Kozhevnikov
what profit of using long crypted password if you can't remember it or 
just type, if you keeping your long and crypted password in some text 
file and pasting it every time you need to reset your mail account?


On 25.12.2013 23:44, Sven Putze wrote:

Oh,

sorry. I am not writing an app. It's just about entering my long and cryptic 
password in the real device. I hope I don't need to write an app for that ;-)

BR.
Sven
On 25.12.2013, at 18:32, Andrey Kozhevnikov coderusin...@gmail.com wrote:


system wide or to active window, using QApplication::sendEvent.
I didnt tried it to send events to another window, just suggesting different 
way.

On 25.12.2013 23:30, Sven Putze wrote:

I din't get that. Emulate keypress where?

BR.
Sven
On 25.12.2013, at 17:39, Andrey Kozhevnikov coderusin...@gmail.com wrote:


did you tried emulating keypress with char codes?

On 25.12.2013 21:57, Sven Putze wrote:

On 25.12.2013, at 15:40, Andrey Kozhevnikov coderusin...@gmail.com wrote:


pasting from clipboard to onscreen keyboard not working? sadly then.


Sadly, indeed :-)
If only I had something I could copy and paste from...
...I've seen the suggestion from Mikael Hermansson but am not desperate enough 
to install the app;-)

BR.
Sven

___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


[SailfishDevel] Mitakuuluu for Sailfish - preview package

2013-12-25 Thread Andrey Kozhevnikov

Hello sailors!

I'm just sharing preview package of Mitakuuluu - WhatsApp client for 
Sailfish.

I'm hoping on your bugreports, not feature requests for now, please.

https://www.dropbox.com/sh/kyo4tzo7298lkkg/rpf_rInGry

Please mail bugreports to coderusin...@gmail.com please.

Best regards :)
___
SailfishOS.org Devel mailing list


[SailfishDevel] Together Jolla emails

2013-12-25 Thread Andrey Kozhevnikov
Can you add to togeher jolla emails link to added comment and lint to 
case please?


Now its quite useless if you cant go to site from email :(
___
SailfishOS.org Devel mailing list


[SailfishDevel] jolla-mediaplayer cant handle file url for opening

2013-12-25 Thread Andrey Kozhevnikov
There is worst lack of feature ever in jolla-mediaplayer. It have no 
option to open mediafile from fileurl via mimetypes associations. There 
are just NO way to open media file from filemanager or transfers window.


Users erporting it as bug in my application, but bug in Sailfish, in 
jolla-mediaplayer (not a bug ofc., just lack of default feature which 
any application should have)

___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Displaying large models in SailfishOS

2013-12-26 Thread Andrey Kozhevnikov

I solved this in two ways:
1. Put SilicaListView inside SIlicaFlickable.

SilicaFlickable {
interactive: !listView.flicking
pressDelay: 0
PullDownMenu {}
PageHeader {}
SilicaListView {
pressDelay: 0
}
}

Now i have fixed header and can always pull down menu, and its not 
intercepting with long lists inside ListView


pressDelay: 0
2. Implemented FastScroll based on section sctolling. Just ported QML 
FastScroll component from harmattan components to Silica. Looks very 
nice and suitable for Sailfish UI.


On 26.12.2013 17:38, Luciano Montanaro wrote:

Hi everybody,

This is the second problem I realized I have, now that I can test my
application on the actual hardware:

With a long list of items in the view, it is possible to go so much
down the list of items, that accessing the pulley menu becomes
difficult.

On Harmattan, this problem is avoided by two features:

* The toolbar is always visible and
* Long lists can be scrolled quickly through the use of the section
scroller item.

I am open to suggestions on how to fix this usability problem in my
application...

Since I modeled the list on the Contacts application behavior, one
possibility is to do what the People internal application does:
Search on top, then favorites, recent stations, and alphabet grid.

The only problem is: the alphabet grid view is not available as a
Silica item for general use... Am I right? Is it planned for a furter
update?

Alternatively, is something along the line of the SectionScroller
planned for a future update?

Thank you and best regards,
Luciano



___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Remote Xterm/Wayland session possible?

2013-12-27 Thread Andrey Kozhevnikov

VNC?

On 27.12.2013 16:40, Putze Sven wrote:

Hi all,

would it be possible to open a (SSH tunneled) Xterm or Wayland session with the 
phone? Is there enough technology in the Wayland stack on the phone?
Usecase could be presentation on a beamer, recording of what's happening on the 
phone. How did the Jolla guys make their remote presentations? USB?

Thanks,
BR.
Sven
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] configure mail accounts via command line

2013-12-27 Thread Andrey Kozhevnikov

just generate random 32-ascii-chars password. it should be enough :)

On 27.12.2013 18:38, Putze Sven wrote:

On 25.12.2013, at 18:49, Andrey Kozhevnikov coderusin...@gmail.com wrote:


what profit of using long crypted password if you can't remember it or just 
type, if you keeping your long and crypted password in some text file and 
pasting it every time you need to reset your mail account?

My passwords are not in a plain text file, they are stored in a crypted KeePass 
file. Someone is creating an app for Jolla, so everything will be fine in 
future. The profit is of course security: I use different logon credentials for 
each and every account (not only emails). It's more about not re-using 
passwords for other accounts, the human brain is quite limited here ;-) And 
yes, this kind of security (or call it paranoia) comes at a price: 
inconvenience.

BR.
Sven

P.S. Push2Sail came here to rescue, everything works fine now.

___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] [Update] Changelog for SailfishOS update 2 (1.0.2.5)

2013-12-27 Thread Andrey Kozhevnikov

Thanks. Really big update :)

On 27.12.2013 19:00, Bernd Wachter wrote:

Hi all,

we're releasing update2 today. The changelog can be found (and commented
on) here:

https://together.jolla.com/question/3612/release-notes-software-update-2-1025/

Changelog is appended below, for additional instructions please read the
post at together.


What's new
--

  * Google calendar sync to your Jolla (one way)
  * Camera support in Android apps
  * Updating/uninstalling apps from Yandex store
  * Camera now supports all 4 orientations
  * Advanced recovery mode [[details]](#details)
  * Ability to accept any server certificates during Exchange ActiveSync
account setup


Highlights of improvements
--

- Camera
* Improvements in exposure time and auto focus in low light conditions
* Improved switching from rear to front camera

- Connectivity
* Connection switcher in Settings no longer sticks even when the
   network is not fully registered
* Static IP settings bug fixed
* Access point selection steps can be reversed without causing an
   issue.
* Retries are now possible if you input a wrong WLAN password

- Home / Events / Notifications
* Only important notifications (missed call, chat, messages, mails) are
   shown on Lock screen, all notifications are
   visible in Events
* Facebook and Twitter notifications no longer have LED indicators
* Disabling Facebook/Twitter feeds now removes them from Events
* Better support for high flow of tweets
* Twitter feeds now show the real name of the user
* Notification clearing improved
* Updates no longer re-appear after reboot
* USB mode selection is no longer shown when device is locked/suspended
* Fixes an issue where Home displayed as a long scrollable list
* Entering incorrect code on device lock screen now has haptic feedback

- Accounts
* Improvements in jolla account creation steps

- Phone
* Call volume can now be adjusted before outgoing call is answered
* Phone call UI does not show Bluetooth indicator when connected to a
   device that does not support phone call audio
* Previous caller's avatar no longer flickers before the current
   caller's avatar is displayed
* When powering up the device now registers directly to 3G  instead of
   first registering to 2G and then switching to 3G

- Messages
* Messages application keeps the active page and message text when
   re-activated from Launcher
* Message notifications now remain cleared and group correctly after
   rebooting
* Modifying contacts now shows available message conversation options
   immediately
* Imported contacts with unknown IM accounts no longer appear as
   apparently usable messaging options
* Multiple recipients can now be picked from favorites
* Words with a dot in the middle are no longer recognized as a URL when
   entering the message

- People
* Phone numbers with dialling card prefixes are no longer merged with
   their un-prefixed versions
* Fixed confusing behaviour while editing contacts that have only
   nickname
* Search results in People are now correctly highlighted

- Clock
* Uninstalling the app cancels outstanding alarms
* Clock now shows the correct time in alarm list and cover for all
   timezones

- Bluetooth
* OBEX push requests from trusted devices are now automatically accepted
* A more informative progress bar is shown during BT discovery

- Browser
* Minor UI fixes and performance improvements
* WebGL performance improved significantly
* Fixes an issue where browser stopped to open links

- Store client
* System update check is only done over a WLAN connection
* Connection dialog and status indication no longer suggest that a
   check is in progress without a connection
* Speed up app installation process

- Settings
* Time display in Settings now respects the selected time zone
* UTC offset shown now takes DST into account
* Developer mode: Fingerterm default settings are more user friendly
* USB default mode of Always ask is respected even after unlocking
   the device

- Mail
* Improves support for accounts where service username is different from
   email address
* Improves standard folders handling
* Fixes an issue in the communication with SMTP servers that don't
   require authentication
* Fixes an issue related to email sending for some servers using
   ecrypted password(CRAM-MD5) for authentication
* Fixes an issue in attachments handling in POP3 accounts
* Fixes an issue in email deleting in POP3 accounts
* Fixes an issue related to email signature handling in draft emails
* Fixes an issue in the unread email count for local only folders
* Fixes an issue that prevents long email subjects to be shown in the
   email info view
* Fixes an issue related to opening a html email via notification
* Fixes an issue realated to replying to html only emails

- Exchange ActiveSync
* Improved error reporting when an account can't be configured

- Office
* Opening a document from a mail attachment works even if another
   document is being 

[SailfishDevel] Custom software input panel in QML

2013-12-27 Thread Andrey Kozhevnikov

Hello!

Is there are way to override software input panel in qt5?
In harmattan i used inputContext.customSoftwareInputPanelComponent in 
QML which replaces SoftwareInputPanel component

___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Daemons in app store. And/or other ways of getting activated on event/schedule

2013-12-29 Thread Andrey Kozhevnikov

creating cron rules can be more usable and easier

On 29.12.2013 14:20, AL13N wrote:

IMHO, we should contribute such stuff to mer/nemo (possibly using dbus)
and make an app for it here.

daemons as apps seems ludicrous to me...


Hi All

If I read Harbour FAQ correctly, you are not allowed to install daemons
(as
you are not allowed to write to /etc/init.d). Okay, hacks are probably
possible (app could try modifying /etc/init.d at runtime), but I guess
putting daemons under strict control is Jolla's intention.

What would then be a way to run an app periodically or on some events?
For example I am thinking about changing ambience on schedule or on every
device unlock. An offline together.jolla.com client could like to
synchronize posts in background.

What would be the sailfish way to do it?
- Harmattan-like hooking to alarm clock scheduler?
- iOS-like wake up on server notification?
- BlackBerry10-like registering to specific events via specific API?
- Linux-like permission to install daemons?
- Harmattan/iOS-like wake up of all network needing apps simultaneously
once in a while?
- Something completely different?

Best regards,
Artem.

--
Artem Marchenko
http://agilesoftwaredevelopment.com
http://twitter.com/AgileArtem
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] PkCon on Emulator: Empty Reply from Server

2013-12-29 Thread Andrey Kozhevnikov

you can use
export LANG=C
to get output in english

and for bug: just change dns of your isp connection / try to ping 
http://releases.sailfishos.org


On 29.12.2013 21:38, christopher.l...@thurweb.ch wrote:

Hi All

Ever so often, when I try to install a package to the Emulator via 
PkCon I get the following error:



Schwerwiegender Fehler: Fehler beim Herunterladen (curl) für 
'http://releases.sailfishos.org/sdk/latest/jolla/i486/mw/i486/geoclue-0.12.99.3-1.4.1.i486.rpm':

Fehlerkode: Unrecognized error
Fehlernachricht: Empty reply from server

(For the non-german speakers that translates to something like 
Critical Error: Error downloading  for ).


Having googled I found a workaround in the logs of an irc conversation 
between Jonni and Artem


http://merproject.org/logs/%23sailfishos/%23sailfishos.2013-11-23.log

Namely:

artemma: if you get cant resolve host, then you might want to run as 
root in emu: echo nameserver 8.8.8.8  /etc/resolv.conf


After running that the server is resolved and packages are installed.

But what is going on here? Why do I repeatedly need to repeat this fix?

Chris

___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] pageStack.navigate[Forward/Back] not working?

2014-01-01 Thread Andrey Kozhevnikov

Working for me on device. It can be emulator bug only.

On 01.01.2014 21:49, Mikael Hermansson wrote:


In my code I have an attached page I want to jump to when user select 
it in a menu:


Code that creates the attached page its a timer trigger 50 msec after 
FirstPage has been rendered because it seems Component.onCompleted 
cant be used to attach page:


Timer{

id:timer1

running:true

interval:50

repeat:false

onTriggered:pageStack.pushAttached(Qt.resolvedUrl(SelectUrl.qml));

}

The attached page is Okey and I can navigate to it via swipe but not 
via menu using navigateBack() (also tried navigateForward() no error 
message shown but goto url page is printed...


Pulleymenu code:

MenuItem{

text:qsTr(Goto...)

onClicked:{console.log(gotourlpage);pageStack.navigateBack() /* = 
this does not trigger? and no error message? */}


}

Is this a known issue in Silica and/or some kind of workaround?

--

Skickat från Lenovo Thinkpad X230 running Kubuntu desktop



___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] How to translate (lupdate) ?

2014-01-02 Thread Andrey Kozhevnikov
its inside build machine. qmake will run lupdate/lrelease from internal 
path.


On 02.01.2014 23:36, Franck Routier (perso) wrote:

Hi,

I would like to translate my QML application, now that it runs fine.
I have used qsTr() for literal strings.

Then I have tried to run 'lupdate' from tools/external/Linguist in the
Sailfish SDK QtCreator, but it does not seem to do anything...

Also, 'find . -name lupdate' in the sdk finds nothing... (it did in
the Harmattan Qt SDK).

How should I translate my application ? Is there a specific trick from
within the SDK, or is this just a missing feature ?

Secondary question: I have images that contain textual information. Is
there a best way (standard API) to pick the right file, or should I
play with suffix in a custom way ?

Thanks in advance,

Franck
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] How to translate (lupdate) ?

2014-01-02 Thread Andrey Kozhevnikov
i'm always using self-created ts.list text file with list of paths to 
files contains strings


and my lupdate syntax:

lupdate -verbose -ts languages/en_US.ts @ts.list

On 02.01.2014 23:44, Franck Routier (perso) wrote:

Le 02/01/2014 18:37, Andrey Kozhevnikov a écrit :

its inside build machine. qmake will run lupdate/lrelease from internal
path.

Ok, I understand. So I have to start the MerSDK virtual machine for
lupdate to work.

Then, shouldn't it generate some .ts file in my project ? (its the first
time I use QT Linguist, still learning, thanks for your patience)


Regards,
Franck
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] How to translate (lupdate) ?

2014-01-02 Thread Andrey Kozhevnikov

for directly use lupdare/lrelease you need to chroot to target (inside VM):

sb2 -t SailfishOS-armv7hl -s sdk-install

On 03.01.2014 02:00, Franck Routier (perso) wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I finally used the lupdate binary found in the Harmattan SDK somewhere
on my hard disk.

Also, to make it process qml files, I used this trick
(https://developer.nokia.com/Community/Wiki/Lupdate_with_qml_files),
which consists in listing the qml files this way in the .pro file:

evil_hack_to_fool_lupdate {
SOURCES += \
qml/Splash.qml \
qml/Login.qml \
...
}

Notice that running lupdate with a ts.list file as Andrey suggested
failed with a message telling me the files had a no recognized
extension.

Ok, this did the trick for now, but I'm still wondering how this is
supposed to work from within the SailfishOS SDK...

Best regards,

Franck

Le 02/01/2014 19:11, Andrey Kozhevnikov a écrit :

i'm always using self-created ts.list text file with list of paths
to files contains strings

and my lupdate syntax:

lupdate -verbose -ts languages/en_US.ts @ts.list

On 02.01.2014 23:44, Franck Routier (perso) wrote:

Le 02/01/2014 18:37, Andrey Kozhevnikov a écrit :

its inside build machine. qmake will run lupdate/lrelease from
internal path.

Ok, I understand. So I have to start the MerSDK virtual machine
for lupdate to work.

Then, shouldn't it generate some .ts file in my project ? (its
the first time I use QT Linguist, still learning, thanks for your
patience)


Regards, Franck ___
SailfishOS.org Devel mailing list

___ SailfishOS.org
Devel mailing list

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSxcVFAAoJEGEvoAir78RowoQH/idqyCx/+mYDYSkxEQrH3xkf
s1E3t6dShlTQH0Z0JOuiTuO3aND2rQV5mA/ROUVU7jzb2557stahCLAFr1ODfnn4
R437WizgA8b0uTzEwpdXRE3r+i189adxs+tsyyC++iaRj2W7tO16nrhagOq06VyA
/AXkWwGUoxlcODB/Q6XWlJAsKo0ta0GDMEYe0UJge40CavW0vb3jFYydF2UOqhq/
x21PVh8+xgNr4JGn+c11o0NXMJIBF3LCwI254jp2P9XdRlecaphL87e/Nt2cB+NS
nqw0bidwgsxnVPM1R85ycmDzPjnjnw+2apcrafpM8NP6UKRmmRIU2HXWUE9PIiI=
=2IKG
-END PGP SIGNATURE-
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] How to translate (lupdate) ?

2014-01-02 Thread Andrey Kozhevnikov
you can use any /usr/share/appname location. use qm file with 
QTranslator and install translator to QGuiApplication


qsTr is enough

you can use LC_ALL

On 03.01.2014 02:26, Franck Routier (perso) wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ok, now I have .ts file, I did translate the strings, and produced the
.qm file.

So my next questions are:
1) how do I include the qm file in the rpm ? Should I put it in a
specific directory, or directly in /usr/share/MyApp ?

2) is there something special I need to do in my app to trigger the
magic, or is using qsTr() in the qml files sufficient to to make it
happen ?

3) Is there a way I can test if it is working from within the SDK (I
did not receive my device yet...) ? Should I ssh into the emulator and
play with LC_ALL, or is there another way ?

Thanks in advance,

Franck


Le 02/01/2014 21:02, Andrey Kozhevnikov a écrit :

for directly use lupdare/lrelease you need to chroot to target
(inside VM):

sb2 -t SailfishOS-armv7hl -s sdk-install

On 03.01.2014 02:00, Franck Routier (perso) wrote: I finally used
the lupdate binary found in the Harmattan SDK somewhere on my hard
disk.

Also, to make it process qml files, I used this trick
(https://developer.nokia.com/Community/Wiki/Lupdate_with_qml_files),



which consists in listing the qml files this way in the .pro file:

evil_hack_to_fool_lupdate { SOURCES += \ qml/Splash.qml \
qml/Login.qml \ ... }

Notice that running lupdate with a ts.list file as Andrey
suggested failed with a message telling me the files had a no
recognized extension.

Ok, this did the trick for now, but I'm still wondering how this
is supposed to work from within the SailfishOS SDK...

Best regards,

Franck

Le 02/01/2014 19:11, Andrey Kozhevnikov a écrit :

i'm always using self-created ts.list text file with list of
paths to files contains strings

and my lupdate syntax:

lupdate -verbose -ts languages/en_US.ts @ts.list

On 02.01.2014 23:44, Franck Routier (perso) wrote:

Le 02/01/2014 18:37, Andrey Kozhevnikov a écrit :

its inside build machine. qmake will run lupdate/lrelease
from internal path.

Ok, I understand. So I have to start the MerSDK virtual
machine for lupdate to work.

Then, shouldn't it generate some .ts file in my project ?
(its the first time I use QT Linguist, still learning,
thanks for your patience)


Regards, Franck
___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

___ SailfishOS.org
Devel mailing list

___ SailfishOS.org
Devel mailing list

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSxcuOAAoJEGEvoAir78Ro8ucIANB8cgLDVhuh3W2vwGay83iL
PLA1N/Js18e6VkGR80XPCarC/vvUGPbrdag5+OhGsWGNPGjX85mUMXVde8tgVTBa
FA/2s8E24YJsGAATOHIPBp161uxEU6iPDFmteBa1m/5Ze34DHpc4aeye62/eagy7
9l6sJdDd7C/jAdCUpHwrLBaYjkkDM2DpVgRLdQ3/Q1MksgFSwWxESrwbfsvrplcb
XYM5KHpCAGPnq95nAjYshkQk2Ca6/B245ZChq5OfjbMDilGWwHThQzLbcB215icM
3A4RrxWNDoNcGF+wLUutLpyPAR3mzz/y6qHETWpRyXq2tFFunAaUiv7K34C8r3Y=
=4sHU
-END PGP SIGNATURE-
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Sending emails from an app

2014-01-02 Thread Andrey Kozhevnikov

yes. all mailto fields will be added to composed email

On 03.01.2014 02:46, AL13N wrote:

Op vrijdag 3 januari 2014 01:28:17 schreef Andrey Kozhevnikov:

only mailto:em...@address.com; and its fields allowed afaik.

[...]

and i suppose the user will just see the email app on compose with prefilled
fields so the user has to accept it?


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] API/Silica Module for Contacts

2014-01-03 Thread Andrey Kozhevnikov

Is it really missing? Or just not implemented?
Why you switching statement?

It will be handy to have built in pickers for everything, but well, you 
have contacts model and can create you own picker with favorite delegates.


I dont think it's really missing feature.

Really missing feature for example Haptics/Feedback effects on QML side, 
because its essential thing coming from hardware.


On 03.01.2014 17:35, Timur Kristóf wrote:

Hey,

I forgot to mention that a file picker is also missing.
See https://together.jolla.com/question/321/file-picker-needed/

Timur


Timur



On Fri, Jan 3, 2014 at 12:17 PM, Timur Kristóf 
timur.kris...@gmail.com mailto:timur.kris...@gmail.com wrote:


Hi Sven,

I think there are some picker dialogs in Silica (you can look
around in its directory), but as far as I know only a few of them
are part of the public API.

If you look around here:
https://sailfishos.org/sailfish-silica/sailfish-silica-all.html
You can see that there's only a ColorPickerDialog,
DatePickerDialog and TimePickerDialog in the API now.

If you wish to have a contact picker, vote for this Together post:

https://together.jolla.com/question/9339/feature-request-silica-contact-picker-api/

Cheers,
Timur



Timur



On Thu, Jan 2, 2014 at 8:26 PM, Sven Putze
sailfish...@hardcodes.de mailto:sailfish...@hardcodes.de wrote:

Hi there,

I want to select the email addresses of contacts in one of my
apps. But if possible I don't want to use QContacts for this
task, I'd like to reuse the same dialog as is present in the
email program. There is this +-button which leads to a
complete (contact) selection dialog.
Is there an API (description) available anywhere to use this
module?
Must I reinvent the wheel here and try to achieve the same
with my own code?
Or can I at least use the source code of this dialog and if
yes from where?

BR.
Sven
___
SailfishOS.org Devel mailing list





___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

[SailfishDevel] Notification icons guidelines

2014-01-03 Thread Andrey Kozhevnikov

Hello!

Can you provide info about images using in lipstick notification popups 
and in notifications view? Sizes, paths, etc.?

___
SailfishOS.org Devel mailing list


[SailfishDevel] ContextMenu with repeater

2014-01-03 Thread Andrey Kozhevnikov

Hello

I can't get context menu index if using repeater inside

ComboBox {
id: languageCombo
label: Language
currentIndex: 0
menu: ContextMenu {
id: languageMenu
Repeater {
width: parent.width
model: localeNames
delegate: MenuItem {
text: modelData
onClicked: {
console.log(selected:  + modelData)
console.log(selected:  + index)
}
}
}
onActiveChanged: {
console.log(index:  + languageCombo.currentIndex)
}
}
onCurrentIndexChanged: {
if (languageMenu.active) {
console.log(index:  + currentIndex)
}
}
}

No output is produced when i selecting item, but item in repeater changed.
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Adding files to RPM packages

2014-01-03 Thread Andrey Kozhevnikov

show pro file

On 03.01.2014 22:22, Franck Routier (perso) wrote:

Hi,

still in the process of finishing my first application...

Now I have translation files (.ts and .qm), that are located in a
'languages' directory.

I have added them to the .pro file, and I have modified the yaml RPM
definition, but I must be missing something, as I get an RPM error
error:
File not found:
/home/deploy/installroot/usr/share/MkPokerPlanning/languages

Indeed, I can find my files on the mersdk VM in
/home/mersdk/devl/MkPokerPlanning/languages, but it does not make it
to /home/deploy/installroot/usr/share/MkPokerPlanning/...

Here is my yaml:

Name: MkPokerPlanning
Summary: Participate in a poker planning session and show off your Jolla
Version: 0.4
Release: 1
Group: Qt/Qt
URL: http://example.org/
License: GPLv3
Sources:
- '%{name}-%{version}.tar.bz2'
Description: |-
   This app will let you choose your poker planning evaluation in a set
of cards, and show it to your scrum-mates in due time, and on your Jolla.
Configure: none
Builder: qtc5
PkgConfigBR:
- Qt5Quick
- Qt5Qml
- Qt5Core
- sailfishapp = 0.0.10
Requires:
- sailfishsilica-qt5 = 0.10.9
Files:
- '%{_bindir}'
- '%{_datadir}/%{name}/qml'
- '%{_datadir}/%{name}/languages'
- '%{_datadir}/applications/%{name}.desktop'
- '%{_datadir}/icons/hicolor/86x86/apps/%{name}.png'
- /usr/bin
- /usr/share/MkPokerPlanning
- /usr/share/MkPokerPlanning/languages
- /usr/share/applications
- /usr/share/icons/hicolor/86x86/apps
PkgBR: []

Can someone help me spot the problem ?

Thanks in advance,

Franck
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Adding files to RPM packages

2014-01-03 Thread Andrey Kozhevnikov

you need to add your translations to INSTALLS

On 03.01.2014 22:34, Franck Routier (perso) wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

pro file is as follows:

# The name of your app.
# NOTICE: name defined in TARGET has a corresponding QML filename.
# If name defined in TARGET is changed, following needs to be
# done to match new name:
# - corresponding QML filename must be changed
# - desktop icon filename must be changed
# - desktop filename must be changed
# - icon definition filename in desktop file must be changed
TARGET = MkPokerPlanning

CONFIG += sailfishapp

SOURCES += src/MkPokerPlanning.cpp

evil_hack_to_fool_lupdate {
 SOURCES += \
 qml/MkPokerPlanning.qml \
 qml/cover/CoverPage.qml \
 qml/pages/MainPage.qml \
 qml/pages/Card.qml \
 qml/pages/CardPage.qml \
 qml/pages/About.qml \
 qml/pages/CardDeckModel.qml \
 qml/pages/AppSettings.qml \
 qml/pages/SettingsPage.qml
}

OTHER_FILES += qml/MkPokerPlanning.qml \
 qml/cover/CoverPage.qml \
 rpm/MkPokerPlanning.spec \
 rpm/MkPokerPlanning.yaml \
 MkPokerPlanning.desktop \
 qml/pages/MainPage.qml \
 qml/pages/Card.qml \
 qml/pages/CardPage.qml \
 qml/pages/About.qml \
 LICENSE.txt \
 changelog \
 qml/pages/CardDeckModel.qml \
 qml/pages/AppSettings.qml \
 qml/pages/SettingsPage.qml \
 languages/mkpokerplanning_fr.ts \
 languages/mkpokerplanning_fr.qm

RESOURCES += \
 images.qrc

HEADERS +=

TRANSLATIONS = languages/mkpokerplanning_fr.ts

Le 03/01/2014 17:30, Andrey Kozhevnikov a écrit :

show pro file

On 03.01.2014 22:22, Franck Routier (perso) wrote:

Hi,

still in the process of finishing my first application...

Now I have translation files (.ts and .qm), that are located in
a 'languages' directory.

I have added them to the .pro file, and I have modified the yaml
RPM definition, but I must be missing something, as I get an RPM
error error: File not found:
/home/deploy/installroot/usr/share/MkPokerPlanning/languages

Indeed, I can find my files on the mersdk VM in
/home/mersdk/devl/MkPokerPlanning/languages, but it does not make
it to /home/deploy/installroot/usr/share/MkPokerPlanning/...

Here is my yaml:

Name: MkPokerPlanning Summary: Participate in a poker planning
session and show off your Jolla Version: 0.4 Release: 1 Group:
Qt/Qt URL: http://example.org/ License: GPLv3 Sources: -
'%{name}-%{version}.tar.bz2' Description: |- This app will let
you choose your poker planning evaluation in a set of cards, and
show it to your scrum-mates in due time, and on your Jolla.
Configure: none Builder: qtc5 PkgConfigBR: - Qt5Quick - Qt5Qml -
Qt5Core - sailfishapp = 0.0.10 Requires: - sailfishsilica-qt5 =
0.10.9 Files: - '%{_bindir}' - '%{_datadir}/%{name}/qml' -
'%{_datadir}/%{name}/languages' -
'%{_datadir}/applications/%{name}.desktop' -
'%{_datadir}/icons/hicolor/86x86/apps/%{name}.png' - /usr/bin -
/usr/share/MkPokerPlanning -
/usr/share/MkPokerPlanning/languages - /usr/share/applications -
/usr/share/icons/hicolor/86x86/apps PkgBR: []

Can someone help me spot the problem ?

Thanks in advance,

Franck ___
SailfishOS.org Devel mailing list

___ SailfishOS.org
Devel mailing list

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSxuadAAoJEGEvoAir78RoZRkIAIIEDJxgXdICX5nE9NMl798x
0Y6KXmu1+6oYPGTMzVdmVvHA1VWkyzuQNftq5DTtgxW/F6TCxQUS0RHa5wzvafyr
8ij79aoYRVW6HklG9m9YCyA7533QYwJegRtCRhn5e3gR0f1wckxxpTlKV0EA/Gy2
CD/X8FEUI9hOu5c4L86vVwTVwtbdNEicMfP3F6rGidv0eEBYmMcZiF8IkX1VSKbx
xmWm65TcbyI1G7zf5x7rtfhA9Y/s1ZlzyJ2A6+cRuJna1wvVpFsxAoKiQd9gyYi1
hkgeYkTEuOpdMMQvmwYf6lvmfpHn3BZCsfgd9jRTtKCBHkVeJlqVUC66ifL7o3Y=
=Eblp
-END PGP SIGNATURE-
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Accessing Saifish theme from javascript

2014-01-04 Thread Andrey Kozhevnikov

import Sailfish.Silica.theme 1.0

On 04.01.2014 16:49, Kimmo Lindholm wrote:

I assume this is clear as daylight but I don't get it...
I need to access Theme colors from javascript --file;
I have successfully imported it
.importSailfish.Silica1.0asSilica
and in QtCreator after typing Silica. I can see dropdown of all sort 
of stuff, but no 'Theme'.

And tinkering didn't work:
var/color_info/=Silica.Theme.primaryColor;
It gives runtime warning from QML side where color_info is used:
[W] unknown:104 - qrc:///qml/MainPage.qml:104: Unable to assign 
[undefined] to QColor
And those which are colored from js side with color_info do appear 
black...

-kimmo


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

  1   2   3   4   5   >