×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2003
    Location
    Turin, Italy
    Posts
    75

    How Can I Use TSmsUserDataSettings in Symbian 6.1?

    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/bc23...7?OpenDocument
    Number: FAQ-0876
    Platform: Symbian OS v6.0, Symbian OS v6.1, Symbian OS v7.0, Symbian OS 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

  2. #2
    Registered User
    Join Date
    Mar 2003
    Location
    Turin, Italy
    Posts
    75
    One solution is to get gsmuset.h and gsmuset.inl from Crystal SDK... But why nokia has cutted off some of symbian header from the sdk ? Maybe there is an alternative solution ?
    The The gsmuset.inl only contains these simple (but neccessary) lines...

    inline TSmsDataCodingScheme::TSmsAlphabet TSmsUserDataSettings::Alphabet()
    const
    {
    return iAlphabet;
    }

    inline void
    TSmsUserDataSettings::SetAlphabet(TSmsDataCodingScheme::TSmsAlphabet
    aAlphabet)
    {
    iAlphabet=aAlphabet;
    }

    inline TBool TSmsUserDataSettings::TextCompressed() const
    {
    return iFlags&ESmsFlagCompressed;
    }

    inline void TSmsUserDataSettings::SetTextCompressed(TBool aCompressed)
    {
    iFlags=aCompressed? iFlags|ESmsFlagCompressed:
    iFlags&(~ESmsFlagCompressed);
    }

  3. #3
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    57
    i bought this book (symbian os c++ for mobile phones) and im trying the sample code for gdpsms but this call:

    iSender.iSocket.Ioctl(KIoctlSendSmsMessage, iSender.iStatus, &iSender.iOctlResult, KSolSmsProv);

    returns -5 = KErrNotSupported

    im trying this on a 3650 phone.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×