Read-only archive of the All About Symbian forum (2001–2013) · About this archive

SMS Messages using OPL?

4 replies · 1,807 views · Started 07 May 2003

Is it possible to read SMS messages from the Inbox of a device (not necessarely S60) using OPL. This will probably need OPXs. If it is possible which OPX should I use? At the moment I am interested to make it work on the 9200 Emulator and maybe later, in the S60, when OPX are ready on that device too!

Another general question. Is OPL confined like J2ME in the way that filesystems and messages etc are not accessible? Thanx 😃

(1) Can OPL Read the Inbox

Probably. You might need to get someone to do an OPX, but I don;t see any reason why not. Given time to understand the filig system of "Message" you might be able to do it raw, but an OPX would be a lot easier. Look up the C++ SDK and see if there is somethign about this. If there is, time to bride a C++'er!

(2) Is OPL "Sandboxed" like J2ME Midlets?

No.

You have full access to the file system, the tty serial ports, the sound chip, etc. So don't do anything silly like...

[code:1]
TRAP DELETE "C:System\Data\Contacts.cdb"
[/code:1]

...(even though the above won't work because the file is always open). BUt OPL is a full language, and it's not restriceted in any way. Anything OPL can;t do (eg access Bluetooth) is where the Langauge Extensions (OPX's) can be written. It may be posible to get something like...

[code:1]
SendToBluetoothDevice:(DeviceName$,SendString$)
[/code:1]

...in the future (assuming a Bluetooth OPX is written).

But basically anythign is possible.

You're right to be excited - everyone else will catch up in time. One more example. A Psion OPL application (called EpocSYNC) allowed you to back up selected files or folders on your Psion to an FTP server you specified.

All it needs is for that ftp.opx to be compiled for Symbian 6.0/6.1 and you could do the same on your Communicator or Series 60 device.

How's THAT for functionality?

Excellent! I used the C++ bit quite some time with no success. I converted my project from C++ to OPL. I have to say that if i got 2% of my app working under C++ in 2 months.....now I am 10% ready with OPL in just 2 days. 😃