×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    May 2006
    Posts
    86

    SetConnectionPreferenceOverride problem setting connection

    hi
    i'm trying to use CCommDbOverrideSettings class
    for setting/overwrite the Connection preferences.
    but i'm missing something on the start connection process .
    as the parameter pass to the start function of the RConnection class is of type TConnPref
    but the parameter of the SetConnectionPreferenceOverride is of type CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref
    so .. how can i start the connection with my settings
    my code :
    CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref pref;
    pref.iRanking = 1;
    pref.iDirection = ECommDbConnectionDirectionOutgoing;
    pref.iDialogPref = ECommDbDialogPrefDoNotPrompt;
    pref.iBearer.iBearerSet=KCommDbBearerCSD;
    pref.iBearer.iIapId=iapid;

    iCommDb->SetConnectionPreferenceOverride(pref);
    RSocketServ sockserv;
    RConnection conn;
    sockserv.Connect();
    conn.Open(sockserv);
    conn.Start(pref);<- error

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

    Re: SetConnectionPreferenceOverride problem setting connection

    Quote Originally Posted by nimco View Post
    conn.Start(pref);<- error
    Have you considered checking the returned error code?

  3. #3
    Regular Contributor
    Join Date
    May 2006
    Posts
    86

    Re: SetConnectionPreferenceOverride problem setting connection

    it's not a runtime error .. it's compilation error
    error: no matching function for call to `RConnection::Start(CCommsDbConnectionPrefTableView::
    TCommDbIapConnectionPref&)'
    the error is because the conn.Start expect parameter of type TConnPref .. but my pref parameter is from type
    CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref ..
    so the question is how after i setup the Connection preferences
    i pass it to connection startup
    my symbian is 9.2

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,684

    Re: SetConnectionPreferenceOverride problem setting connection

    Yes, TCommDbConnPref and TCommDbIapConnectionPref are two different things for two different purposes. What is wrong with TCommDbConnPref by the way?

Similar Threads

  1. Strange Problem with Bluetooth Connection
    By bigbadwolf in forum Symbian Networking & Messaging (Closed)
    Replies: 8
    Last Post: 2006-12-06, 09:51
  2. Problem with connection timeout
    By maniac_2k in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2006-09-21, 20:12
  3. Problem MMC+USB Connection
    By Fede81 in forum General Development Questions
    Replies: 3
    Last Post: 2006-07-19, 15:21
  4. nokia 3200 connection lost problem
    By ghanshyam joshi in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2004-06-15, 00:16
  5. socket connection problem
    By bhatti81 in forum Mobile Java General
    Replies: 2
    Last Post: 2003-10-08, 14:43

Posting Permissions

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