×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jan 2004
    Posts
    11

    the class " MsSessionObserver "

    hi,
    does somebody know the C/C++ class " MsSessionObserver " of Serial 60 platform? and where can I get it?


    thx.

  2. #2
    Nokia Developer Expert
    Join Date
    Apr 2003
    Location
    Finland
    Posts
    425
    Hello,

    The purpose of <Any>Observer classes is to define an interface.

    You should implement the class which has this interface and place implementation there. Later e.g. symbian code is able to call your method. In other word you can not found a class of MsSessionObserver, instead you must implement it yourself...great ?

    An example:
    [symbian code]:
    class MHelloWorldObserver
    {
    virtual void ShowhelloMessage(TDesC aMess) = 0;
    };

    [your header]
    class YourApp
    :public MHelloWoldObserver
    {
    void ShowhelloMessage(TDesC aMess);
    };

    [your cpp]
    YourApp::Foo ()
    {
    something->SetObserver(this);
    // Now symbian code is able to call back to your code
    }

    Maybe there is better instructions available somewhere, but take a peek to some examples and that will be clear for you.

    Br V

  3. #3
    Nokia Developer Expert
    Join Date
    Apr 2003
    Location
    Finland
    Posts
    425
    BTW: is your question about 'MMsvSessionObserver'. Definition of that interface can be found from 'every' SDK. [msvapi.h/msgs.lib]

    BR V

Posting Permissions

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