×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    13

    Disabling Dialog Prompt for "Connect" in Open C SIOCSIFSTART ioctl call

    Hi All,
    Can somebody guide me as to how I can disable the recurring connect dialog when a call to SIOCSIFSTART is placed in an Open C app. Im calling this API before establishing a connection.

    ioctl(sockfd,SIOCSIFNAME, &ifr);
    ioctl(sockfd, SIOCIFSTART , &ifr);

    Some of my observations:
    1. SIOCSIFACTIVESTART doesnt seem to be working as when I create the next socket, the previous one might have got closed. Dont know what happens to the connection here?
    2. Tried changing the iDialogPref attribute of the OpenConnectionPrefTableInRankOrderLC Table. It works, and I dont get a dialog - but the connection cannot be made.

    Can somebody let me know what have I missed?? How do I make the connection automatically without user intervention.

    Any pointers will be of great help.
    TIA,
    Ather

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,752

    Re: Disabling Dialog Prompt for "Connect" in Open C SIOCSIFSTART ioctl call

    If you mean the "Create WLAN connection in offline mode?" question, it is not supposed to be disabled. Consider keeping a socket open all the time and/or check if the new "setdefaultif" function (OpenC 1.6) makes a difference - technically it might be a wrapper around an RConnection, and that would keep the interface switched on.

  3. #3
    Registered User
    Join Date
    May 2009
    Posts
    13

    Re: Disabling Dialog Prompt for "Connect" in Open C SIOCSIFSTART ioctl call

    I ended up doing it the long way, changing the preferences etc. as I wasnt aware of the setdefaultif api call.
    This is what i wanted, infact. Simplifies things for me.
    Thanks,
    Ather

  4. #4
    Registered User
    Join Date
    May 2009
    Posts
    13

    Arrow Re: Disabling Dialog Prompt for "Connect" in Open C SIOCSIFSTART ioctl call

    Hi,
    Looks like it doesnt work yet.

    I have tried doing it this way. I expect that, whenever I do a SIOCIFSTART or SIOCIFACTIVESTART, the "Select Connection" dialog should not to appear.

    Code:
    CCommDbOverrideSettings* iCommsDB =  CCommDbOverrideSettings::NewL(CCommDbOverrideSettings::EParamListFull,EDatabaseTypeIAP);
    	CleanupStack::PushL(iCommsDB);
    	
    	CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref pref;
    	pref.iRanking = 1;
    	pref.iDirection = ECommDbConnectionDirectionOutgoing;
    	pref.iDialogPref = ECommDbDialogPrefDoNotPrompt;
    	pref.iBearer.iBearerSet=KCommDbBearerCSD;
    	pref.iBearer.iIapId=iap.iIap;
    
    	iCommsDB->SetConnectionPreferenceOverride(pref);	
    	CleanupStack::PopAndDestroy();

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,752

    Re: Disabling Dialog Prompt for "Connect" in Open C SIOCSIFSTART ioctl call

    It works for me, but I use it for WLAN. CSD might make a difference, I do not know.

  6. #6
    Registered User
    Join Date
    May 2009
    Posts
    13

    Re: Disabling Dialog Prompt for "Connect" in Open C SIOCSIFSTART ioctl call

    Thanks for the reply wizard_hu_.
    It turns out that, On fewer phones on the RDA, it works, where as on few others it doesnt..
    How do I debug this thing?

Similar Threads

  1. Failed to open the second call
    By suiying0792 in forum Symbian
    Replies: 4
    Last Post: 2009-05-12, 07:25
  2. Replies: 0
    Last Post: 2008-10-22, 15:50
  3. How do I open phone app dialog in 3rd edition?
    By oobly in forum Symbian User Interface
    Replies: 17
    Last Post: 2008-10-09, 14:23
  4. Open call log view
    By martinpeterzon in forum Symbian
    Replies: 5
    Last Post: 2008-08-09, 19:30
  5. Key events while a dialog is open
    By ShabbirPatel in forum Symbian User Interface
    Replies: 0
    Last Post: 2006-05-23, 16:35

Posting Permissions

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