DenisL
2nd November 2007, 17:25
I'm trying to start another app on the greenphone.
I'm finding it hard to find any information, anywhere, on ServiceRequest, apart from the QT docs, maybe because it is so simple?
As a simple test, I tried the following modification to the example app:
/*
* Constructs a Example which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*/
Example::Example( QWidget *parent, Qt::WFlags f )
: ExampleBase( parent, f )
{
connect(quit, SIGNAL(clicked()), this, SLOT(goodBye()));
QtopiaServiceRequest req("Alert", "soundAlarm()");
req.send();
}
Unfortunately, nothing happened, or at least nothing appeared to happen.
I have a lot to learn about QT, but this looks to me like it should send a ServiceRequest to the alert service, asking it to sound an alarm. What could possibly go wrong ... ?
Is the problem the actual code making the Servicerequest, or the position of the code within the QT application?
Any help here would be gratefully received :)
Thanks,
Denis
I'm finding it hard to find any information, anywhere, on ServiceRequest, apart from the QT docs, maybe because it is so simple?
As a simple test, I tried the following modification to the example app:
/*
* Constructs a Example which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*/
Example::Example( QWidget *parent, Qt::WFlags f )
: ExampleBase( parent, f )
{
connect(quit, SIGNAL(clicked()), this, SLOT(goodBye()));
QtopiaServiceRequest req("Alert", "soundAlarm()");
req.send();
}
Unfortunately, nothing happened, or at least nothing appeared to happen.
I have a lot to learn about QT, but this looks to me like it should send a ServiceRequest to the alert service, asking it to sound an alarm. What could possibly go wrong ... ?
Is the problem the actual code making the Servicerequest, or the position of the code within the QT application?
Any help here would be gratefully received :)
Thanks,
Denis