--- a/javacommons/gcfprotocols/http/src.s60/nativehttpsession.cpp Mon Jun 21 15:32:50 2010 +0300
+++ b/javacommons/gcfprotocols/http/src.s60/nativehttpsession.cpp Thu Jul 15 18:31:06 2010 +0300
@@ -49,10 +49,10 @@
TInt NativeHttpSession::NewL(JNIEnv& aJni, jobject aPeer,/* TJavaEventServer aServer,*/ TInt aType, TInt aAPNId, TInt * aErr, TInt * apnerr)
{
NativeHttpSession* self = new(ELeave) NativeHttpSession();
-
+
*aErr = self->ConstructL(aJni, aPeer /* aServer*/, aType, aAPNId, apnerr);
LOG1(ESOCKET,EInfo,"NativeHttpSession::NewL - aErr : %d",*aErr);
-
+
self->attachToVm(aJni,aPeer);
// Pop the cleanup of the object and create a handle:
return reinterpret_cast<TInt>(self); //selfCleanup.GetHandle();
@@ -119,17 +119,17 @@
void NativeHttpSession::doSubmitCallback(TInt aStatus,jobject &aPeer)
{
- LOG(ESOCKET,EInfo,"+doSubmitCallback1");
+ LOG(ESOCKET,EInfo,"+doSubmitCallback1");
jobject localPeerObject = mJniEnv->NewLocalRef(aPeer);
- if(localPeerObject)
+ if (localPeerObject)
{
- // java side peer object may be GC'ed when this call is being made.
- mJniEnv->CallVoidMethod(aPeer,iSubmitCallbackMethodID,aStatus);
+ // java side peer object may be GC'ed when this call is being made.
+ mJniEnv->CallVoidMethod(aPeer,iSubmitCallbackMethodID,aStatus);
}
else
{
- ELOG(ESOCKET,"NativeHttpSession::doSubmitCallback: Error!! java peer object not found ");
- }
+ ELOG(ESOCKET,"NativeHttpSession::doSubmitCallback: Error!! java peer object not found ");
+ }
LOG(ESOCKET,EInfo,"-doSubmitCallback1");
}
@@ -137,14 +137,14 @@
{
LOG(ESOCKET,EInfo,"+doReadCallback1");
jobject localPeerObject = mJniEnv->NewLocalRef(aPeer);
- if(localPeerObject)
+ if (localPeerObject)
{
- mJniEnv->CallVoidMethod(aPeer,iReadCallbackMethodID,aStatus);
+ mJniEnv->CallVoidMethod(aPeer,iReadCallbackMethodID,aStatus);
}
else
{
- ELOG(ESOCKET,"NativeHttpSession::doReadCallback: Error!! java peer object not found ");
- }
+ ELOG(ESOCKET,"NativeHttpSession::doReadCallback: Error!! java peer object not found ");
+ }
LOG(ESOCKET,EInfo,"-doReadCallback1");
}