Re: [SailfishDevel] How to get contacts and sms through Qt(C++)

2013-12-22 Thread christopher . lamb

Hi myinjun

If you search through the archives of this mailing list, especially  
for posts with my name you will find some stuff on Sailfish and SMS.


I was able to get SMS working (as far as that is possible) on the  
Emulator using the Telepathy libraries.


Note however that currently that will probably be a no-no for  
inclusion in the Harbour Store.


For Contacts access, see the recent thread on QtContact.

Chris

Zitat von itviewer itvie...@jolladev.net:


Hi,
I want to manage contacts and sms message through Qt C++?how can i  
do that?Are there any helpful documents?

Any pointers whatsoever would be highly appreciated.
thanks



maxinjun





___
SailfishOS.org Devel mailing list


[SailfishDevel] QML only apps: sailfish-qml

2013-12-22 Thread Matt Austin
Hi sailors,


The Harbour FAQ states in regards to .desktop files:

What do I have to put into the Exec= line?
Exec=$NAME (for Silica applications using C++ and QML) or
Exec=sailfish-qml $NAME (for QML-only Silica applications without an
application binary)


However, I don't appear to have sailfish-qml available:

[nemo@localhost ~]$ sailfish-qml
-bash: sailfish-qml: command not found


And zypper can't find anything which provides it:

[nemo@localhost ~]$ zypper what-provides sailfish-qml
Loading repository data...
Reading installed packages...
No providers of 'sailfish-qml' found.


Is the FAQ out-of-date, or am I missing something which should be installed?


Regards,

Matt
___
SailfishOS.org Devel mailing list


[SailfishDevel] Fwd: Re: Re: How to get contacts and sms through Qt(C++)

2013-12-22 Thread christopher . lamb

Hi Max

No problem, your english is excellent. What is your mother language?

I am visiting family for Christmas at the moment, so I will keep this  
first mail short. I will try and post again this evening.


So first, SMS: In my app I only need to send smses, and I do it using  
the Telepathy library. My explanation below reflects how I did it  
and my use-case, but there are other routes you can take.


The C++ code I am using is at the bottom of this mail.

Note this is ported from Harmattan, and not fully tested yet as my  
Sailfish app is not fully ported, and I only have the Emulator. No  
sign of my phone arriving ...


On Harmattan I originally used the Mobility API, but as that API had a  
very negative effect on app startup time, and is not available for Qt5  
/ Sailfish, I wrote code similar to that below for Harmattan, and was  
able to test it with a real Nokia N9.


//in the .pro file

QT += dbus

PKGCONFIG += TelepathyQt5

Note I need to play around more with the .pro file settings, but with  
the ones above, Telepathy is found, and the code compiles.


Note also that the account used below is almost certainly wrong for  
Sailfish, it is the one that works on the N9.


You also need to make sure that the correct Telepathy Modules are  
installed. I will post more on this later, but for now I think you  
will need

telepathy-ring-devel, telepathy-mission-control, telepathy-qt5-devel.

I will post separately on QtContacts in the next few days, as and when  
Christmas / family festivities permit.


Ciao

Chris



//start telepathy.h
#ifndef TELEPATHYHELPER_H
#define TELEPATHYHELPER_H

#include TelepathyQt/Types

#include QObject
#include QString

namespace Tp
{
class PendingOperation;
}

class TelepathyHelper : public QObject
{
Q_OBJECT

public:
explicit TelepathyHelper(QObject *parent = 0);
~TelepathyHelper();
Q_INVOKABLE void sendSMS(const QString contactIdentifier, const  
QString message);


signals:
void stateMsg(const QString statemsg);
void errorMsg(const QString errormsg);

private Q_SLOTS:
void onSendMessageFinished(Tp::PendingOperation *op);

private:

Tp::ContactMessengerPtr messenger;

};

#endif // TELEPATHYHELPER_H
//end //start telepathy.h

//start telepathy.cpp
#include telepathyhelper.h

#include TelepathyQt/Account
#include TelepathyQt/Debug
#include TelepathyQt/Constants
#include TelepathyQt/ContactMessenger
#include TelepathyQt/PendingSendMessage
#include TelepathyQt/Types


TelepathyHelper::TelepathyHelper(QObject *parent) :
QObject(parent)
{

Tp::registerTypes();
Tp::enableDebug(true);
Tp::enableWarnings(true);
}

TelepathyHelper::~TelepathyHelper()
{
}

void TelepathyHelper::sendSMS(const QString contactIdentifier, const  
QString message)

{

Tp::AccountPtr acc = Tp::Account::create(TP_QT_ACCOUNT_MANAGER_BUS_NAME,
  
QLatin1String(/org/freedesktop/Telepathy/Account/ring/tel/ring));

//QLatin1String(/org/freedesktop/Telepathy/Account/ring/tel/account0));
messenger = Tp::ContactMessenger::create(acc, contactIdentifier);

connect(messenger-sendMessage(message),
SIGNAL(finished(Tp::PendingOperation*)),
SLOT(onSendMessageFinished(Tp::PendingOperation*)));

}

void TelepathyHelper::onSendMessageFinished(Tp::PendingOperation *op)
{
if (op-isError()) {
qDebug()  Error sending message:  op-errorName()   
-  op-errorMessage();

emit errorMsg(Error sending message);
return;
}

Tp::PendingSendMessage *psm = qobject_castTp::PendingSendMessage *(op);
qDebug()  Message sent, token is  psm-sentMessageToken();
emit stateMsg(FinishedState);
}

//end telepathy.cpp

- Weitergeleitete Nachricht von itvie...@jolladev.net -
 Datum: Sun, 22 Dec 2013 17:36:18 +0800
   Von: itviewer itvie...@jolladev.net
   Betreff: Re: Re: [SailfishDevel] How to get contacts and sms  
through Qt(C++)

An: christopher.lamb christopher.l...@thurweb.ch

Hi Chris
Thanks for your help,I  reviewed all your posts ,however, I still do  
not know how to start.

Will you be able to provide some cases I can refer to?

Thank you and sorry for my english.


maxinjun

From: christopher.lamb
Date: 2013-12-22 15:59
To: Sailfish OS Developers; itviewer
CC: devel
Subject: Re: [SailfishDevel] How to get contacts and sms through Qt(C++)
Hi myinjun

If you search through the archives of this mailing list, especially
for posts with my name you will find some stuff on Sailfish and SMS.

I was able to get SMS working (as far as that is possible) on the
Emulator using the Telepathy libraries.

Note however that currently that will probably be a no-no for
inclusion in the Harbour Store.

For Contacts access, see the recent thread on QtContact.

Chris

Zitat von itviewer itvie...@jolladev.net:


Hi,
I want to manage contacts and sms message through Qt C++?how can i
do that?Are there any helpful documents?
Any pointers whatsoever would 

Re: [SailfishDevel] adding libraries to sailfish app.

2013-12-22 Thread Sadika Sumanapala
thank you. is there a way to deploy compiled shared libraries with app?


On Sat, Dec 21, 2013 at 11:02 PM, Andrey Kozhevnikov coderusin...@gmail.com
 wrote:

  static link object file to your binary


 On 21.12.2013 23:28, Sadika Sumanapala wrote:

 My qt application uses 3rd party library which use Cmake to build.
 How can I add it to qmake project (or required libraries) to create
 sailfish application?
 (I'm new to this)




 ___
 SailfishOS.org Devel mailing list



 ___
 SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

[SailfishDevel] Where does my locally installed app go?

2013-12-22 Thread Wim de Vries

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.
Terminal log:
[nemo@localhost ~]$ pkcon install-local checklists-1.0.1-1.i586.rpm
Installing files [=]
Waiting in queue [=]
Starting [=]
Resolving dependencies [=]
Installing packages [=]
Installing files [=]
Waiting in queue [=]
Waiting for authentication [=]
Waiting in queue [=]
Starting [=]
Resolving dependencies [=]
Installing packages   [=]

Thanks.
r
wim

___
SailfishOS.org Devel mailing list

[SailfishDevel] IPv4 multicast support

2013-12-22 Thread Tilman Vogel
Hi!

CONFIG_IP_MULTICAST is listed as disabled in /proc/config.gz. I think,
this might be the reason why the Panasonic Remote 2 android app
running in Alien Dalvik cannot see my TV set. I already did a

route add -net 224.0.0.0/24 dev wlan0

but that alone doesn't help with the issue.

Also, there is only /proc/net/igmp6, no /proc/net/igmp present on the
device.

Any hints how I could compile my own kernel to check that suspicion?

Regards,

Tilman



___
SailfishOS.org Devel mailing list


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

2013-12-22 Thread David Greaves
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


Re: [SailfishDevel] QtContacts available

2013-12-22 Thread Matthias Barmeier

Hi,

thanks a lot.

Your link and this one: 
http://flyingsheeponsailfish.blogspot.de/2013/10/alpha-2-migrating-landed.html
has working hints on what packages must be installed and how to make 
QtContacts work.


If someone else needs this here is my way of QtContacts enabling:

ssh to mer build engine:  ssh -p  -i 
/opt/SailfishOS/vmshare/ssh/private_keys/engine/root root@localhost

install a package with: zypper in qt5-qtdeclarative-pim-contacts

Select the Sailfish-Icon on the QtCreator toolbar.
Select Targets - SailfishOS-i486-x86 - manage - sync

On the emulator select settings and set a password for the ssh connection.
ssh to the emulator:   ssh -p 2223 nemo@localhost enter the 
password

Install the same package: sudo pkcon install qt5-qtdeclarative-pim-contacts

Restart both VMs. I don't know if this last step is neccessary, but 
after I have done it the error message si gone

and ContactModel is a vailid type.

Thanks again !


Ciao
Matze

Am 21.12.2013 22:14, schrieb christopher.l...@thurweb.ch:

Hi Matthias

As the error says, QtContacts is not installed.

Try this article on tips on how to install to the SDK and Emulator

http://flyingsheeponsailfish.blogspot.ch/2013/11/deploying-additional-packages-to.html 



It focuses on Location and Positioning, but is the methods used are 
relevant for QtContacts as well.


The first thing is to establish what is already installed.

For the SDK, the easiest way for a newbie is via the SDK Control 
Center, which is available via the Sailfish icon on the left of the 
QtCreator screen.


On the Emulator, once connected via SSH, you can search for contacts 
modules with


pkcon search name contacts

I have several contacts modules installed on my Emulator, but then I 
have been experimenting with contacts, and will have installed some of 
these myself.


Once you have the correct modules installed to the SDK and Emulator 
(and synced with QtCreator), then you should be able to use QtContacts 
from both C++ and QML.


Ciao

Chris

Zitat von Matthias Barmeier barme...@barmeier.com:


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


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

2013-12-22 Thread Wim de Vries

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


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] Where does my locally installed app go?

2013-12-22 Thread Kondou
Am 22.12.2013 15:42, schrieb Wim de Vries:
 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
 

qpm is a typo, try rpm
___
SailfishOS.org Devel mailing list


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

2013-12-22 Thread Wim de Vries

rpm says it is not installed.
verbose output during install:

[nemo@localhost ~]$ pkcon -v install-local checklists-1.0.1-1.i586.rpm
15:49:45PackageKit  Verbose debugging enabled (on console 1)
15:49:45PackageKit  notify::connected
15:49:45PackageKit  filter=(null), filters=0
15:49:45PackageKit  adding state 0x403fdc00
15:49:45PackageKit  doing install files
15:49:45PackageKit  role now install-files
Installing files [=]
Waiting in queue  [ ] (0%)  
15:49:45PackageKit  emit transaction-list-changed

[=]
Starting [=]
Resolving dependencies [=]
Installing packages   [  == ] 15:49:46
PackageKit  role now install-files

[=]
Installing files  [ ] (0%)  
15:49:46PackageKit  emit transaction-list-changed
  [   == ] 15:49:46
PackageKit  skipping as the same

[=]
Waiting in queue [=]
Waiting for authentication [=]
Waiting in queue  [== ] 15:49:46
PackageKit  emit transaction-list-changed

[=]
Starting [=]
Resolving dependencies [=]
Installing packages   [   == ] 15:49:46
PackageKit  remove state 0x403fdc00

  [=]












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

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

2013-12-22 Thread Jonni Nakari

On 22.12.2013 15:43, Wim de Vries wrote:

On Jolla phone.
I did a local install (pkcon install-local checklists-1.0.1-1.i586.rpm).
Seems like you are trying to install a package that is for wrong 
architecture. On the device you should use armv7hl rpm files.


You can create armv7hl rpms from the Sailfish IDE by changing the kit to 
MerSDK-SailfishOS-armv7hl.


--
Jonni Nakari
jo...@egarden.fi
+358 50 4411 784

A: Because it disrupts the natural way of thinking.
Q: Why is top posting frowned upon?

___
SailfishOS.org Devel mailing list


[SailfishDevel] How to get contacts and sms through Qt(C++)

2013-12-22 Thread itviewer
Hi Chris
Thank you very much  for your guidance,It's very helpful for me and I will try 
as your use-case.

My mother tongue is Chinese and my English is so-so. 
Wishing you and your family a very merry Christmas. 




maxinjun 

From: christopher.lamb
Date: 2013-12-22 18:55
To: itviewer; devel@lists.sailfishos.org
Subject: Fwd: Re: Re: [SailfishDevel] How to get contacts and sms through 
Qt(C++)
Hi Max

No problem, your english is excellent. What is your mother language?

I am visiting family for Christmas at the moment, so I will keep this  
first mail short. I will try and post again this evening.

So first, SMS: In my app I only need to send smses, and I do it using  
the Telepathy library. My explanation below reflects how I did it  
and my use-case, but there are other routes you can take.

The C++ code I am using is at the bottom of this mail.

Note this is ported from Harmattan, and not fully tested yet as my  
Sailfish app is not fully ported, and I only have the Emulator. No  
sign of my phone arriving ...

On Harmattan I originally used the Mobility API, but as that API had a  
very negative effect on app startup time, and is not available for Qt5  
/ Sailfish, I wrote code similar to that below for Harmattan, and was  
able to test it with a real Nokia N9.

//in the .pro file

QT += dbus

PKGCONFIG += TelepathyQt5

Note I need to play around more with the .pro file settings, but with  
the ones above, Telepathy is found, and the code compiles.

Note also that the account used below is almost certainly wrong for  
Sailfish, it is the one that works on the N9.

You also need to make sure that the correct Telepathy Modules are  
installed. I will post more on this later, but for now I think you  
will need
telepathy-ring-devel, telepathy-mission-control, telepathy-qt5-devel.

I will post separately on QtContacts in the next few days, as and when  
Christmas / family festivities permit.

Ciao

Chris



//start telepathy.h
#ifndef TELEPATHYHELPER_H
#define TELEPATHYHELPER_H

#include TelepathyQt/Types

#include QObject
#include QString

namespace Tp
{
 class PendingOperation;
}

class TelepathyHelper : public QObject
{
 Q_OBJECT

public:
 explicit TelepathyHelper(QObject *parent = 0);
 ~TelepathyHelper();
 Q_INVOKABLE void sendSMS(const QString contactIdentifier, const  
QString message);

signals:
 void stateMsg(const QString statemsg);
 void errorMsg(const QString errormsg);

private Q_SLOTS:
 void onSendMessageFinished(Tp::PendingOperation *op);

private:

 Tp::ContactMessengerPtr messenger;

};

#endif // TELEPATHYHELPER_H
//end //start telepathy.h

//start telepathy.cpp
#include telepathyhelper.h

#include TelepathyQt/Account
#include TelepathyQt/Debug
#include TelepathyQt/Constants
#include TelepathyQt/ContactMessenger
#include TelepathyQt/PendingSendMessage
#include TelepathyQt/Types


TelepathyHelper::TelepathyHelper(QObject *parent) :
 QObject(parent)
{

 Tp::registerTypes();
 Tp::enableDebug(true);
 Tp::enableWarnings(true);
}

TelepathyHelper::~TelepathyHelper()
{
}

void TelepathyHelper::sendSMS(const QString contactIdentifier, const  
QString message)
{

 Tp::AccountPtr acc = Tp::Account::create(TP_QT_ACCOUNT_MANAGER_BUS_NAME,
   
QLatin1String(/org/freedesktop/Telepathy/Account/ring/tel/ring));
 //QLatin1String(/org/freedesktop/Telepathy/Account/ring/tel/account0));
 messenger = Tp::ContactMessenger::create(acc, contactIdentifier);

 connect(messenger-sendMessage(message),
 SIGNAL(finished(Tp::PendingOperation*)),
 SLOT(onSendMessageFinished(Tp::PendingOperation*)));

}

void TelepathyHelper::onSendMessageFinished(Tp::PendingOperation *op)
{
 if (op-isError()) {
 qDebug()  Error sending message:  op-errorName()   
-  op-errorMessage();
 emit errorMsg(Error sending message);
 return;
 }

 Tp::PendingSendMessage *psm = qobject_castTp::PendingSendMessage *(op);
 qDebug()  Message sent, token is  psm-sentMessageToken();
 emit stateMsg(FinishedState);
}

//end telepathy.cpp

- Weitergeleitete Nachricht von itvie...@jolladev.net -
  Datum: Sun, 22 Dec 2013 17:36:18 +0800
Von: itviewer itvie...@jolladev.net
Betreff: Re: Re: [SailfishDevel] How to get contacts and sms  
through Qt(C++)
 An: christopher.lamb christopher.l...@thurweb.ch

Hi Chris
Thanks for your help,I  reviewed all your posts ,however, I still do  
not know how to start.
Will you be able to provide some cases I can refer to?

Thank you and sorry for my english.


maxinjun

From: christopher.lamb
Date: 2013-12-22 15:59
To: Sailfish OS Developers; itviewer
CC: devel
Subject: Re: [SailfishDevel] How to get contacts and sms through Qt(C++)
Hi myinjun

If you search through the archives of this mailing list, especially
for posts with my name you will find some stuff on Sailfish and SMS.

I was able to get SMS working (as 

[SailfishDevel] Mainloop problem

2013-12-22 Thread Mikael Hermansson
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

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] QtContacts available

2013-12-22 Thread christopher . lamb

Hi Matthias

Here are a few more hints

You connected to the SDK with a key, but to the Emulator without. A  
key can be used for both for passwordless access.


//Connect to SDK
ssh -p  -i ~/SailfishOS/vmshare/ssh/private_keys/engine/mersdk  
mersdk@localhost


ssh -p  -i ~/SailfishOS/vmshare/ssh/private_keys/engine/root  
root@localhost



//Connect to Emulator
ssh -p 2223 -i  
~/SailfishOS/vmshare/ssh/private_keys/SailfishOS_Emulator/nemo  
nemo@localhost


ssh -p 2223 -i  
~/SailfishOS/vmshare/ssh/private_keys/SailfishOS_Emulator/root  
root@localhost


The commands above work on OSX, and should work on Linux.


In your mail below you used zypper to install to the SDK VM, but not  
to the build engine with the VM, so that won't really help you. You  
have made the package available to the Operating System rather than to  
the build engine.


To install by hand to the build-engine, either use the SDK Control  
Center to search and install the package


or

connect via SSH to the SDK as you describe, then start SB2 and use  
zypper within SB2. Then sync from the control center.



Grüsse

Chris


Zitat von Matthias Barmeier barme...@barmeier.com:


Hi,

thanks a lot.

Your link and this one:  
http://flyingsheeponsailfish.blogspot.de/2013/10/alpha-2-migrating-landed.html
has working hints on what packages must be installed and how to make  
QtContacts work.


If someone else needs this here is my way of QtContacts enabling:

ssh to mer build engine:  ssh -p  -i  
/opt/SailfishOS/vmshare/ssh/private_keys/engine/root root@localhost

install a package with: zypper in qt5-qtdeclarative-pim-contacts

Select the Sailfish-Icon on the QtCreator toolbar.
Select Targets - SailfishOS-i486-x86 - manage - sync

On the emulator select settings and set a password for the ssh connection.
ssh to the emulator:   ssh -p 2223 nemo@localhost enter the  
password

Install the same package: sudo pkcon install qt5-qtdeclarative-pim-contacts

Restart both VMs. I don't know if this last step is neccessary, but  
after I have done it the error message si gone

and ContactModel is a vailid type.

Thanks again !


Ciao
Matze

Am 21.12.2013 22:14, schrieb christopher.l...@thurweb.ch:

Hi Matthias

As the error says, QtContacts is not installed.

Try this article on tips on how to install to the SDK and Emulator

http://flyingsheeponsailfish.blogspot.ch/2013/11/deploying-additional-packages-to.html It focuses on Location and Positioning, but is the methods used are relevant for QtContacts as  
well.


The first thing is to establish what is already installed.

For the SDK, the easiest way for a newbie is via the SDK Control  
Center, which is available via the Sailfish icon on the left of the  
QtCreator screen.


On the Emulator, once connected via SSH, you can search for  
contacts modules with


pkcon search name contacts

I have several contacts modules installed on my Emulator, but then  
I have been experimenting with contacts, and will have installed  
some of these myself.


Once you have the correct modules installed to the SDK and Emulator  
(and synced with QtCreator), then you should be able to use  
QtContacts from both C++ and QML.


Ciao

Chris

Zitat von Matthias Barmeier barme...@barmeier.com:


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



Re: [SailfishDevel] adding libraries to sailfish app.

2013-12-22 Thread Mike Sheldon
On Sun, 2013-12-22 at 19:11 +0530, Sadika Sumanapala wrote:
 thank you. is there a way to deploy compiled shared libraries with
 app?

Just include them in your rpm and set the -rpath value for your binary
at compilation time (alternatively you could be setting LD_LIBRARY_PATH
at runtime from your .desktop's Exec line). You can see an example of
this in the CuteSpotify Sailfish port which includes libspotify (of
particular interest will be src/src.pro):

 https://github.com/Elleo/cutespotify/tree/sailfish

It's not a perfect example as it doesn't work with the new out of tree
builds that QtCreator does (I tend to just build from the command line,
so haven't got around to updating it yet), but it should give a rough
idea of what to do.

Cheers,
 Mike.


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Fwd: Re: Re: How to get contacts and sms through Qt(C++)

2013-12-22 Thread christopher . lamb

Hi Jonni

Thanks, I mentioned that at earlier in this thread.

However I think that the harbour rule is too strict. I think there is  
a legitimate case for apps that clearly state that their purpose is to  
send SMSes, and have their own send button -- i.e. SMSes are only  
sent with explicit permission of the user at time of sending.


Chris


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

Please keep in mind that Harbour will not allow any application that  
sends SMS'es by themselves, if you want application to send sms'es  
you should open systems sms sending app (mayba can prefill the  
data), but end user should clearly press the send button her/himself  
before text message is sent.



From: devel-boun...@lists.sailfishos.org  
[devel-boun...@lists.sailfishos.org] on behalf of  
christopher.l...@thurweb.ch [christopher.l...@thurweb.ch]

Sent: Sunday, December 22, 2013 12:55 PM
To: itviewer; devel@lists.sailfishos.org
Subject: [SailfishDevel] Fwd: Re: Re: How to get contacts and sms 
   through Qt(C++)


Hi Max

No problem, your english is excellent. What is your mother language?

I am visiting family for Christmas at the moment, so I will keep this
first mail short. I will try and post again this evening.

So first, SMS: In my app I only need to send smses, and I do it using
the Telepathy library. My explanation below reflects how I did it
and my use-case, but there are other routes you can take.

The C++ code I am using is at the bottom of this mail.

Note this is ported from Harmattan, and not fully tested yet as my
Sailfish app is not fully ported, and I only have the Emulator. No
sign of my phone arriving ...

On Harmattan I originally used the Mobility API, but as that API had a
very negative effect on app startup time, and is not available for Qt5
/ Sailfish, I wrote code similar to that below for Harmattan, and was
able to test it with a real Nokia N9.

//in the .pro file

QT += dbus

PKGCONFIG += TelepathyQt5

Note I need to play around more with the .pro file settings, but with
the ones above, Telepathy is found, and the code compiles.

Note also that the account used below is almost certainly wrong for
Sailfish, it is the one that works on the N9.

You also need to make sure that the correct Telepathy Modules are
installed. I will post more on this later, but for now I think you
will need
telepathy-ring-devel, telepathy-mission-control, telepathy-qt5-devel.

I will post separately on QtContacts in the next few days, as and when
Christmas / family festivities permit.

Ciao

Chris



//start telepathy.h
#ifndef TELEPATHYHELPER_H
#define TELEPATHYHELPER_H

#include TelepathyQt/Types

#include QObject
#include QString

namespace Tp
{
 class PendingOperation;
}

class TelepathyHelper : public QObject
{
 Q_OBJECT

public:
 explicit TelepathyHelper(QObject *parent = 0);
 ~TelepathyHelper();
 Q_INVOKABLE void sendSMS(const QString contactIdentifier, const
QString message);

signals:
 void stateMsg(const QString statemsg);
 void errorMsg(const QString errormsg);

private Q_SLOTS:
 void onSendMessageFinished(Tp::PendingOperation *op);

private:

 Tp::ContactMessengerPtr messenger;

};

#endif // TELEPATHYHELPER_H
//end //start telepathy.h

//start telepathy.cpp
#include telepathyhelper.h

#include TelepathyQt/Account
#include TelepathyQt/Debug
#include TelepathyQt/Constants
#include TelepathyQt/ContactMessenger
#include TelepathyQt/PendingSendMessage
#include TelepathyQt/Types


TelepathyHelper::TelepathyHelper(QObject *parent) :
 QObject(parent)
{

 Tp::registerTypes();
 Tp::enableDebug(true);
 Tp::enableWarnings(true);
}

TelepathyHelper::~TelepathyHelper()
{
}

void TelepathyHelper::sendSMS(const QString contactIdentifier, const
QString message)
{

 Tp::AccountPtr acc = Tp::Account::create(TP_QT_ACCOUNT_MANAGER_BUS_NAME,

QLatin1String(/org/freedesktop/Telepathy/Account/ring/tel/ring));
  
//QLatin1String(/org/freedesktop/Telepathy/Account/ring/tel/account0));

 messenger = Tp::ContactMessenger::create(acc, contactIdentifier);

 connect(messenger-sendMessage(message),
 SIGNAL(finished(Tp::PendingOperation*)),
 SLOT(onSendMessageFinished(Tp::PendingOperation*)));

}

void TelepathyHelper::onSendMessageFinished(Tp::PendingOperation *op)
{
 if (op-isError()) {
 qDebug()  Error sending message:  op-errorName() 
-  op-errorMessage();
 emit errorMsg(Error sending message);
 return;
 }

 Tp::PendingSendMessage *psm =  
qobject_castTp::PendingSendMessage *(op);

 qDebug()  Message sent, token is  psm-sentMessageToken();
 emit stateMsg(FinishedState);
}

//end telepathy.cpp

- Weitergeleitete Nachricht von itvie...@jolladev.net -
  Datum: Sun, 22 Dec 2013 17:36:18 +0800
Von: itviewer itvie...@jolladev.net
Betreff: Re: Re: [SailfishDevel] How to get contacts and sms
through Qt(C++)
 An: 

Re: [SailfishDevel] Mainloop problem

2013-12-22 Thread Mikael Hermansson
Changed to:
 QObject::connect(app, SIGNAL(lastWindowClosed()), app, SLOT(quit()));

still it does not leave mainloop


On Sunday 22 December 2013 21.36.47 Andrey Kozhevnikov wrote:
 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.q
   ml));
   view-showFullScreen();
   app-exec();
   delete app;
   delete udp;
  
  [/code]
  
  
  
  
  
  ___
  SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

[SailfishDevel] missing libc.so.6 on Jolla (again)

2013-12-22 Thread Wim de Vries

Hi,
After local install I get:

[nemo@localhost ~]$ pkcon -v install-local checklists-1.0.1-1.armv7hl.rpm
17:23:20PackageKit  Verbose debugging enabled (on console 1)
17:23:20PackageKit  notify::connected
17:23:20PackageKit  notify::connected
17:23:20PackageKit  filter=(null), filters=0
17:23:20PackageKit  adding state 0x41c93400
17:23:20PackageKit  doing install files
17:23:20PackageKit  role now install-files
Installing files [=]
Waiting in queue  [ ] (0%) 
17:23:20PackageKit  emit transaction-list-changed

[=]
Starting [=]
Resolving dependencies[  == ] 17:23:21
PackageKit  remove state 0x41c93400

[=]
Fatal error: nothing provides libc.so.6(GLIBC_2.0) needed by 
checklists-1.0.1-1.armv7hl


All '#include's are Qt header files, no other.
Seems to be a topic before, but I cannot see how it was solved.
Thanks.

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Mainloop problem

2013-12-22 Thread Wim de Vries
Not sure if correct, but I use view-close() (through a QML2C++ call) 
and all ends.

In your case possibly:

QObject::connect(view, SIGNAL(destroyed()), view,

SLOT(close()));



On 12/22/2013 05:45 PM, Mikael Hermansson wrote:


Changed to:

QObject::connect(app,SIGNAL(lastWindowClosed()),app,SLOT(quit()));

still it does not leave mainloop

On Sunday 22 December 2013 21.36.47 Andrey Kozhevnikov wrote:

 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.q

  ml));

  view-showFullScreen();

  app-exec();

  delete app;

  delete udp;

 

  [/code]

 

 

 

 

 

  ___

  SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Wishes for further updates

2013-12-22 Thread Ville Tiensuu
I would like to add some:

- Fix twitter and google accounts
- Facebook group chat support
- Advanced network settings (IP-address setting, dns etc.)
- Skype support
- Fix the yandex store registration..
- OS X support (Jolla doesn't show up on Mac)

--
Ville Tiensuu
vi...@tiensuu.eu

   	   
   	A. Wickert  
  22. joulukuuta 
2013 18.23
  Hi everybody,

after some days of usage I got some wishes for further updates of 
SailfishOS.
- Native integration of SIP in the phone app
- Native integration of IPSec (Cert, PSK, Xauth)
- Taskswitcher support for Android Apps
- Battery life improvment (Powertop: "The battery reports a 
discharge 
rate of 982 mW" and this is idle with only wlan active)

I know this is a beta OS thus I write my thoughts to this list to 
help 
improve the OS.

Best Regards,
Annika




___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] missing libc.so.6 on Jolla (again)

2013-12-22 Thread Martin Grimme
Hi,

this happens if x86 binaries end up in the ARM package. Be sure to
clean up your build environment first before building the package for
ARM.


Martin


2013/12/22, Wim de Vries wsvr...@xs4all.nl:
 Hi,
 After local install I get:

 [nemo@localhost ~]$ pkcon -v install-local checklists-1.0.1-1.armv7hl.rpm
 17:23:20PackageKit  Verbose debugging enabled (on console 1)
 17:23:20PackageKit  notify::connected
 17:23:20PackageKit  notify::connected
 17:23:20PackageKit  filter=(null), filters=0
 17:23:20PackageKit  adding state 0x41c93400
 17:23:20PackageKit  doing install files
 17:23:20PackageKit  role now install-files
 Installing files [=]
 Waiting in queue  [ ] (0%)
 17:23:20PackageKit  emit transaction-list-changed
 [=]
 Starting [=]
 Resolving dependencies[  == ] 17:23:21
 PackageKit  remove state 0x41c93400
 [=]
 Fatal error: nothing provides libc.so.6(GLIBC_2.0) needed by
 checklists-1.0.1-1.armv7hl

 All '#include's are Qt header files, no other.
 Seems to be a topic before, but I cannot see how it was solved.
 Thanks.


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Wishes for further updates

2013-12-22 Thread Kondou
Am 22.12.2013 18:03, schrieb Ville Tiensuu:
 I would like to add some: …

Let me add some as well :)

- Changelog in Jolla Store
- Limit/Warning for mobile data after a quota of, say 500 MB, sort of
like android
- A bit more detailed battery screen in the settings menu, time running
on battery, what's especially eating battery, estimated time left, …
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Wishes for further updates

2013-12-22 Thread A. Wickert

I found some other things to improve:

- Subscribe to all or selected directories in mail client. At the moment 
only inbox is monitored for new mails.

- Landscape Mode everywhere (Mail, Browser, Store etc.)


On 22/12/13 18:09, Kondou wrote:

Am 22.12.2013 18:03, schrieb Ville Tiensuu:

I would like to add some: …

Let me add some as well :)

- Changelog in Jolla Store
- Limit/Warning for mobile data after a quota of, say 500 MB, sort of
like android
- A bit more detailed battery screen in the settings menu, time running
on battery, what's especially eating battery, estimated time left, …
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Mainloop problem

2013-12-22 Thread Wim de Vries

On 12/22/2013 06:03 PM, Wim de Vries wrote:
Not sure if correct, but I use view-close() (through a QML2C++ call) 
and all ends.

In your case possibly:

QObject::connect(view, SIGNAL(destroyed()), view,

SLOT(close()));


Just found out: the above works on the emulator; not on Jolla.



On 12/22/2013 05:45 PM, Mikael Hermansson wrote:


Changed to:

QObject::connect(app,SIGNAL(lastWindowClosed()),app,SLOT(quit()));

still it does not leave mainloop

On Sunday 22 December 2013 21.36.47 Andrey Kozhevnikov wrote:

 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.q

  ml));

  view-showFullScreen();

  app-exec();

  delete app;

  delete udp;

 

  [/code]

 

 

 

 

 

  ___

  SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list




___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Mainloop problem

2013-12-22 Thread Mikael Hermansson
Seems there is no point use the connect signal in normal case? Because the app 
shall close 
correct without those.

However in my case it was related to that Cover.qml file had errors that made 
the app 
mainloop not shutdown correcly.

But my other application STILL don't want to shutdown correcly. I have some QML 
errors so 
still confused what is wrong...



On Sunday 22 December 2013 17.45.53 Mikael Hermansson wrote:
 Changed to:
  QObject::connect(app, SIGNAL(lastWindowClosed()), app, SLOT(quit()));
 
 still it does not leave mainloop
 
 On Sunday 22 December 2013 21.36.47 Andrey Kozhevnikov wrote:
  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
.q
ml));
view-showFullScreen();
app-exec();
delete app;
delete udp;
   
   [/code]
   
   
   
   
   
   ___
   SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

[SailfishDevel] QDnsLookup always fails

2013-12-22 Thread Alexander Stante

Hello,

I'm trying to get SRV DNS records via QDnsLookup. Unfortunately it
always fails. The function errorString() returns Resolver functions not
found. I'm basically doing the same as in the example provided in
QDnsLookup documentation.

Looking at the source code of QDnsLookup for Unix operating systems, it
looks like it can't load / find certain libraries. Has onyone else
experienced the same problem? I've tried it with the latest version of
the SDK. Is there an other way to obtain SRV records?

Best regards,
Alex
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Harbour reporting works or not?

2013-12-22 Thread AL13N
 There was some public (or at least semi-public) announcement that download
 counters in harbour are going to work some time soon. Hence they don't
 work
 right now.

 It would be cool if Harbour UI would at least have some sort of a label
 just a demo for now on the elements that are not functional just yet.

the 0 is a dead giveaway :-) unless you don't even use the app yourself :-)

___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Jolla owner - day 1

2013-12-22 Thread AL13N
 I like it!

 But then again I knew I would ;)

 However as it is a beta release of the software, here's my list of issues
 collected so far.

 Mail client:
[...]
 - Cover shows 0 unread although both current folder and inbox has unread
 msgs.


this is probably not the unread, but recent, ie: new unread since last
check, this is a default imap function... (or it could still be a bug)

i would not like that, cause i have 78325 unread emails :-( ...


[...]
 Notes:

 - When sharing a note by email it gets sent as an attached VNOTE with the
 body
 base64 encoded and with a vcf extension which I thought was reserved for
 vCards?. I for one don't have any applications that can handle that
 format.

I believe that's called carddav ... something that people have been asking
support for with caldav...

___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Mainloop problem

2013-12-22 Thread Mikko Leppänen
Hi, 

Use smart pointers on app, view and udp, and remove those delete statements.

-Mikko


 Mikael Hermansson m...@7b4.se kirjoitti 22.12.2013 kello 20.24:
 
 Seems there is no point use the connect signal in normal case? Because the 
 app shall close correct without those.
  
 However in my case it was related to that Cover.qml file had errors that made 
 the app mainloop not shutdown correcly.
  
 But my other application STILL don't want to shutdown correcly. I have some 
 QML errors so still confused what is wrong...
  
  
  
 On Sunday 22 December 2013 17.45.53 Mikael Hermansson wrote:
  Changed to:
  QObject::connect(app, SIGNAL(lastWindowClosed()), app, SLOT(quit()));
 
  still it does not leave mainloop
 
  On Sunday 22 December 2013 21.36.47 Andrey Kozhevnikov wrote:
   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
.q
ml));
view-showFullScreen();
app-exec();
delete app;
delete udp;
   
[/code]
   
   
   
   
   
___
SailfishOS.org Devel mailing list
  
 ___
 SailfishOS.org Devel mailing list
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Mainloop problem

2013-12-22 Thread christopher . lamb

Zitat von Mikko Leppänen mleppa...@gmail.com:


Hi,

Use smart pointers on app, view and udp, and remove those delete statements.

-Mikko


As discussed in this recent thread

https://www.mail-archive.com/devel@lists.sailfishos.org/msg01778.html

Chris

___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] QtContacts available

2013-12-22 Thread Matthias Barmeier

Hi Chris,

please help me with my confusion :)

My understanding was that the build engine is the VM located at port 
. I used zypper because I read this in the blog post.
I thought that it does not make a difference if I install it via SDK 
Control center, zypper or pkcon. Is this right ?


What do you mean with SDK VM ? The emulator ? I thought there are only 
two VMs ? What doe you mean with SB2 ?


There is much to learn for me. But with your hints I had a small success 
after my old Harmattan application started to breathe :).


Ciao
Matze

Am 22.12.2013 16:54, schrieb christopher.l...@thurweb.ch:

Hi Matthias

Here are a few more hints

You connected to the SDK with a key, but to the Emulator without. A 
key can be used for both for passwordless access.


//Connect to SDK
ssh -p  -i ~/SailfishOS/vmshare/ssh/private_keys/engine/mersdk 
mersdk@localhost


ssh -p  -i ~/SailfishOS/vmshare/ssh/private_keys/engine/root 
root@localhost



//Connect to Emulator
ssh -p 2223 -i 
~/SailfishOS/vmshare/ssh/private_keys/SailfishOS_Emulator/nemo 
nemo@localhost


ssh -p 2223 -i 
~/SailfishOS/vmshare/ssh/private_keys/SailfishOS_Emulator/root 
root@localhost


The commands above work on OSX, and should work on Linux.


In your mail below you used zypper to install to the SDK VM, but not 
to the build engine with the VM, so that won't really help you. You 
have made the package available to the Operating System rather than to 
the build engine.


To install by hand to the build-engine, either use the SDK Control 
Center to search and install the package


or

connect via SSH to the SDK as you describe, then start SB2 and use 
zypper within SB2. Then sync from the control center.



Grüsse

Chris


Zitat von Matthias Barmeier barme...@barmeier.com:


Hi,

thanks a lot.

Your link and this one: 
http://flyingsheeponsailfish.blogspot.de/2013/10/alpha-2-migrating-landed.html
has working hints on what packages must be installed and how to make 
QtContacts work.


If someone else needs this here is my way of QtContacts enabling:

ssh to mer build engine:  ssh -p  -i 
/opt/SailfishOS/vmshare/ssh/private_keys/engine/root root@localhost

install a package with: zypper in qt5-qtdeclarative-pim-contacts

Select the Sailfish-Icon on the QtCreator toolbar.
Select Targets - SailfishOS-i486-x86 - manage - sync

On the emulator select settings and set a password for the ssh 
connection.
ssh to the emulator:   ssh -p 2223 nemo@localhost enter the 
password
Install the same package: sudo pkcon install 
qt5-qtdeclarative-pim-contacts


Restart both VMs. I don't know if this last step is neccessary, but 
after I have done it the error message si gone

and ContactModel is a vailid type.

Thanks again !


Ciao
Matze

Am 21.12.2013 22:14, schrieb christopher.l...@thurweb.ch:

Hi Matthias

As the error says, QtContacts is not installed.

Try this article on tips on how to install to the SDK and Emulator

http://flyingsheeponsailfish.blogspot.ch/2013/11/deploying-additional-packages-to.html 
It focuses on Location and Positioning, but is the methods used are 
relevant for QtContacts as well.


The first thing is to establish what is already installed.

For the SDK, the easiest way for a newbie is via the SDK Control 
Center, which is available via the Sailfish icon on the left of the 
QtCreator screen.


On the Emulator, once connected via SSH, you can search for contacts 
modules with


pkcon search name contacts

I have several contacts modules installed on my Emulator, but then I 
have been experimenting with contacts, and will have installed some 
of these myself.


Once you have the correct modules installed to the SDK and Emulator 
(and synced with QtCreator), then you should be able to use 
QtContacts from both C++ and QML.


Ciao

Chris

Zitat von Matthias Barmeier barme...@barmeier.com:


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 

[SailfishDevel] Share via EMail - Bug or works as expected?

2013-12-22 Thread A. Wickert

Hi,

I have multiple mail clients set up and I tried to share some pictures 
via Share - Email. It creates a new email with the last account set 
up and i cannot select another one.


I expected that I can select an email account from which the mail would 
be sent in the Share dialog or set a default account from which emails 
should be shared but both is not possible. So I deleted the email 
account which I wanted to have for default and readded it so it becomes 
the last one added. And now SailfishOS sends from this account.


In future I wish to select a account on each sharing or set a default 
account in Settings - Accounts.


Best regards,
Annika
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] How to get contacts and sms through Qt(C++) : Contacts

2013-12-22 Thread christopher . lamb

Hi Maxinjun

Now to answer the Contacts part of your question.

So far I have only briefly played with Contacts on Sailfish / Qt5, and  
I was interested in accessing contacts from QML rather than C++.


I was mainly interested to see if a bug that I had found in Qt  
Mobility Contacts (Qt4.8) was also present in Qt5, but that is a story  
for another day.


In my app .yaml file I have

PkgBR: qt5-qtdeclarative-pim-contacts

and

Requires: qt5-qtdeclarative-pim-contacts

This installs the QML Contacts components, plus qt5-qtpim-contacts and  
qt5-qtpim-versit.


As you want to use C++ you will probably also need qt5-qtpim-contacts-devel

Chris

Zitat von itviewer itvie...@jolladev.net:


Hi,
I want to manage contacts and sms message through Qt C++?how can i  
do that?Are there any helpful documents?

Any pointers whatsoever would be highly appreciated.
thanks



maxinjun





___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Share via EMail - Bug or works as expected?

2013-12-22 Thread Kimmo Lindholm
You can change account from the email,
click the ... (aka more button), then click From -field, it should show your 
accounts.
-kimmo
-


I have multiple mail clients set up and I tried to share some pictures via 
Share - Email. It creates a new email with the last account set up and i 
cannot select another one.

I expected that I can select an email account from which the mail would be sent 
in the Share dialog or set a default account from which emails should be shared 
but both is not possible. So I deleted the email account which I wanted to have 
for default and readded it so it becomes the last one added. And now SailfishOS 
sends from this account.

In future I wish to select a account on each sharing or set a default account 
in Settings - Accounts.

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


Re: [SailfishDevel] QtContacts available

2013-12-22 Thread christopher . lamb

Hi Matze

It is confusing at first, but once you get it, it is easy!


I cover that in the chapter Installing By Hand to the SDK Build  
Engine via the Control Center in:  
http://flyingsheeponsailfish.blogspot.ch/2013/11/deploying-additional-packages-to.html


You are right there are 2 VMS, the obvious Emulator, and the  
headerless SDK Build Engine.


The Emulator is the easy one, you SSH in, and use PkCon or zypper to  
install stuff directly to make them available to you apps.


The SDK Build Engine is a little bit more tricky.

Once you SSH in, zypper is available, but if you zypper at that level,  
all you are doing is adding stuff to the operating system.


Within this VM is SB2, which is the Build Engine itself. Others on  
this mailist are much better qualified than me to tell you more about  
it.


So lets SSH in as user mersdk:

ssh -p  -i ~/SailfishOS/vmshare/ssh/private_keys/engine/mersdk  
mersdk@localhost


Then we can enter into the build engine with:

sb2 -t SailfishOS-i486-x86

After that we can use zypper again, e.g. to list qt5 packages  
installed to the build engine:


zypper se qt5 | grep i |

If you install things within SB2, it is equivalent to installing via  
the SDK Control Center.


You can back out of SB2 with:

exit

Then if you repeat:

zypper se qt5 | grep i |

You should get a much shorter list of installed qt5 packages.

Have fun

Chris







Zitat von Matthias Barmeier barme...@barmeier.com:


Hi Chris,

please help me with my confusion :)

My understanding was that the build engine is the VM located at port  
. I used zypper because I read this in the blog post.
I thought that it does not make a difference if I install it via SDK  
Control center, zypper or pkcon. Is this right ?


What do you mean with SDK VM ? The emulator ? I thought there are  
only two VMs ? What doe you mean with SB2 ?


There is much to learn for me. But with your hints I had a small  
success after my old Harmattan application started to breathe :).


Ciao
Matze

Am 22.12.2013 16:54, schrieb christopher.l...@thurweb.ch:

Hi Matthias

Here are a few more hints

You connected to the SDK with a key, but to the Emulator without. A  
key can be used for both for passwordless access.


//Connect to SDK
ssh -p  -i ~/SailfishOS/vmshare/ssh/private_keys/engine/mersdk  
mersdk@localhost


ssh -p  -i ~/SailfishOS/vmshare/ssh/private_keys/engine/root  
root@localhost



//Connect to Emulator
ssh -p 2223 -i  
~/SailfishOS/vmshare/ssh/private_keys/SailfishOS_Emulator/nemo  
nemo@localhost


ssh -p 2223 -i  
~/SailfishOS/vmshare/ssh/private_keys/SailfishOS_Emulator/root  
root@localhost


The commands above work on OSX, and should work on Linux.


In your mail below you used zypper to install to the SDK VM, but  
not to the build engine with the VM, so that won't really help you.  
You have made the package available to the Operating System rather  
than to the build engine.


To install by hand to the build-engine, either use the SDK  
Control Center to search and install the package


or

connect via SSH to the SDK as you describe, then start SB2 and use  
zypper within SB2. Then sync from the control center.



Grüsse

Chris


Zitat von Matthias Barmeier barme...@barmeier.com:


Hi,

thanks a lot.

Your link and this one:  
http://flyingsheeponsailfish.blogspot.de/2013/10/alpha-2-migrating-landed.html
has working hints on what packages must be installed and how to  
make QtContacts work.


If someone else needs this here is my way of QtContacts enabling:

ssh to mer build engine:  ssh -p  -i  
/opt/SailfishOS/vmshare/ssh/private_keys/engine/root root@localhost

install a package with: zypper in qt5-qtdeclarative-pim-contacts

Select the Sailfish-Icon on the QtCreator toolbar.
Select Targets - SailfishOS-i486-x86 - manage - sync

On the emulator select settings and set a password for the ssh connection.
ssh to the emulator:   ssh -p 2223 nemo@localhost enter  
the password

Install the same package: sudo pkcon install qt5-qtdeclarative-pim-contacts

Restart both VMs. I don't know if this last step is neccessary,  
but after I have done it the error message si gone

and ContactModel is a vailid type.

Thanks again !


Ciao
   Matze

Am 21.12.2013 22:14, schrieb christopher.l...@thurweb.ch:

Hi Matthias

As the error says, QtContacts is not installed.

Try this article on tips on how to install to the SDK and Emulator

http://flyingsheeponsailfish.blogspot.ch/2013/11/deploying-additional-packages-to.html It focuses on Location and Positioning, but is the methods used are relevant for QtContacts as  
well.


The first thing is to establish what is already installed.

For the SDK, the easiest way for a newbie is via the SDK Control  
Center, which is available via the Sailfish icon on the left of  
the QtCreator screen.


On the Emulator, once connected via SSH, you can search for  
contacts modules with


pkcon search name contacts

I have several contacts modules 

Re: [SailfishDevel] Share via EMail - Bug or works as expected?

2013-12-22 Thread A. Wickert

AAAH, ok have not seen the ... so far ;).

Thank you :). But it would be great to select a default one :).

Regards,
Annika

On 22/12/13 21:37, Kimmo Lindholm wrote:

You can change account from the email,
click the ... (aka more button), then click From -field, it should show your 
accounts.
-kimmo
-


I have multiple mail clients set up and I tried to share some pictures via Share - 
Email. It creates a new email with the last account set up and i cannot select another 
one.

I expected that I can select an email account from which the mail would be sent 
in the Share dialog or set a default account from which emails should be shared 
but both is not possible. So I deleted the email account which I wanted to have 
for default and readded it so it becomes the last one added. And now SailfishOS 
sends from this account.

In future I wish to select a account on each sharing or set a default account in 
Settings - Accounts.

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


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] QtContacts available

2013-12-22 Thread David Greaves
Yes - all reasonably accurate.

But then there's the SDK control centre:

* Open Control Centre in SDK (the SailfishOS button on the left - don't ask why)
* Go to Targets
* Click manage by SailfishOS-armv7hl or SailfishOS-i486-x86
* type contact into the search box (no return)
* hmm, too many, add a space and qt5 to see the 'as you type' search (no,
really, pay attention, it took me ages to write that)
* now click install on the one you want or note it down to add to the 
BuildRequires

David
PS there's a bug where some packages appear twice. That's because it shows the
src package too. I'm sure it'll get fixed one day :)

PPS Terminoloy: the VM is the Build Engine. The SB2 things are called 'Targets'
as they allow the BE to build for a variety of targets. Note also the Toolchains
for a variety of architectures.

On 22/12/13 20:50, christopher.l...@thurweb.ch wrote:
 Hi Matze
 
 It is confusing at first, but once you get it, it is easy!
 
 
 I cover that in the chapter Installing By Hand to the SDK Build Engine via 
 the
 Control Center in:
 http://flyingsheeponsailfish.blogspot.ch/2013/11/deploying-additional-packages-to.html
 
 
 You are right there are 2 VMS, the obvious Emulator, and the headerless SDK
 Build Engine.
 
 The Emulator is the easy one, you SSH in, and use PkCon or zypper to install
 stuff directly to make them available to you apps.
 
 The SDK Build Engine is a little bit more tricky.
 
 Once you SSH in, zypper is available, but if you zypper at that level, all you
 are doing is adding stuff to the operating system.
 
 Within this VM is SB2, which is the Build Engine itself. Others on this 
 mailist
 are much better qualified than me to tell you more about it.
 
 So lets SSH in as user mersdk:
 
 ssh -p  -i ~/SailfishOS/vmshare/ssh/private_keys/engine/mersdk 
 mersdk@localhost
 
 Then we can enter into the build engine with:
 
 sb2 -t SailfishOS-i486-x86
 
 After that we can use zypper again, e.g. to list qt5 packages installed to the
 build engine:
 
 zypper se qt5 | grep i |
 
 If you install things within SB2, it is equivalent to installing via the SDK
 Control Center.
 
 You can back out of SB2 with:
 
 exit
 
 Then if you repeat:
 
 zypper se qt5 | grep i |
 
 You should get a much shorter list of installed qt5 packages.
 
 Have fun
 
 Chris
 
 
 
 
 
 
 
 Zitat von Matthias Barmeier barme...@barmeier.com:
 
 Hi Chris,

 please help me with my confusion :)

 My understanding was that the build engine is the VM located at port . I
 used zypper because I read this in the blog post.
 I thought that it does not make a difference if I install it via SDK Control
 center, zypper or pkcon. Is this right ?

 What do you mean with SDK VM ? The emulator ? I thought there are only two 
 VMs
 ? What doe you mean with SB2 ?

 There is much to learn for me. But with your hints I had a small success 
 after
 my old Harmattan application started to breathe :).

 Ciao
 Matze

 Am 22.12.2013 16:54, schrieb christopher.l...@thurweb.ch:
 Hi Matthias

 Here are a few more hints

 You connected to the SDK with a key, but to the Emulator without. A key can
 be used for both for passwordless access.

 //Connect to SDK
 ssh -p  -i ~/SailfishOS/vmshare/ssh/private_keys/engine/mersdk
 mersdk@localhost

 ssh -p  -i ~/SailfishOS/vmshare/ssh/private_keys/engine/root 
 root@localhost


 //Connect to Emulator
 ssh -p 2223 -i 
 ~/SailfishOS/vmshare/ssh/private_keys/SailfishOS_Emulator/nemo
 nemo@localhost

 ssh -p 2223 -i 
 ~/SailfishOS/vmshare/ssh/private_keys/SailfishOS_Emulator/root
 root@localhost

 The commands above work on OSX, and should work on Linux.


 In your mail below you used zypper to install to the SDK VM, but not to the
 build engine with the VM, so that won't really help you. You have made the
 package available to the Operating System rather than to the build engine.

 To install by hand to the build-engine, either use the SDK Control Center
 to search and install the package

 or

 connect via SSH to the SDK as you describe, then start SB2 and use zypper
 within SB2. Then sync from the control center.


 Grüsse

 Chris


 Zitat von Matthias Barmeier barme...@barmeier.com:

 Hi,

 thanks a lot.

 Your link and this one:
 http://flyingsheeponsailfish.blogspot.de/2013/10/alpha-2-migrating-landed.html
 has working hints on what packages must be installed and how to make
 QtContacts work.

 If someone else needs this here is my way of QtContacts enabling:

 ssh to mer build engine:  ssh -p  -i
 /opt/SailfishOS/vmshare/ssh/private_keys/engine/root root@localhost
 install a package with: zypper in qt5-qtdeclarative-pim-contacts

 Select the Sailfish-Icon on the QtCreator toolbar.
 Select Targets - SailfishOS-i486-x86 - manage - sync

 On the emulator select settings and set a password for the ssh connection.
 ssh to the emulator:   ssh -p 2223 nemo@localhost enter the 
 password
 Install the same package: sudo pkcon install qt5-qtdeclarative-pim-contacts

 Restart 

Re: [SailfishDevel] Jolla owner - day 1

2013-12-22 Thread Valerio Valerio

HI,


On 21/12/13 20:05, Kimmo Lindholm wrote:

I can confirm having both of those issues. But the weird thing is that
when a friend was showing me his Jolla, I'm quite sure he had Twitter
account showing up on the notification screen  stuff from Twitter on
it.

Twitter is working fine for me, my google account doesn't work though – I log
in and when looking again 5 minutes later I'm logged out again.

I have google account and twitter both working fine.
Exchange is not syncing all contacts is most blocking issue I have now.


did you recreate the account after latest exchange update ?(along with 
update1)
There was a bug related to servers that prefer Exchange version 14 that 
we don't support, causing not all contacts and events to be 
synchronized, but this is fixed now, we are not aware of such problems 
anymore.


Best regards,

Valério

___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Jolla owner - day 1

2013-12-22 Thread Kimmo Lindholm
did you recreate the account after latest exchange update ?(along with
update1)
There was a bug related to servers that prefer Exchange version 14 that we 
don't support, causing not all contacts 
and events to be synchronized, but this is fixed now, we are not aware of such 
problems anymore.

uh. you are aware... 
btw, thanks for this tip. I have been really frustrated as 2/3 of my exchange 
contacts were missing...
Just recreated Exchange account and now there is only 1/6 missing.
So not completely fixed yet. (Zendesk ticket #2475)

-kimmo
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Jolla owner - day 1

2013-12-22 Thread Valerio Valerio

On 22/12/13 21:33, Kimmo Lindholm wrote:

did you recreate the account after latest exchange update ?(along with
update1)
There was a bug related to servers that prefer Exchange version 14 that we 
don't support, causing not all contacts
and events to be synchronized, but this is fixed now, we are not aware of such 
problems anymore.

uh. you are aware...


I don't work at care :), it takes some time to reach me in case it's 
needed, my colleagues are very busy working there :)

btw, thanks for this tip. I have been really frustrated as 2/3 of my exchange 
contacts were missing...
Just recreated Exchange account and now there is only 1/6 missing.


do you have first and last name for those in the server side ? can be 
that they are under some category you don't expect in people app ?


Best regards,

Valério

So not completely fixed yet. (Zendesk ticket #2475)

-kimmo
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Jolla owner - day 1

2013-12-22 Thread Thomas Tanghus
On Sunday 22 December 2013 20:06 AL13N wrote:
 i would not like that, cause i have 78325 unread emails  ...

Clean up you inbox man ;)

  Notes:
  
  - When sharing a note by email it gets sent as an attached VNOTE with the
  body
  base64 encoded and with a vcf extension which I thought was reserved for
  vCards?. I for one don't have any applications that can handle that
  format.
 
 I believe that's called carddav ... something that people have been asking
 support for with caldav...

Cal- and CardDAV are WebDAV extensions for calendars and address books [*].

I just meant that VNOTE is not very widely used, and making it base64 encoded 
doesn't make it easier ;)
When sharing a Note it should just be plain text.

[*] http://tools.ietf.org/html/rfc6352

-- 
Med venlig hilsen / Best Regards

Thomas Tanghus
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Jolla owner - day 1

2013-12-22 Thread Kimmo Lindholm
I don't work at care :), it takes some time to reach me in case it's needed, 
my colleagues are very busy working there :)
Good that they are busy  :)

do you have first and last name for those in the server side ? can be that 
they are under some category you don't expect in people app ?

I expect to have them all in people app.
...now when the list is shorter I can see common thing in Outlook contacts 
side. strange thing.

I did group contact list by Company, I can see two sections with heading 
Company: (None) [Just guessing what it could be in English, it says Yritys: 
(ei mitään)]
Contacts in the first section are in people app, but contacts in second are 
not. Seems that all contacts in with some company name appears in the list. I 
test now to add company name to one of them and didn't help (or not yet sync'd).

All my mailing lists are also in this second section.
If I create new contact, it goes to this second section and does not appear 
into people app.

(our exchange version 12.1 - this they did ask from care)

-kimmo
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type

2013-12-22 Thread Sylvain B .



Hello,

I come back here because I am definitely not able to display a simple Map :(
What I have done is:
- Take the HelloWorld example generated by QtCreator.
- Replace the content of SecondPage.qml by the code below.

And I just get an empty page with the following error message in the logs:
QML Map: Error: Plugin does not support mapping.
Error message: The geoservices provider is not supported.
If I remove the Plugin, I get the same empty page but without the error message.
I have regenerated new token from here.com (I there a specific option to set?)

I don't know what I need to do to make it working, is it in the .pro file? :(
So I would really use either some tips or a working example.

Thank you in advance!



import QtQuick 2.0
import Sailfish.Silica 1.0
import QtLocation 5.0
import QtPositioning 5.1


Page {
Map {
anchors.fill: parent
plugin : Plugin {
name : nokia;
parameters: [
PluginParameter { name: app_id; value: xxx },
PluginParameter { name: token; value: xxx }
]
}
center: QtPositioning.coordinate(48.856047, 2.353907) // Paris
}
}

From: sailf...@jelica.se
Date: Thu, 19 Dec 2013 15:50:14 +0100
To: devel@lists.sailfishos.org
Subject: Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type

I have an example project showing a map and a location.Will try publishing it 
online later tonight/tomorrow so you guys don’t have to walk to Mordor and back 
like I did to get it working ;)
//bob

On 19 Dec 2013, at 14:45, Sthocs sth...@hotmail.com wrote:tw_bolek 
tw_bolek@... writes:


at Bolek, have you got it working?

Yes, it does work this way. Thank you *VERY MUCH* Chris for your help!   
For my needs now it's even better than
previously as on Harmattan I then had to use Qt.createQmlObject for what I 
needed to get.

Thanks a lot!

BTW. Do you perhaps now the URL of the site where one can register to get 
the API key to use Nokia Maps plugin?  If
I try to use it without any key it says to go to 
https://api.developer.nokia.com but that URL just
redirects to the main Nokia Developer page.  I can't find the right place 
to register...   

___
SailfishOS.org Devel mailing list




Hello,

I also wanted to use a Map in my application, and I am still struggling.
I already figured out that:
- We have to install QtLocation/QtPositioning in the SDK
- We have to manually install them in the emulator (I just found out about 
pkcon and zypper)
- We need to use QtPositioning.coordinate instead of Coordinate.

But now, if I try to display the simplest Map, I just get a blank screen. I 
have a message telling me that there is an error with the Plugin I use (does 
not support something - sorry I don't have the precise error message here)

I am sure it's something simple (some entry missing in the .pro?) but I 
could not find what yesterday, and I don't have so much time to search (It 
was really cool with Harmattan to have an example out of the box that we 
could just copy/paste and start customizing).

Would it be possible to have a simple example in the doc explaining all the 
required steps?
Or do you see what I am missing? For the plugin, I just put the same than 
for Harmattan:
plugin : Plugin {
   name : nokia;
   parameters: [
   PluginParameter { name: app_id; value: APPID 
},
   PluginParameter { name: token; value: TOKEN 
}
  ]
   }

Thanks for your help!

___
SailfishOS.org Devel mailing list

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

Re: [SailfishDevel] Jolla owner - day 1

2013-12-22 Thread Valerio Valerio

On 22/12/13 22:02, Kimmo Lindholm wrote:

I don't work at care :), it takes some time to reach me in case it's needed, my 
colleagues are very busy working there :)

Good that they are busy  :)


do you have first and last name for those in the server side ? can be that they 
are under some category you don't expect in people app ?

I expect to have them all in people app.
...now when the list is shorter I can see common thing in Outlook contacts 
side. strange thing.

I did group contact list by Company, I can see two sections with heading Company: 
(None) [Just guessing what it could be in English, it says Yritys: (ei mitään)]
Contacts in the first section are in people app, but contacts in second are 
not. Seems that all contacts in with some company name appears in the list. I 
test now to add company name to one of them and didn't help (or not yet sync'd).


Manual sync from email inbox brings any changes from server, company 
name should not matter unless all other details are empty(first and last 
name mainly), they are anyway synced but people app seems to not display 
them since they don't have a 'name', but please note that they need to 
be all in the same contacts folder, since we sync only one, the default 
one. If you find some patter please let me know I can investigate.


Best regards,

Valério


All my mailing lists are also in this second section.
If I create new contact, it goes to this second section and does not appear 
into people app.

(our exchange version 12.1 - this they did ask from care)

-kimmo
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type

2013-12-22 Thread Bob Jelica
Hi,

I’m not quite finished with the tutorial, but since you seem to be in dire need 
of instructions, here goes: https://github.com/b0bben/SailfishOS_MapTutorial
App works, docs are work-in-progress.

Holla at me if you’re having trouble with anything.

//bob


On 22 Dec 2013, at 23:11, Sylvain B. sth...@hotmail.com wrote:

 Hello,
 
 I come back here because I am definitely not able to display a simple Map :(
 What I have done is:
 - Take the HelloWorld example generated by QtCreator.
 - Replace the content of SecondPage.qml by the code below.
 
 And I just get an empty page with the following error message in the logs:
 QML Map: Error: Plugin does not support mapping.
 Error message: The geoservices provider is not supported.
 
 If I remove the Plugin, I get the same empty page but without the error 
 message.
 I have regenerated new token from here.com (I there a specific option to set?)
 
 I don't know what I need to do to make it working, is it in the .pro file? :(
 So I would really use either some tips or a working example.
 
 Thank you in advance!
 
 
 
 import QtQuick 2.0
 import Sailfish.Silica 1.0
 import QtLocation 5.0
 import QtPositioning 5.1
 
 Page {
 Map {
 anchors.fill: parent
 plugin : Plugin {
 name : nokia;
 parameters: [
 PluginParameter { name: app_id; value: xxx },
 PluginParameter { name: token; value: xxx }
 ]
 }
 center: QtPositioning.coordinate(48.856047, 2.353907) // Paris
 }
 }
 
 
 From: sailf...@jelica.se
 Date: Thu, 19 Dec 2013 15:50:14 +0100
 To: devel@lists.sailfishos.org
 Subject: Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type
 
 I have an example project showing a map and a location.
 Will try publishing it online later tonight/tomorrow so you guys don’t have 
 to walk to Mordor and back like I did to get it working ;)
 
 //bob
 
 
 On 19 Dec 2013, at 14:45, Sthocs sth...@hotmail.com wrote:
 
 tw_bolek tw_bolek@... writes:
 
 
 at Bolek, have you got it working?
 
 Yes, it does work this way. Thank you *VERY MUCH* Chris for your help!   
 For my needs now it's even better than
 previously as on Harmattan I then had to use Qt.createQmlObject for what I 
 needed to get.
 
 Thanks a lot!
 
 BTW. Do you perhaps now the URL of the site where one can register to get 
 the API key to use Nokia Maps plugin?  If
 I try to use it without any key it says to go to 
 https://api.developer.nokia.com but that URL just
 redirects to the main Nokia Developer page.  I can't find the right place 
 to register...   
 
 ___
 SailfishOS.org Devel mailing list
 
 
 
 
 Hello,
 
 I also wanted to use a Map in my application, and I am still struggling.
 I already figured out that:
 - We have to install QtLocation/QtPositioning in the SDK
 - We have to manually install them in the emulator (I just found out about 
 pkcon and zypper)
 - We need to use QtPositioning.coordinate instead of Coordinate.
 
 But now, if I try to display the simplest Map, I just get a blank screen. I 
 have a message telling me that there is an error with the Plugin I use (does 
 not support something - sorry I don't have the precise error message here)
 
 I am sure it's something simple (some entry missing in the .pro?) but I 
 could not find what yesterday, and I don't have so much time to search (It 
 was really cool with Harmattan to have an example out of the box that we 
 could just copy/paste and start customizing).
 
 Would it be possible to have a simple example in the doc explaining all the 
 required steps?
 Or do you see what I am missing? For the plugin, I just put the same than 
 for Harmattan:
 plugin : Plugin {
name : nokia;
parameters: [
PluginParameter { name: app_id; value: APPID 
 },
PluginParameter { name: token; value: TOKEN 
 }
   ]
}
 
 Thanks for your help!
 
 ___
 SailfishOS.org Devel mailing list
 
 
 ___ SailfishOS.org Devel mailing 
 list
 ___
 SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type

2013-12-22 Thread Bob Jelica
Chris: you’re very welcome to re-publish the tutorial on your page, since it’s 
becoming a defacto standard page for awesome tutorials/info about Sailfish.
I’ll clean the docs a bit more in the coming days, so it’s more noob-friendly.

//bob

On 20 Dec 2013, at 09:20, christopher.l...@thurweb.ch wrote:

 Hi Thomas
 
 Thanks for pointing me to that.
 
 So it a change by design, part of the migration to PackageKit that I hint at 
 my post.
 
 Chris
 
 
 Zitat von Thomas Tanghus tho...@tanghus.net:
 
 
 Note that the zypper package manager is only available in the build engine
 virtual machine and in the Scratchbox 2 environment, not in the emulator or 
 on
 a real device. The equivalent command in the emulator virtual machine or on a
 device is pkcon. These two commands have slightly different options and one
 may not support all the functionality the other has.
 
 https://sailfishos.org/develop-packaging-apps.html under Tips and Tricks
 
 --
 Med venlig hilsen / Best Regards
 
 Thomas Tanghus
 ___
 SailfishOS.org Devel mailing list
 
 
 
 
 
 ___
 SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Wishes for further updates

2013-12-22 Thread W. Dobbe
I can agree on some of the mentioned items:

1) Landscape mode in web browser
2) Skype integration (maybe only chat at first)
3) Copy and paste in email app
4) Let usb connected phone show up in Mac finder

regards,

Winfried


On 22 Dec 2013, at 18:55, Superpelican superpeli...@zoho.com wrote:

 Hello,
 
 I would like to add some things too,
 My top 5 (the 5 first things to add ;) ) would be:
 1. A file dialog for the app developers
 2. Text wrapping in the Sailfish Browser
 3. Copy and Paste functionality in the Sailfish Browser and Jolla E-mail app
 4. Landscape mode in the Sailfish Browser
 5. A (Jolla) Files app with more features (and as most important feature the 
 ability to directly open files with an app from the file manager)
 
 Native integration of SIP in the phone app  +1
 Battery life improvement +1
 
 On 12/22/2013 05:23 PM, A. Wickert wrote:
 Hi everybody,
 
 after some days of usage I got some wishes for further updates of SailfishOS.
 - Native integration of SIP in the phone app
 - Native integration of IPSec (Cert, PSK, Xauth)
 - Taskswitcher support for Android Apps
 - Battery life improvement (Powertop: The battery reports a discharge rate 
 of 982 mW and this is idle with only wlan active)
 
 I know this is a beta OS thus I write my thoughts to this list to help 
 improve the OS.
 
 Best Regards,
 Annika
 
 
 
 
 ___
 SailfishOS.org Devel mailing list
 
 
 ___
 SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] QtContacts available

2013-12-22 Thread Marko Koschak
Hi Matze

On So, 2013-12-22 at 21:50 +0100, christopher.l...@thurweb.ch wrote:
 The SDK Build Engine is a little bit more tricky.
 
 Once you SSH in, zypper is available, but if you zypper at that level,  
 all you are doing is adding stuff to the operating system.
 
 Within this VM is SB2, which is the Build Engine itself. Others on  
 this mailist are much better qualified than me to tell you more about  
 it.

If you are familiar with the term chroot (change-root) then you could
thing of SB2 (Scratchbox2) just as an chroot environment running armv7hl
emulated code (through qemu) where you actually build your source rpm
package. SB2 comes from the legacy of cross-compiling. The problem
with cross-compiling is that you need to tell your compiler not to use
the host (x86) tools and libs for compiling but the equivalent tools and
libs from the target (armv7hl) system. There are multiple approaches to
overcome that. One is to tell the compiler (via e.g. configure,
makefile,...) where to find that stuff or you don't tell the compiler
that (less work to create a makefile that cross-compiles too) but alter
your environment that the compiler thinks it is running on the target
(armv7hl) system itself. This is what SB2 actually does. That is very
useful if you want to compile just any normal rpm package (from the
linux userland stack) without adapting it to the target architecture.

(In detail SB2 is not a full chroot system, but it uses fakeroot which
enables SB2 to use host tools for speed up compilation instead of
running arm binaries in slow emulation mode. It's quite some time ago I
used SB2 but I hope I got it right and you got a rough idea... :)

Cheers,
Marko

___
SailfishOS.org Devel mailing list


[SailfishDevel] Forcing application to stay active and prevent screensaver.

2013-12-22 Thread Samuli Järvinen
Hi,

I know this is something that more often than not should not happen. However I 
could not be more annoyed when the screen goes blank and I’m watching for 
example my position on screen and waiting for a gps fix. So short question. Is 
there a way to prevent application from going background and to prevent the 
screen from blanking via qml?

Another question, is it possible to detect if a charger is plugged in from QML 
or does it need .js or cpp code?

Thanks in advance,

-Samuli
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type

2013-12-22 Thread Osmo Salomaa

23.12.2013 00:30, Bob Jelica wrote:

I’m not quite finished with the tutorial, but since you seem to be in
dire need of instructions, here goes:
https://github.com/b0bben/SailfishOS_MapTutorial

 App works, docs are work-in-progress.


Holla at me if you’re having trouble with anything.


Thanks, this works and helps a lot. I had some half-working code of my 
own, but it stopped working with the latest version of the SDK.


A couple notes and questions.

It seems setting a zoomLevel value normally doesn't work. The map always 
seems to start at the default zoom level. It does work however, if I set 
it under Component.onCompleted.


Is there a way to zoom in and out with the emulator? I keep trying to 
use the mouse scroll wheel.


Are the Nokia maps in Qt to stay or an unmaintained relic? I notice the 
tiles are not the same as at here.com, but some older version.


Is there any way to define tile sources in QML? The Qt Location Map 
Plugin API seems a gigantic OO monster for the simple usual case of 
wanting to specify a custom tile URL.


--
Osmo Salomaa otsal...@iki.fi
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type

2013-12-22 Thread Sylvain B .
Chris: I replied to you in private by error, so I am resaying here in the 
mailing-list: Thank you a lot, that's what I was missing!! It works now! I was 
sure that it was simple, but there is just not enough (not at all?) doc for Qt 
newbies like me =(

Bob: Wow, it may not be finished, but your doc is already great and describe 
exactly what I was missing! Thank you. And if you have time to complete your 
TODO section, that would be a super doc to put directly on SailfishOs.org! 
Thanks for sharing :)

-- 
Sylvain.

 Date: Sun, 22 Dec 2013 23:43:18 +0100
 From: christopher.l...@thurweb.ch
 To: devel@lists.sailfishos.org; sth...@hotmail.com
 Subject: Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type
 
 Hi Sylvain
 
 I've just got it working!
 
 I added
 
 qt5-plugin-geoservices-nokia
 
 to the PkgBR and Requires sections of the Yaml file, et voila,  
 Belle Paris sur L'emulatuer 
 
 Have fun
 
 Chris
 
 
 Zitat von Sylvain B. sth...@hotmail.com:
 
 
 
 
  Hello,
 
  I come back here because I am definitely not able to display a simple Map :(
  What I have done is:
  - Take the HelloWorld example generated by QtCreator.
  - Replace the content of SecondPage.qml by the code below.
 
  And I just get an empty page with the following error message in the logs:
  QML Map: Error: Plugin does not support mapping.
  Error message: The geoservices provider is not supported.
  If I remove the Plugin, I get the same empty page but without the  
  error message.
  I have regenerated new token from here.com (I there a specific  
  option to set?)
 
  I don't know what I need to do to make it working, is it in the .pro file? 
  :(
  So I would really use either some tips or a working example.
 
  Thank you in advance!
 
  
 
  import QtQuick 2.0
  import Sailfish.Silica 1.0
  import QtLocation 5.0
  import QtPositioning 5.1
 
 
  Page {
  Map {
  anchors.fill: parent
  plugin : Plugin {
  name : nokia;
  parameters: [
  PluginParameter { name: app_id; value: xxx },
  PluginParameter { name: token; value: xxx }
  ]
  }
  center: QtPositioning.coordinate(48.856047, 2.353907) // Paris
  }
  }
 
  From: sailf...@jelica.se
  Date: Thu, 19 Dec 2013 15:50:14 +0100
  To: devel@lists.sailfishos.org
  Subject: Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type
 
  I have an example project showing a map and a location.Will try  
  publishing it online later tonight/tomorrow so you guys don?t have  
  to walk to Mordor and back like I did to get it working ;)
  //bob
 
  On 19 Dec 2013, at 14:45, Sthocs sth...@hotmail.com wrote:tw_bolek  
  tw_bolek@... writes:
 
 
  at Bolek, have you got it working?
 
  Yes, it does work this way. Thank you *VERY MUCH* Chris for your help!
  For my needs now it's even better than
  previously as on Harmattan I then had to use Qt.createQmlObject for what I
  needed to get.
 
  Thanks a lot!
 
  BTW. Do you perhaps now the URL of the site where one can register to get
  the API key to use Nokia Maps plugin?  If
  I try to use it without any key it says to go to
  https://api.developer.nokia.com but that URL just
  redirects to the main Nokia Developer page.  I can't find the right place
  to register...
 
  ___
  SailfishOS.org Devel mailing list
 
 
 
 
  Hello,
 
  I also wanted to use a Map in my application, and I am still struggling.
  I already figured out that:
  - We have to install QtLocation/QtPositioning in the SDK
  - We have to manually install them in the emulator (I just found out about
  pkcon and zypper)
  - We need to use QtPositioning.coordinate instead of Coordinate.
 
  But now, if I try to display the simplest Map, I just get a blank screen. I
  have a message telling me that there is an error with the Plugin I use (does
  not support something - sorry I don't have the precise error message here)
 
  I am sure it's something simple (some entry missing in the .pro?) but I
  could not find what yesterday, and I don't have so much time to search (It
  was really cool with Harmattan to have an example out of the box that we
  could just copy/paste and start customizing).
 
  Would it be possible to have a simple example in the doc explaining all the
  required steps?
  Or do you see what I am missing? For the plugin, I just put the same than
  for Harmattan:
  plugin : Plugin {
 name : nokia;
 parameters: [
 PluginParameter { name: app_id; value: APPID
  },
 PluginParameter { name: token; value: TOKEN
  }
]
 }
 
  Thanks for your help!
 
  ___
  SailfishOS.org Devel mailing list
 
  ___
  SailfishOS.org Devel mailing list
 
 
 
 
  

Re: [SailfishDevel] Jolla owner - day 1

2013-12-22 Thread Thomas Tanghus
On Saturday 21 December 2013 20:56 Martin Kolman wrote:
 21.12.2013 20:44, Thomas Tanghus:
  - Twitter: Says »Creating account« then nothing. Doesn't ask for
  credentials.
  
  - XMPP: Silently fails on certificate error. Doesn't show up as an option
  in messages.
 
 I can confirm having both of those issues. But the weird thing is that
 when a friend
 was showing me his Jolla, I'm quite sure he had Twitter account showing
 up on the
 notification screen  stuff from Twitter on it.

Magically XMPP started working, but there still are some quirks.

- Under Notifications-Show presence details it lists the two different 
accounts as jabber and jabber instead of showing the XMPP address.

- Under [1] it says: Tapping on the word Type lets you switch between SMS 
and IM. I see no Type anywhere in the app?

[1] http://jolla.com/guide/#sec-10

-- 
Med venlig hilsen / Best Regards

Thomas Tanghus
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Jolla owner - day 1

2013-12-22 Thread Kimmo Lindholm


- Under [1] it says: Tapping on the word Type lets you switch between SMS
and IM. I see no Type anywhere in the app?

[1] http://jolla.com/guide/#sec-10


This is shown only when started to enter a message (and before you have entered 
anything) to a person whos account has both SMS and IM contact info.
I have seen this at least with google and SMS. It is in place of send.

-kimmo

___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Jolla owner - day 1

2013-12-22 Thread Thomas Tanghus
On Monday 23 December 2013 01:25 Thomas Tanghus wrote:
 On Saturday 21 December 2013 20:56 Martin Kolman wrote:
  21.12.2013 20:44, Thomas Tanghus:
   - Twitter: Says »Creating account« then nothing. Doesn't ask for
   credentials.
   
   - XMPP: Silently fails on certificate error. Doesn't show up as an
   option
   in messages.
  
  I can confirm having both of those issues. But the weird thing is that
  when a friend
  was showing me his Jolla, I'm quite sure he had Twitter account showing
  up on the
  notification screen  stuff from Twitter on it.
 
 Magically XMPP started working, but there still are some quirks.

Inspired by the belated success I decided to give Twitter account a go again, 
and now it works properly and opens browser for oAuth authorization \o/

It's nice for a quick overview, and their mobile web app works OK, but a 
native client that integrates with the OS/UX would be nicer.

-- 
Med venlig hilsen / Best Regards

Thomas Tanghus
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Jolla owner - day 1

2013-12-22 Thread Thomas Tanghus
On Monday 23 December 2013 00:44 Kimmo Lindholm wrote:
 - Under [1] it says: Tapping on the word Type lets you switch between
 SMS and IM. I see no Type anywhere in the app?
 
 [1] http://jolla.com/guide/#sec-10
 
 This is shown only when started to enter a message (and before you have
 entered anything) to a person whos account has both SMS and IM contact
 info. I have seen this at least with google and SMS. It is in place of
 send.

Mysteriously now it shows..? Even says Change type instead of just Type.

-- 
Med venlig hilsen / Best Regards

Thomas Tanghus
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] adding libraries to sailfish app.

2013-12-22 Thread Sadika Sumanapala
Thank you


On Sun, Dec 22, 2013 at 9:27 PM, Mike Sheldon m...@mikeasoft.com wrote:

 On Sun, 2013-12-22 at 19:11 +0530, Sadika Sumanapala wrote:
  thank you. is there a way to deploy compiled shared libraries with
  app?

 Just include them in your rpm and set the -rpath value for your binary
 at compilation time (alternatively you could be setting LD_LIBRARY_PATH
 at runtime from your .desktop's Exec line). You can see an example of
 this in the CuteSpotify Sailfish port which includes libspotify (of
 particular interest will be src/src.pro):

  https://github.com/Elleo/cutespotify/tree/sailfish

 It's not a perfect example as it doesn't work with the new out of tree
 builds that QtCreator does (I tend to just build from the command line,
 so haven't got around to updating it yet), but it should give a rough
 idea of what to do.

 Cheers,
  Mike.


 ___
 SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] QML only apps: sailfish-qml

2013-12-22 Thread Matt Austin
On 23 December 2013 00:03, Mike Sheldon m...@mikeasoft.com wrote:
 One thing to be aware of is that it doesn't work exactly like qmlscene
 where you can just specify an arbitrary qml file to display, instead you
 have to install your main qml file to
 /usr/share/yourapp/qml/yourapp.qml then run sailfish-qml yourapp.

Thanks Mike! Seems a little strange to be so tightly restricted to the
location of the qml file - makes maintaining a single codebase for
different platforms more difficult - especially with the
harbour-appname too. Maybe I can create a symlink to main.qml.

Cheers,

Matt.
___
SailfishOS.org Devel mailing list