×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Aug 2010
    Posts
    347

    CSIPConnection and MSIPConnectionObserver

    Hello list,

    I need some clarification on how to implement the interface methods for MSIPConnectionObserver as part of the CSIPConnection class object.
    The documentation says this:
    The CSIPConnection class must implement the callback functions defined by MSIPConnectionObserver.

    Would it be correct to define a class derived from both CSIPConnection and MSIPConnectionObserver and then the define the pure virtual functions inherited from MSIPConnectionObserver?

    Please clarify

    TIA
    Vin

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,672

    Re: CSIPConnection and MSIPConnectionObserver

    I do not know where you have read that, but you can not really inherit from CSIPConnection. You should rather have a CSIPConnection* member variable. The other part is true, you have to inherit and implement MSIPConnectionObserver.
    Code:
    class CSomething ...
    class MSomethingObserver...
    
    class CMyClass : public CAnythingElse, public MSomethingObserver
    {
    ...
    private:
        CSomething *iSomething;
    
         void HandleSomethingEventL(...);
    }
    
    void CMyClass::ConstructL()
    {
        iSomething=CSomething::NewL(*this);
    this is the common usage pattern.

Similar Threads

  1. [moved] MSIPConnectionObserver call back methods are not called
    By krishnasrivatsa.n in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2010-06-23, 11:53
  2. CSIPConnection api
    By velund in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2010-01-03, 16:01
  3. Replies: 1
    Last Post: 2007-11-15, 07:27
  4. Problem with SendRequestL of CSIPConnection
    By satya3050 in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2006-07-24, 12:46
  5. CSIPConnection Problem
    By mgaia in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2004-07-20, 14:42

Posting Permissions

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