Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Maemo: Developers

Mission Control: Any Dbus interface method to list all the available ChannelRequest objects?

 

 

Maemo developers RSS feed   Index | Next | Previous | View Threaded


scifi1947 at gmail

Jul 27, 2010, 11:19 PM

Post #1 of 4 (239 views)
Permalink
Mission Control: Any Dbus interface method to list all the available ChannelRequest objects?

Hi,

I noticed that mission control creates a unique object path for each channel
request in the format "/com/nokia/MissionControl/requests/r1". I need this path
to call methods in the interface
"org.freedesktop.Telepathy.Client.Interface.Requests".

Is there any way to list the object paths of all the channel requests in
progress? With a dbus method call may be?

Another related question. Is the specification for
"com.nokia.Account.Interface.ChannelRequests" available anywhere or is it closed?

Thanks,
Sudheer

_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


mardy at users

Jul 27, 2010, 11:32 PM

Post #2 of 4 (233 views)
Permalink
Re: Mission Control: Any Dbus interface method to list all the available ChannelRequest objects? [In reply to]

On 07/28/2010 09:19 AM, Sudheer K wrote:
> Is there any way to list the object paths of all the channel requests in
> progress? With a dbus method call may be?

IIRC, there isn't.

> Another related question. Is the specification for
> "com.nokia.Account.Interface.ChannelRequests" available anywhere or is it closed?

It's open:
http://git.collabora.co.uk/?p=telepathy-mission-control.git;a=blob;f=xml/Account_Interface_ChannelRequests.xml

Ciao,
Alberto

--
http://blog.mardy.it <- geek in un lingua international!
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


scifi1947 at gmail

Jul 28, 2010, 12:01 AM

Post #3 of 4 (232 views)
Permalink
Re: Mission Control: Any Dbus interface method to list all the available ChannelRequest objects? [In reply to]

Alberto Mardegan <mardy <at> users.sourceforge.net> writes:

>
> On 07/28/2010 09:19 AM, Sudheer K wrote:
> > Is there any way to list the object paths of all the channel requests in
> > progress? With a dbus method call may be?
>
> IIRC, there isn't.
>
> > Another related question. Is the specification for
> > "com.nokia.Account.Interface.ChannelRequests" available anywhere or is it
closed?
>
> It's open:
>
http://git.collabora.co.uk/?p=telepathy-mission-control.git;a=blob;f=xml/Account_Interface_ChannelRequests.xml
>
> Ciao,
> Alberto
>


Hi Alberto,

Thanks for the reply. I was planning to use this channel request object path to
cancel a call initiated by mission control. Even the Nokia ChannelRequests
interface requires a channel request path.

If this is not possible, may be I can throw an error from the
CreateChannel/EnsureChannel methods of my Connection Requests class. This error
should make mission control remove the channel by itself. What do you think?

And I don't know how to raise a Telepathy error from Qt. Any guidance?

~Sudheer

_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


scifi1947 at gmail

Jul 28, 2010, 10:22 PM

Post #4 of 4 (219 views)
Permalink
Re: Mission Control: Any Dbus interface method to list all the available ChannelRequest objects? [In reply to]

Sudheer K <scifi1947 <at> gmail.com> writes:

> If this is not possible, may be I can throw an error from the
> CreateChannel/EnsureChannel methods of my Connection Requests class. This error
> should make mission control remove the channel by itself. What do you think?
>
> And I don't know how to raise a Telepathy error from Qt. Any guidance?
>
> ~Sudheer
>


Answering the question myself. It is possible to raise telepathy error from Qt
Telepathy interface implementations using QDBusContext::sendErrorReply() method.
I tested by replying with errors like
org.freedesktop.Telepathy.Error.NotAvailable from CreateChannel method, and
mission control closed the channel. The only issue is MC is displaying its own
interpretation of the error message, not what I sent from Connection object. But
thats not a big issue.

~Sudheer

_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers

Maemo developers RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.