View Single Post
Posts: 1,048 | Thanked: 979 times | Joined on Mar 2008 @ SF Bay Area
#1
Hi all!
As part of my experiments with telepathy and attempting to "auto-accept" an incoming phone call, I made a series of test applications.

I started with an Approver client app - which worked on desktop Linux, but did not on n900.
Then I used the observer client class and it worked well for desktop Linux as well as n900.

This example app:
1. Presents a minimal UI by which you can select what channel types to observe.
2. Observes the channels that you selected and dumps out info to (an unreadable) text box and the console.

Now, how do I find out more info about the channel and "auto-accept" an incoming call?

The key callback is
Code:
void Tp::AbstractClientObserver::observeChannels(
const MethodInvocationContextPtr<> & 	context,
const AccountPtr & 	account,
const ConnectionPtr & 	connection,
const QList< ChannelPtr > & 	channels,
const ChannelDispatchOperationPtr & 	dispatchOperation,
const QList< ChannelRequestPtr > & 	requestsSatisfied,
const QVariantMap & 	observerInfo	 
);
What switch do I need to flip to achieve "auto-accept" ?
Also, when I try to get more information from the account object, it claims to be "not ready".

Pointers / hints / whack with a clue stick welcome.
Thanks!

PS: Code attached for reference
Attached Files
File Type: zip 14.zip (4.5 KB, 141 views)
__________________
qgvdial: Google Voice client. All downloads
qgvtp: Phone integration for the n900 that dials out and sends texts using qgvdial.
mosquitto: message broker that implements the MQ Telemetry Transport protocol version 3.
qgvnotify: Google voice and contacts notifier for diablo and maemo.

If you want to thank me, click the Thanks button.
If you'd like to thank my applications, vote to move them to extras.