Re: [SailfishDevel] QtWebKit QWebView

2014-01-24 Thread Hannes Rantzsch
Hey,

no, unfortunately I didn't get it working. Had no time for further
fiddling around yet.
Yeah, XMLHttpRequest looked nice to me too first. But the page I want
does not offer anything for that. Just plain html.

I would still like to get QWebFrame working, as Aaron suggested. Maybe
now someone has an idea what kind of configurations are needed to get it in?

BR,
Hannes


On 01/24/2014 06:43 PM, Samuli Silvius wrote:
> Hi,
>
> Di you get this working? I would need very same functionality (getting
> webpage content, as dom to traversal). It feel strange to me that WebView
> (SilicaWebView) does not provide access to webpage content? Maybe it has
> reasons, I don't know as very new to mobile apps..
> I have also tried to find solution by using "XMLHttpRequest" javascript
> way, but did not yet find any. I would like to keep my code purely on
> QML/Javascript but in this case it's ok to have also C++ solution. I have
> done a lot C++ but so many years back and certainly not mobile platforms.
>
> -Samuli
>
>
> 2014/1/21 Hannes Rantzsch 
>
>> Hi Aaron, thank you for your answer.
>>
>> I tried QWebFrame, but it says incomplete type. Apparently QWebFrame is
>> only forward declared in QWebElement (which is available, but on it's
>> own of no use I guess). Or am I simply missing some #include?
>>
>> Any ideas?
>>
>>
>> Thanks,
>>
>> Hannes
>>
>>
>> On 01/21/2014 02:37 AM, Aaron McCarthy wrote:
>>> Hi,
>>>
>>> On Mon, 20 Jan 2014 23:27:02 Hannes Rantzsch wrote:
 I'm trying to get the content of a website. Since SilicaWebView doesn't
 seem to provide this, I want to write a C++ class that does. QWebView
 from QtWebKit should be able to do this (this example is actually
 perfect:

>> http://qt-project.org/doc/qt-5/qtwebkitexamples-webkitwidgets-domtraversal-e
 xample.html).

 However, I cannot include QWebView (no such file [...]) and including
 "QtWebKit/QtWebKit" does not give me the QWebView either.

 I did add "QT += webkit" to my .pro-file.

 What am I missing?
>>> QWebPage is in WebKit widgets.
>>>
>>> QT += webkitwidgets
>>>
>>> But widgets aren't supported.
>>>
>>> If you don't need to display the web page, you can use QWebFrame and
>> follow
>>> the example you linked to from there.
>>>
>>> Cheers,
>>>
>> ___
>> SailfishOS.org Devel mailing list
>>
>
>
> ___
> SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] LED Flash functionality on a real Jolla

2014-01-24 Thread christopher . lamb

Hi Mohammed

That's it!

It's strange how things go. Yesterday was one of those days: At work I  
spent hours fighting with a recalcitrant Confluence installation that  
refused to start properly, and the evening I could not get the GST  
code working properly.


Today was very different. I discovered that that the mysql database  
under the Confluence was corrupt. Once i found that, it more or less  
fixed itself. Then this evening I see from your mail that my GST code  
only needs one character changed to work!


Zitat von "Mohammed Hassan" :


g_object_set (G_OBJECT(src), "mode", 2, NULL);

That should do it for you. Works fine here after changing mode to 2
instead of 1


It really does work, both in developer mode from Qt Creator, and once  
installed from the Jolla itself. Thank you! I will integrate this  
functionality into my core app this weekend.



Zitat von "Mohammed Hassan" :


Those errors are harmless. Just ignore them. They decrease with each
update as we implement more camera features ;)



Looking forward to the update(s)! 8)

chris


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] QtWebKit QWebView

2014-01-24 Thread Samuli Silvius
Hi,

Di you get this working? I would need very same functionality (getting
webpage content, as dom to traversal). It feel strange to me that WebView
(SilicaWebView) does not provide access to webpage content? Maybe it has
reasons, I don't know as very new to mobile apps..
I have also tried to find solution by using "XMLHttpRequest" javascript
way, but did not yet find any. I would like to keep my code purely on
QML/Javascript but in this case it's ok to have also C++ solution. I have
done a lot C++ but so many years back and certainly not mobile platforms.

-Samuli


2014/1/21 Hannes Rantzsch 

> Hi Aaron, thank you for your answer.
>
> I tried QWebFrame, but it says incomplete type. Apparently QWebFrame is
> only forward declared in QWebElement (which is available, but on it's
> own of no use I guess). Or am I simply missing some #include?
>
> Any ideas?
>
>
> Thanks,
>
> Hannes
>
>
> On 01/21/2014 02:37 AM, Aaron McCarthy wrote:
> > Hi,
> >
> > On Mon, 20 Jan 2014 23:27:02 Hannes Rantzsch wrote:
> >> I'm trying to get the content of a website. Since SilicaWebView doesn't
> >> seem to provide this, I want to write a C++ class that does. QWebView
> >> from QtWebKit should be able to do this (this example is actually
> >> perfect:
> >>
> http://qt-project.org/doc/qt-5/qtwebkitexamples-webkitwidgets-domtraversal-e
> >> xample.html).
> >>
> >> However, I cannot include QWebView (no such file [...]) and including
> >> "QtWebKit/QtWebKit" does not give me the QWebView either.
> >>
> >> I did add "QT += webkit" to my .pro-file.
> >>
> >> What am I missing?
> > QWebPage is in WebKit widgets.
> >
> > QT += webkitwidgets
> >
> > But widgets aren't supported.
> >
> > If you don't need to display the web page, you can use QWebFrame and
> follow
> > the example you linked to from there.
> >
> > Cheers,
> >
>
> ___
> SailfishOS.org Devel mailing list
>
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] LED Flash functionality on a real Jolla

2014-01-24 Thread Mohammed Hassan
On Thu, 23 Jan 2014 22:10:19 +0100
 wrote:

> Hi Mohammed
> 
> I have been trying to implement your suggestion, but am still having  
> problems ...
> 
> The Nokia code quoted in my original post did not have an explicit  
> sink (and on the N9 worked without one). But following the tutorial
> in the link below I have added one to the my code.

I tried to use fakesink instead of droideglsink and it worked so you
can use that too.

> http://docs.gstreamer.com/display/GstSDK/Basic+tutorial+2%3A+GStreamer+concepts
> 
> The code compiles and runs, but the LED does not respond. On startup
> I get errors like:
> 
> "
> (GSTTorch:14916): GLib-GObject-CRITICAL **: Object class  
> GstDroidCamSrc doesn't implement property 'scene-mode' from
> interface 'GstPhotography'
> 
> (GSTTorch:14916): GLib-GObject-CRITICAL **: Object class  
> GstDroidCamSrc doesn't implement property 'noise-reduction' from  
> interface 'GstPhotography'
> ...more of the same ...

Those errors are harmless. Just ignore them. They decrease with each
update as we implement more camera features ;)

[...]
> GstTorch::GstTorch(QObject *parent) :
>  QObject(parent), pipeline(0), src(0), sink(0), mStatus(false)
> {
>  //gst-launch-0.10 droidcamsrc video-torch=1 viewfinder-mode=1 !
> fakesink gst_init(NULL, NULL);
>  src = gst_element_factory_make("droidcamsrc", "src");
>  sink = gst_element_factory_make("droideglsink", "sink");
>  pipeline = gst_pipeline_new ("test-pipeline");
>  if (!src || !sink || !pipeline) {
>  return;
>  }
>  /* Build the pipeline */
>  gst_bin_add_many (GST_BIN (pipeline), src, sink, NULL);
>  if (gst_element_link (src, sink) != TRUE) {
>  qDebug() << "Elements could not be linked!";
>  gst_object_unref (pipeline);
>  return;
>  }
>  g_object_set(G_OBJECT(src), "video-torch", 1, NULL);
>  g_object_set(G_OBJECT(src), "mode", 1, NULL);
  ^^^
g_object_set (G_OBJECT(src), "mode", 2, NULL);

That should do it for you. Works fine here after changing mode to 2
instead of 1

1 is image mode and you can't have the torch on with that
2 is for videos and thus torch will light happily.

Cheers,
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] OpenGL Under Selica QML

2014-01-24 Thread Wim de Vries

Hi David,
The example that I use is also QQuickItem derived.
Indeed I'll take your method for placement and resizing.
Also necessary for landscape/portrait changes.
thanks.

r
wim




On 01/23/2014 10:38 AM, David Greaves wrote:

On 23/01/14 09:28, Wim de Vries wrote:

On 01/22/2014 05:34 PM, David Greaves wrote:

Fantastic - I just verified that it works here too.

How are you getting the GL into the QML scene?

 From one of the GL examples (Squircle in c++):
glViewport() determining the position (not yet QML) in Page.

main c++:
qmlRegisterType("OpenGLUnderQML", 1, 0, "Squircle");

QML:
import OpenGLUnderQML 1.0
Squircle {
 SequentialAnimation on t {
 NumberAnimation { to: 1; duration: 2500; easing.type: Easing.InQuad }
 NumberAnimation { to: 0; duration: 2500; easing.type: Easing.OutQuad }
 loops: Animation.Infinite
 running: true
 }

Yep - I started there too :)


I created a GLItem which allows property connections and sizing so I know where
to draw in the window. I then inherit from this item and render into the
viewport it sets up.

I will have a look at to.

This is how I map the viewport to the Item location:

class GLItem : public QQuickItem, protected QOpenGLFunctions
...
void GLItem::paint()
{
 if (!m_program) {
 m_program = new QOpenGLShaderProgram();
 connect(window()->openglContext(), SIGNAL(aboutToBeDestroyed()),
 this, SLOT(cleanup()), Qt::DirectConnection);
 initializeOpenGLFunctions();
 this->prep(); // Do any one-off setup that needs the glcontext to be
setup (eg the shader loading)
 }
 QRectF vpr = mapRectToScene(QRectF(0.0,0.0,width(),height()));
 glViewport( vpr.x(), (window()->height() -( vpr.y() + vpr.height())),
 vpr.width(), vpr.height());

...

David




___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] How to attach a page to initial page?

2014-01-24 Thread Samuli Silvius
But that activates every time when going to that page. You need a separate
global boolean to set if wanted that to be done only one time. We have the
same problem on Unofficialtogether app which has the timer solution.
https://github.com/mike7b4/unofficialtogether/blob/master/qml/pages/WebView.qml


-Samuli


2014/1/20 Tobi D. 

> Thank you Andrey! That's exactly what I was looking for.
>
> Best regards,
> Tobi
>
> > Date: Mon, 20 Jan 2014 13:38:45 +0600
> > From: coderusin...@gmail.com
> > To: devel@lists.sailfishos.org
> > Subject: Re: [SailfishDevel] How to attach a page to initial page?
>
> >
> > onStatusChanged: {
> > if (status === PageStatus.Active && pageStack.depth === 1) {
> > pageStack.pushAttached("SourcesPage.qml", {});
> > }
> > }
> >
> > On 20.01.2014 13:37, Kalle Vahlman wrote:
> > > 2014/1/17 Tobi D. :
> > >> Hi there,
> > >>
> > >> How can I push an attached page to my initial page on the pageStack?
> > >>
> > >> I'd like to have a behavior similar to the Jolla Store app. There you
> can
> > >> push to the next page to get categories when you are on initial page.
> > >>
> > >> I tried several thing to achieve this, but didn't get it work. Doing
> an
> > >> "pushAttached" to pageStack in "onComplete" of my initial page ends
> in error
> > >> message that you can not push a page on stack while another push is
> running.
> > > onComplete is from Component (as opposed from Item), so it doesn't
> > > indicate the page is "ready".
> > >
> > > A better place for pushing would probably be onStatusChanged(), when
> > > the status changes to Active.
> > >
> >
> > ___
> > SailfishOS.org Devel mailing list
>
> ___
> SailfishOS.org Devel mailing list
>
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Background Services

2014-01-24 Thread Luca Donaggio
AFAIU this is a planned feature, but is not possible yet.


On Fri, Jan 24, 2014 at 2:29 PM, سلمان الجمّاز (Salman Aljammaz) <
salman.aljam...@gmail.com> wrote:

> Come to mention it, is there a way to register custom services for Jolla's
> built-in Accounts/Sync facilities?
>
> Apologies if this is documented somewhere, I couldn't find it!
>
>
>
> 2014/1/24 سلمان الجمّاز (Salman Aljammaz) 
>
> Hi all
>>
>> Is there (yet) a preferred way to create background services? Stuff like
>> sync/dbus services etc.
>>
>> At the moment I'm manually using systemd and I'm wondering if there's a
>> higher level interface for long lived processes.
>>
>> Salman
>>
>>
> ___
> SailfishOS.org Devel mailing list
>



-- 
Luca Donaggio
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Background Services

2014-01-24 Thread Andrey Kozhevnikov

it should be similar with nemomobile ones

On 24.01.2014 19:29, ? ??? (Salman Aljammaz) wrote:
Come to mention it, is there a way to register custom services for 
Jolla's built-in Accounts/Sync facilities?


Apologies if this is documented somewhere, I couldn't find it!



2014/1/24 ? ??? (Salman Aljammaz) >


Hi all

Is there (yet) a preferred way to create background services?
Stuff like sync/dbus services etc.

At the moment I'm manually using systemd and I'm wondering if
there's a higher level interface for long lived processes.

Salman



___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

[SailfishDevel] Background Services

2014-01-24 Thread Salman Aljammaz
Hi all

Is there (yet) a preferred way to create background services? Stuff like
sync/dbus services etc.

At the moment I'm manually using systemd and I'm wondering if there's a
higher level interface for long lived processes.

Salman
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Background Services

2014-01-24 Thread Salman Aljammaz
Come to mention it, is there a way to register custom services for Jolla's
built-in Accounts/Sync facilities?

Apologies if this is documented somewhere, I couldn't find it!



2014/1/24 سلمان الجمّاز (Salman Aljammaz) 

> Hi all
>
> Is there (yet) a preferred way to create background services? Stuff like
> sync/dbus services etc.
>
> At the moment I'm manually using systemd and I'm wondering if there's a
> higher level interface for long lived processes.
>
> Salman
>
>
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Received SMS?

2014-01-24 Thread Andrey Kozhevnikov

i dont think it can be allowed to harbour

On 24.01.2014 19:35, Seppo Tiainen wrote:

Hi,

What might be the Harbour policy for an app accessing received SMSs?

However, I have not yet found any QML tool to enable that.

On N9, I did that with Harmattan's Mobility and ListView + 
MessageModel. Does anyone know how to do that in Sailfish?


Regards,
Seppo


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

[SailfishDevel] Received SMS?

2014-01-24 Thread Seppo Tiainen
Hi,

What might be the Harbour policy for an app accessing received SMSs?

However, I have not yet found any QML tool to enable that.

On N9, I did that with Harmattan's Mobility and ListView + MessageModel.
Does anyone know how to do that in Sailfish?

Regards,
Seppo
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Segmentation fault: No such file or directory.

2014-01-24 Thread Sylvain B .
Thank you Aaron,
I did more tests today in the subway with a limited connectivity and it was 
actually hard to reproduce (1 out of 15-20 attempts), so as the stacktrace 
suggest, it has something to do with the caching operation.Now that I have a 
better 3G connectivity, I can reproduce it more often but not as often than 
yesterday in Wifi. It never occurs at the first attempt, I'd say I have to try 
between 2 and 10 times, it depends, while in Wifi it was almost always crashing 
at the first attempt.
When not panning the Map, it occurs less frequently, but I am not sure how 
frequently. I will make more tests this WE. But If I simply 
push/pop/push/pop/... the Map without panning it, it never crashes.
While we're talking about Maps, I have some questions:You have entered this bug 
in your tracking system because I am using the Nokia plugin? Or do you work on 
the general Map API? The underlying question are: where to report Map bugs? And 
why the only available docs are on developer.ubuntu.com?
Regards,Sylvain.

> From: aaron.mccar...@jolla.com
> To: devel@lists.sailfishos.org
> Date: Fri, 24 Jan 2014 11:21:02 +1000
> Subject: Re: [SailfishDevel] Segmentation fault: No such file or directory.
> 
> Hi,
> 
> On Thu, 23 Jan 2014 21:17:41 Sylvain B. wrote:
> > I am facing some segfaults so I've decided to install GDB and the debug
> > packages of some Qt5 libs on my phone (Hope that won't cause issues with
> > future Sailfish updates?). But this does not help me, since they apparently
> > aren't coming from my code.
> > 
> > For the first, I have a back button on a Map. If I start a flick and I press
> > the back button while the Map is still flicking, it crashes. But it also
> > crashes sometimes when the flick has finished so I can't simply test that
> > flick is finished before doing the pagestack.pop():
> > 
> > Program received signal SIGSEGV, Segmentation fault.
> > QString::lastIndexOf (this=0x4, ch=..., from=-1, cs=Qt::CaseSensitive) at
> > tools/qstring.cpp:2727 2727tools/qstring.cpp: No such file or
> > directory.
> > (gdb) backtrace
> > #0  QString::lastIndexOf (this=0x4, ch=..., from=-1, cs=Qt::CaseSensitive)
> > at tools/qstring.cpp:2727 #1  0x40089bf0 in QGeoTileCache::~QGeoTileCache
> > (this=0x400a750c, __in_chrg=) at maps/qgeotilecache.cpp:202
> > #2  0x4008a06c in QGeoTileCache::~QGeoTileCache (this=0x2ad71fd0,
> > __in_chrg=) at maps/qgeotilecache.cpp:208 #3  0x4007ad98 in
> > QGeoTiledMappingManagerEnginePrivate::~QGeoTiledMappingManagerEnginePrivate
> > (this=0x2a2b6b10, __in_chrg=) at
> > maps/qgeotiledmappingmanagerengine.cpp:328
> > #4  0x4007aefc in
> > QGeoTiledMappingManagerEngine::~QGeoTiledMappingManagerEngine
> > (this=0x2a4d5a68, __in_chrg=) at
> > maps/qgeotiledmappingmanagerengine.cpp:68 #5  0x47ca43b0 in
> > QGeoTiledMappingManagerEngineNokia::~QGeoTiledMappingManagerEngineNokia
> > (this=0x2a4d5a68, __in_chrg=) at
> > qgeotiledmappingmanagerengine_nokia.cpp:139
> > #6  0x47ca43fc in
> > QGeoTiledMappingManagerEngineNokia::~QGeoTiledMappingManagerEngineNokia
> > (this=0x2a4d5a68, __in_chrg=) at
> > qgeotiledmappingmanagerengine_nokia.cpp:139
> > #7  0x4007a210 in ~QGeoMappingManagerPrivate (this=0x2a84d6c0,
> > __in_chrg=) at maps/qgeomappingmanager.cpp:190
> > #8  QGeoMappingManager::~QGeoMappingManager (this=0x2a51a010,
> > __in_chrg=) at maps/qgeomappingmanager.cpp:96 #9  0x4007a244
> > in QGeoMappingManager::~QGeoMappingManager (this=0x2a51a010,
> > __in_chrg=) at maps/qgeomappingmanager.cpp:97
> 
> Thank you for reporting this. I have created a bug for it in our bug tracking 
> system. Does the crash happen every time when popping the pagestack while the 
> Map is still panning? How frequently does it happen when not panning the Map?
> 
> Cheers,
> 
> -- 
> Aaron McCarthy
> ___
> SailfishOS.org Devel mailing list
  ___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] How to automatically start a daemon with systemd

2014-01-24 Thread Luca Donaggio
Thank you Kimmo,

maybe user daemons are not supported? I'll try to run it as a system daemon
and see if it works.

By the way, can someone explain what does /usr/bin/invoker do? When is it
needed / useful?



On Fri, Jan 24, 2014 at 12:35 PM, Kimmo Lindholm wrote:

>  I have put my .service file under systemd/system –folder and used
> systemctl enable (not -user) and it starts successfully at boot.
>
> I start it without invoker (ExecStart directly calls the executable)
>
>
>
> (But I need root access for the daemon)
>
>
>
>
>
>
>
> *From:* devel-boun...@lists.sailfishos.org [mailto:
> devel-boun...@lists.sailfishos.org] *On Behalf Of *Luca Donaggio
> *Sent:* 24. tammikuuta 2014 11:42
> *To:* Sailfish OS Developers
> *Subject:* [SailfishDevel] How to automatically start a daemon with
> systemd
>
>
>
> Hi all,
>
> I'v written a small personal (not looking for harbour approval here) C++
> app which periodically connects to a web service and displays some
> information into a notification via DBus.
>
> This is the .service file which I've deployed in /etc/systemd/user:
>
>
> [Unit]
> Description=My own daemon
> Requires=dbus.service
>
> [Service]
> Type=simple
> ExecStart=/usr/bin/invoker --type=generic /usr/bin/myowndaemon
>
> [Install]
> WantedBy=multi-user.target
>
>   after the usual:
>
> systemctl-user daemon-reload
>
> systemctl-user start myowndaemon.service
>
> it correctly starts.
>
> Now if I issue a:
>
> systemctl-user enable myowndaemon.service
>
> and I reboot my Jolla, it doesn't automatically start.
>
> This is my first attempt with systemd, I tried googling around but I
> didn't find anything helpful.
>
> Wht am I missing?
>
> Thanks a lot,
>
>
> --
> Luca Donaggio
>
> ___
> SailfishOS.org Devel mailing list
>



-- 
Luca Donaggio
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] How to automatically start a daemon with systemd

2014-01-24 Thread Kimmo Lindholm
I have put my .service file under systemd/system –folder and used systemctl 
enable (not -user) and it starts successfully at boot.
I start it without invoker (ExecStart directly calls the executable)

(But I need root access for the daemon)



From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Luca Donaggio
Sent: 24. tammikuuta 2014 11:42
To: Sailfish OS Developers
Subject: [SailfishDevel] How to automatically start a daemon with systemd

Hi all,
I'v written a small personal (not looking for harbour approval here) C++ app 
which periodically connects to a web service and displays some information into 
a notification via DBus.
This is the .service file which I've deployed in /etc/systemd/user:

[Unit]
Description=My own daemon
Requires=dbus.service

[Service]
Type=simple
ExecStart=/usr/bin/invoker --type=generic /usr/bin/myowndaemon

[Install]
WantedBy=multi-user.target

after the usual:
systemctl-user daemon-reload
systemctl-user start myowndaemon.service
it correctly starts.
Now if I issue a:
systemctl-user enable myowndaemon.service
and I reboot my Jolla, it doesn't automatically start.
This is my first attempt with systemd, I tried googling around but I didn't 
find anything helpful.
Wht am I missing?
Thanks a lot,

--
Luca Donaggio
___
SailfishOS.org Devel mailing list

[SailfishDevel] How to automatically start a daemon with systemd

2014-01-24 Thread Luca Donaggio
Hi all,

I'v written a small personal (not looking for harbour approval here) C++
app which periodically connects to a web service and displays some
information into a notification via DBus.

This is the .service file which I've deployed in /etc/systemd/user:

[Unit]
Description=My own daemon
Requires=dbus.service

[Service]
Type=simple
ExecStart=/usr/bin/invoker --type=generic /usr/bin/myowndaemon

[Install]
WantedBy=multi-user.target

after the usual:

systemctl-user daemon-reload
systemctl-user start myowndaemon.service

it correctly starts.

Now if I issue a:

systemctl-user enable myowndaemon.service

and I reboot my Jolla, it doesn't automatically start.

This is my first attempt with systemd, I tried googling around but I didn't
find anything helpful.
Wht am I missing?

Thanks a lot,

-- 
Luca Donaggio
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Built-in alarm

2014-01-24 Thread Andrey Kozhevnikov

CONFIG += link_pkgconfig
PKGCONFIG += timed

On 24.01.2014 15:13, Nemehlo . wrote:
Thanks, that brings a light into the darkness, however I'm getting 
errors during compilation now:

*error: undefined reference to `Maemo::Timed::Event::~Event()'*
I get this error for pretty much all Maemo objects.

In cpp file I added #include
and CONFIG+=timed in pro file

Have I missed something?



From: jonni.raini...@jolla.com
To: devel@lists.sailfishos.org
Date: Thu, 23 Jan 2014 11:53:41 +
Subject: Re: [SailfishDevel] Built-in alarm

Yes, you can use same way what timedclient-qt5 uses (like running 
"timedclient-qt5 -L" will show you all alarms and reminders):


https://github.com/nemomobile/timed/blob/master/tools/timedclient/timedclient.cpp



*From:* devel-boun...@lists.sailfishos.org 
[devel-boun...@lists.sailfishos.org] on behalf of Nemehlo . 
[michal.mud...@hotmail.com]

*Sent:* Thursday, January 23, 2014 1:40 PM
*To:* devel@lists.sailfishos.org
*Subject:* [SailfishDevel] Built-in alarm

Hello Sailors,

just a quick one: is there a way how to check if the alarm clock is 
set and at what time? from within either C++ or QML code?


thanks a lot

___ SailfishOS.org Devel 
mailing list



___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Built-in alarm

2014-01-24 Thread Nemehlo .
Thanks, that brings a light into the darkness, however I'm getting errors 
during compilation now:error: undefined reference to 
`Maemo::Timed::Event::~Event()'I get this error for pretty much all Maemo 
objects.
In cpp file I added #include and CONFIG += timed in pro file
Have I missed something?

From: jonni.raini...@jolla.com
To: devel@lists.sailfishos.org
Date: Thu, 23 Jan 2014 11:53:41 +
Subject: Re: [SailfishDevel] Built-in alarm







Yes, you can use same way what timedclient-qt5 uses (like running 
"timedclient-qt5 -L" will show you all alarms and reminders):



https://github.com/nemomobile/timed/blob/master/tools/timedclient/timedclient.cpp







From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] 
on behalf of Nemehlo . [michal.mud...@hotmail.com]

Sent: Thursday, January 23, 2014 1:40 PM

To: devel@lists.sailfishos.org

Subject: [SailfishDevel] Built-in alarm






Hello Sailors,



just a quick one: is there a way how to check if the alarm clock is set and at 
what time? from within either C++ or QML code?



thanks a lot







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