torstai 5. marraskuuta 2009

Dialer UI & First Actual Phone Calls

Hello again guys!
Winter is slowly setting in, with the first sporadic snowflakes falling as I write this.
Telephony now works! We have the entire software stack ready to use, and with the dialer UI I have now seen for myself.

The architecture allows for very simple usage of system routines, for example:
1) Dialer UI has SLOT "Dial", Which is Called When the User Clicks on "Call"

void Dialer::Dial( QString aNumber )
{
gsmService->dial( aNumber );
}


2) The "dial"-Function Sends a Message via TCP/IP to the Service Process in Question
This is where the service-specific stuff lives - the "service adaptation" layer. For each service there is an actual service process, and a client service class, such as "GsmService", that the client application can use. Simple, no?

3) The Service Process uses the System's Actual Service
In many cases this involves doing platform-specific things, such as using a service via D-Bus, as is the case in GsmService. If we want to port the system onto another platform, such as Symbian OS, we only have to rewrite this part

4) Yes, it can be this simple :-P

Anyhoo, I can now make phone calls directly from the "Dialer UI", using ofonod running on the system and a phone attached via USB. Very encouraging! Hopefully I'll be able to post pictures of this later on...

Ei kommentteja:

Lähetä kommentti