javacommons/gcfprotocols/http/src.s60/nativetransaction.cpp
branchRCL_3
changeset 60 6c158198356e
parent 59 e5618cc85d74
child 65 ae942d28ec0e
equal deleted inserted replaced
59:e5618cc85d74 60:6c158198356e
    18 
    18 
    19 #include <e32def.h>
    19 #include <e32def.h>
    20 #include <centralrepository.h>
    20 #include <centralrepository.h>
    21 
    21 
    22 #ifdef RD_JAVA_S60_RELEASE_10_1_ONWARDS
    22 #ifdef RD_JAVA_S60_RELEASE_10_1_ONWARDS
    23 #include <CUserAgent.h>
    23 #include <cuseragent.h>
    24 #else
    24 #else
    25 #include <cuseragent.h>
    25 #include <cuseragent.h>
    26 #endif
    26 #endif
    27 
    27 
    28 #include "com_nokia_mj_impl_http_HttpConnectionNative.h"
    28 #include "com_nokia_mj_impl_http_HttpConnectionNative.h"
   218     return header;
   218     return header;
   219 }
   219 }
   220 
   220 
   221 jstring GetUserAgentL(JNIEnv *aJni, jboolean aMidpRuntime)
   221 jstring GetUserAgentL(JNIEnv *aJni, jboolean aMidpRuntime)
   222 {
   222 {
   223 
       
   224     jstring header = NULL;
   223     jstring header = NULL;
   225 
   224 
   226     if (aMidpRuntime == false)
   225     if (aMidpRuntime == false)
   227     {
   226     {
   228         CUserAgent* userAgent = CUserAgent::NewL();
   227         CUserAgent* userAgent = CUserAgent::NewL();
   289             }
   288             }
   290         }
   289         }
   291 
   290 
   292         CleanupStack::PopAndDestroy(repository);
   291         CleanupStack::PopAndDestroy(repository);
   293     }
   292     }
   294 
   293     LOG(ESOCKET,EInfo,"GetUserAgentL() -");
   295     return header;
   294     return header;
   296 }
   295 }