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@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to