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

How Can I Use TSmsUserDataSettings in Symbian 6.1?

1 replies · 993 views · Started 07 August 2003

I'm using Series60 sdk 1.2 (Symbian 6.1), how can I call this method ?
CSmsMessage->SetUserDataSettingsL( TSmsUserDataSettings )

I've included Gsmumsg.h and put gsmu.lib in the .mmp project file, but the
TSmsUserDataSettings is still unknown, why ?

This is from symbian 7 documentation...

Class TSmsUserDataSettings

Supported from 6.0

Description
Operations on TP-UD User Data.

Defined in TSmsUserDataSettings:
Alphabet(), ESmsFlagCompressed, ESmsFlagConcatenated,
ESmsFlagConcatenatedUsing16BitReference ExternalizeL(), InternalizeL(), SetAlphabet(), SetTextCompressed(), SetTextConcatenated(), TSmsUserDataSettings(), TSmsUserDataSettingsFlags, TextCompressed(), TextConcatenated(),
iAlphabet, iFlags

The class is supported from version 6, so why this class (and many others)
in 6.1 seem to doesn't exist? What's wrong?
You can find an example of the TSmsUserDataSettings use, following the link pointed from symbian.

Taken from symbian site...
http://www3.symbian.com/faq.nsf/bc23c8b8641ac65f802569fc0051e783/26311122aa6efa3080256d2c002c1667?OpenDocument
Number: FAQ-0876
Platform: Symbian OS v6.0, Symbian OS v6.1, Symbian OS v7.0, SymbianOS v7.0s
....

The book Symbian OS C++ for Mobile Phones
(http://www.symbian.com/books/scmp/scmp-info.html) provides a good example of how to do this for a peer-to-peer battleships game, with the "moves" being transmitted seemlessly over SMS. Chapter 20 ("GDP Implementations"😉 does exactly this

[quote="Il.Socio"]The class is supported from version 6, so why this class (and many others) in 6.1 seem to doesn't exist? What's wrong?[/quote]I don't know the rationale behind this particular class, but in general Symbian OS licensees are not required to take and use the OS relese as Symbian provides it in its entirety, and they can also add stuff that Symbian doesn't provide.

So, anything documented in the Series 60 SDK is safe to use, if you target a Series 60 phone.

Anything else may not be there, or being undocumented might still be there (and might even work), but is not guaranteed to do so (in that release or future releases).