i am trying to open a socket connection without showing the connection prompt for my application.
the application should be compatible with series 60 sdk 1.2 as well as sdk 2.1 phones.
setting the database entry for the display prompt obviously is not very useful, since i don't want to change global settings for the phone, but only for my application. i tried that one first and did not even find a possibility where the user could reset the behaviour if he wanted.
now i am working with override settings and CIntConnectionInitiator. code looks like this:
if(iIntConn == NULL) {
iIntConn = CIntConnectionInitiator::NewL();
}
TUint32 iapId;
if(iIntConn->GetActiveIap(iapId) != KErrNone) {
CCommDbOverrideSettings* shit =
CCommDbOverrideSettings::
NewL(CCommDbOverrideSettings::EParamListPartial,
EDatabaseTypeIAP);
CleanupStack::PushL(shit);
CCommsDbConnectionPrefTableView::
TCommDbIapConnectionPref prefs;
prefs.iRanking = 1;
prefs.iDirection = ECommDbConnectionDirectionOutgoing;
prefs.iDialogPref = ECommDbDialogPrefDoNotPrompt;
shit->SetConnectionPreferenceOverride(prefs);
TRequestStatus stat(KRequestPending);
iIntConn->ConnectL(prefs, stat);
CleanupStack::PopAndDestroy(shit);
}
// create Socket Connection engine
iEngine->ConnectL(KServer, iCred);
i can see that a GPRS data connection is being opened, but then the program panics.
so how the f**k do i open socket connections after i initialised the outgoing internet connection?
i did not find any methods or parameters to be passed to the socket server...
the documentation is completely useless there.



