Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User psonali's Avatar
    Join Date
    Nov 2008
    Posts
    25
    Hi all,

    I am using RConnectionMonitor GetIntAttribute method to retrieve the bearer type of currently active connection.

    But it is always returning KErrNotFound (-1) status.

    Here's my code:

    Code:
    void CMyClass::EventL(const CConnMonEventBase& aConnEvent)
    	{
    	switch( aConnEvent.EventType() )
    		{
    		
    		case EConnMonDeleteConnection:
    		   {
    		   iConnMonitor.GetIntAttribute(aConnEvent.ConnectionId(),0,KBearer, iBearer, iStatus);
    		   SetActive();
    		   
    		   break;
                       }
                    }
             }

    I need to do it inside EConnMonDeleteConnection case as I want this info only for the currently active connection.

    Anybody knows what to do?
    Am I missing here something?

    Thank you in advance.

  2. #2
    Nokia Developer Champion savaj's Avatar
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034
    Have you connected to RConnectionMonitor using RConnectionMonitor::Connect() ???

  3. #3
    Registered User psonali's Avatar
    Join Date
    Nov 2008
    Posts
    25
    Hi savaj,

    ofcourse I have done ConnectL...

    I am able to get all other data related to the event.
    Only GetIntAttribute is not working.

    Can u guess what might be wrong here?
    Thanks.

  4. #4
    Nokia Developer Champion savaj's Avatar
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034
    SDK says "EConnMonDeleteConnection event is triggered when an existing connection is deleted. It also means that its sub-connections are deleted.". So it might be possible that aConnEvent.ConnectionId() return wrong ConnectionId and cause problem.

    I might be wrong, so once confirm it.

  5. #5
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    In Symbian environment you have to distinguish between hooks and notifications. Basically you do not find hooks in the public SDK-s, and notifications happen after a certain thing has happened. So when you get notification about that your connection is deleted, it is already deleted, that is why you can not find it any more.

  6. #6
    Registered User psonali's Avatar
    Join Date
    Nov 2008
    Posts
    25
    Thanks.. that was indeed the problem. Solved it now.

    Thanks all for your help.

Similar Threads

  1. Problem installing s60 theme studio | plz help!!
    By thunderush in forum Mobile Design and User Experience
    Replies: 13
    Last Post: 2008-11-12, 16:18
  2. Nokia Multimedia Converter 2.0 request serial number
    By iacos in forum General Development Questions
    Replies: 38
    Last Post: 2008-08-05, 09:50
  3. NOKIA EXPERTS, pls, pls, pls help! (missing .lib)
    By 4twilight in forum Symbian C++
    Replies: 15
    Last Post: 2006-08-28, 13:57
  4. pls help
    By viraj_turakhia in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2004-12-13, 08:33
  5. pls help me pls..... (everybody read this).....need it urgently
    By Never_Die in forum Bluetooth Technology
    Replies: 0
    Last Post: 2004-11-30, 07:52

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved