View Single Post
Posts: 1,048 | Thanked: 979 times | Joined on Mar 2008 @ SF Bay Area
#2
Originally Posted by molcaobarman View Post
Hi.

I would like to ask for some serious help from senior programmers
I've been digging info about connectivity API for Maemo, but I can't find solid examples and how stuff works. Yes, I'm quite new in C++, but I would like to write something like sync and backup program (it's my student work).

What I need to know:

- what API can I use for connection to N900 (USB - like Nokia suite, WiFi, BT) ?
I don't know enough about USB or BT connections, but if you're doing Wifi, then it will be like any other client/server or peer-to-peer utility: sockets.
Qt provides a tcp server convenience class and a tcp socket class to ease development.
There is a UDP class as well as a generic socket class.
Some examples of using these classes: Fortune Server Example, Fortune Client Example, Threaded Fortune Server Example, Blocking Fortune Client Example, Loopback Example, Torrent Example.

Shameless plug: You can also consider using mosquitto. It works on many platforms and I've recompiled and packaged it for Maemo.
My sig has the relevant links.

Originally Posted by molcaobarman View Post
- are there more choices (C, C++ API or even Qt, different libs?)
Maemo is a full fledged Linux. You can make programs using libc, boost, Qt, python, and even Java (using IcedTea).

Originally Posted by molcaobarman View Post
- what will be best ways for accessing various data in N900?
Data: SMS, mails, contacts, files ?
Qt Mobility has a bunch of classes to access mail, texts and contacts.

Examples: Sample Phonebook, Contacts API Usage

The reason I'm pushing Qt so much is that it is really quite easy to start with, and there are even python bindings for it. It is cross platform so if designed correctly, you can have one code base for both ends of your data connection.

Originally Posted by molcaobarman View Post
I'm begging for some detailed info (code examples, ways of data exchange, etc.)

Thanks
Hope this helps.
__________________
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.
 

The Following User Says Thank You to uvatbc For This Useful Post: