Groups > Symbian > Symbian EPOC connect > Re: IAP selection hiding not working!




IAP selection hiding not working!

IAP selection hiding not working!
Mon, 16 Jan 2006 14:01:42 +080
hi,
There are a lot of posts regarding IAP selection hiding & after reading
quite a few - I implemented it for my HTTP Session.  Now instead of
hiding it - I get the IAP selection pop-up twice. Once when i do
iConnection.Start(prefs, iStatus) - on application start
and then later on when I do the actually HTTP Transaction Submit()
Please help ! - below is the code.

ClientEngine::ConstrucL()
{
     RSocketServ iSocketServ;
     RConnection iConnection;
     User::LeaveIfError(iSocketServ.Connect());

    // Set the connection preferences
     TCommDbConnPref prefs;
     prefs.SetIapId(1);
     prefs.SetDialogPreference(ECommDbDialogPrefDoNotPrompt);

    //Start RConnection with the given preferences
      TRequestStatus& iStatus = 0;
     User::LeaveIfError(iConnection.Open(iSocketServ));
      iConnection.Start( prefs, iStatus );    // IAP Selection POPS UP!!!
        // open the HTTP Session
   TRAPD(err, iSession.OpenL());

} //end of ConstructL()


 then somewhere later in the code when I do the actuall
transaction.Submit() - the POP UP Dialog comes up again.


Post Reply
Re: IAP selection hiding not working!
Mon, 16 Jan 2006 14:04:03 +080
And when I set the properties for the HTTP session, My APP Crashes!

// Set properties for session
  RStringPool strP = iSession.StringPool();
  RHTTPConnectionInfo connInfo = iSession.ConnectionInfo();
  connInfo.SetPropertyL ( strP.StringF(HTTP::EHttpSocketServ,
RHTTPSession::GetTable() ), THTTPHdrVal (iSocketServ.Handle()) );
  TInt connPtr = REINTERPRET_CAST(TInt, &iConnection);
  connInfo.SetPropertyL ( strP.StringF(HTTP::EHttpSocketConnection,
RHTTPSession::GetTable() ), THTTPHdrVal (connPtr) );

.
-Sirius.

"Sirius Black" <sourabh.sharma@gmail.com> wrote in message
news:lqLX0YnGGHA.2804@extapps30...
> hi,
> There are a lot of posts regarding IAP selection hiding & after
reading
> quite a few - I implemented it for my HTTP Session.  Now instead of
> hiding it - I get the IAP selection pop-up twice. Once when i do
> iConnection.Start(prefs, iStatus) - on application start
> and then later on when I do the actually HTTP Transaction Submit()
> Please help ! - below is the code.
>
> ClientEngine::ConstrucL()
> {
>      RSocketServ iSocketServ;
>      RConnection iConnection;
>      User::LeaveIfError(iSocketServ.Connect());
>
>     // Set the connection preferences
>      TCommDbConnPref prefs;
>      prefs.SetIapId(1);
>      prefs.SetDialogPreference(ECommDbDialogPrefDoNotPrompt);
>
>     //Start RConnection with the given preferences
>       TRequestStatus& iStatus = 0;
>      User::LeaveIfError(iConnection.Open(iSocketServ));
>       iConnection.Start( prefs, iStatus );    // IAP Selection POPS UP!!!
>         // open the HTTP Session
>    TRAPD(err, iSession.OpenL());
>
> } //end of ConstructL()
>
>
>  then somewhere later in the code when I do the actuall
> transaction.Submit() - the POP UP Dialog comes up again.
>
>
>

Post Reply
about | contact