Hi,
I'm currently creating a Series 60 application on Nokia 6600. I'm trying to create a new message type. However, due to vast complexity, I do not wish to make use of the MTM architecture to achieve what I want. My problem mainly lies in how to listen to message events.
I'm really not sure if the following scenario will be possible, so I will need asistance from you guys who are a lot more experienced. Here it goes:
I have an Oracle server that stores all the necessary parts of a message. When the Oracle server receives a new message, I will like to send a specially formatted SMS to the recipient via a GPRS modem. After receiving that specially formatted SMS, the client will connect to my Oracle server and download the message via GPRS. The main problem is that it is unclear to me in terms of how to write the MMsvSessionObserver-derive
d class. What I want from the observer class is that if the SMS that is received is specially formatted (such as a constant prefix in the body etc), I want to handle the event, and at the same time, prevent the native handler from displaying the "1 New SMS Received" message on the screen. I will like to display my own message on the screen (eg. "1 New CMM Received)". However, if the SMS is determined by my observer to be a normal SMS (meaning not the specially formatted type that my observer is expecting), I want to pass control to the native handler.
The previous method doesn't seem to be possible, as I don't think it is possible to prevent the native handler from intercepting. One more way I have thought of is to send a signal to the recipient's phone, but not using the SMS module. However, I have absolutely no idea how to do this using a GPRS modem and without using SMS.
Does anyone have a solution for my problem?
PS: It will be helpful if anyone can explain to me how does the messaging server determine the type of MTM associated with the newly received message. Is there some sort of header associated with SMS/MMS? Maybe I can create my own header? But how?
Sorry for asking so much as one go, as I'm a complete beginner to Symbian C++. Any help will really be appreciated.
Start Free Trial