javauis/eswt_qt/org.eclipse.swt/Eclipse_SWT_PI/qt/library/os.cpp
changeset 87 1627c337e51e
parent 80 d6dafc5d983f
equal deleted inserted replaced
80:d6dafc5d983f 87:1627c337e51e
    77 #include <QLocale>
    77 #include <QLocale>
    78 #include <QInputContextFactory>
    78 #include <QInputContextFactory>
    79 #include <QChar>
    79 #include <QChar>
    80 #include <QLibrary>
    80 #include <QLibrary>
    81 
    81 
    82 #ifdef __SYMBIAN32__
    82 #if 0
    83 #include <xqservicerequest.h>
    83 #include <xqservicerequest.h>
    84 #include <xqcallinfo.h>
       
    85 #include <cntservicescontact.h>
    84 #include <cntservicescontact.h>
    86 #include <qnetworkconfigmanager.h>
       
    87 #include <qnetworkconfiguration.h>
       
    88 #include <hbinputsettingproxy.h>
    85 #include <hbinputsettingproxy.h>
    89 #include <hbicon.h>
    86 #include <hbicon.h>
    90 #include <XQAiwRequest.h>
    87 #include <XQAiwRequest.h>
    91 #include <xqappmgr.h>
    88 #include <xqappmgr.h>
    92 #include <xqaiwdecl.h>
    89 #include <xqaiwdecl.h>
  6360 //
  6357 //
  6361 
  6358 
  6362 JNIEXPORT jint JNICALL OS_NATIVE ( HbIcon_1new )
  6359 JNIEXPORT jint JNICALL OS_NATIVE ( HbIcon_1new )
  6363     (JNIEnv* aJniEnv , jclass, jstring aName)
  6360     (JNIEnv* aJniEnv , jclass, jstring aName)
  6364     {
  6361     {
  6365 #ifdef __SYMBIAN32__
  6362 #if 0
  6366     HbIcon* icon = NULL;
  6363     HbIcon* icon = NULL;
  6367     SWT_TRY
  6364     SWT_TRY
  6368         {
  6365         {
  6369         SWT_LOG_JNI_CALL();
  6366         SWT_LOG_JNI_CALL();
  6370         icon = new HbIcon(swtApp->jniUtils().JavaStringToQString(aJniEnv, aName));
  6367         icon = new HbIcon(swtApp->jniUtils().JavaStringToQString(aJniEnv, aName));
  6377     }
  6374     }
  6378 
  6375 
  6379 JNIEXPORT jint JNICALL OS_NATIVE( HbIcon_1pixmap )
  6376 JNIEXPORT jint JNICALL OS_NATIVE( HbIcon_1pixmap )
  6380     (JNIEnv* aJniEnv , jclass, jint aHandle)
  6377     (JNIEnv* aJniEnv , jclass, jint aHandle)
  6381     {
  6378     {
  6382 #ifdef __SYMBIAN32__
  6379 #if 0
  6383     QPixmap* pixmap = NULL;
  6380     QPixmap* pixmap = NULL;
  6384     SWT_TRY
  6381     SWT_TRY
  6385         {
  6382         {
  6386         SWT_LOG_JNI_CALL();
  6383         SWT_LOG_JNI_CALL();
  6387         HbIcon* icon = reinterpret_cast< HbIcon* >( aHandle );
  6384         HbIcon* icon = reinterpret_cast< HbIcon* >( aHandle );
  6395     }
  6392     }
  6396 
  6393 
  6397 JNIEXPORT void JNICALL OS_NATIVE( HbIcon_1delete )
  6394 JNIEXPORT void JNICALL OS_NATIVE( HbIcon_1delete )
  6398     (JNIEnv* aJniEnv , jclass, jint aHandle)
  6395     (JNIEnv* aJniEnv , jclass, jint aHandle)
  6399     {
  6396     {
  6400 #ifdef __SYMBIAN32__
  6397 #if 0
  6401     SWT_TRY
  6398     SWT_TRY
  6402         {
  6399         {
  6403         SWT_LOG_JNI_CALL();
  6400         SWT_LOG_JNI_CALL();
  6404         SWT_LOG_DATA_1("handle=%x", aHandle);
  6401         SWT_LOG_DATA_1("handle=%x", aHandle);
  6405         HbIcon* icon = reinterpret_cast< HbIcon* >( aHandle );
  6402         HbIcon* icon = reinterpret_cast< HbIcon* >( aHandle );
 11394 
 11391 
 11395 JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_extension_OS_HbInputSettingProxy_1availableHwKeyboard
 11392 JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_extension_OS_HbInputSettingProxy_1availableHwKeyboard
 11396     (JNIEnv* aJniEnv, jclass)
 11393     (JNIEnv* aJniEnv, jclass)
 11397     {
 11394     {
 11398     jint result = 0;
 11395     jint result = 0;
 11399 #ifdef __SYMBIAN32__
 11396 #if 0
 11400     SWT_TRY
 11397     SWT_TRY
 11401         {
 11398         {
 11402         SWT_LOG_JNI_CALL();
 11399         SWT_LOG_JNI_CALL();
 11403         HbInputSettingProxy* hbisp = HbInputSettingProxy::instance();
 11400         HbInputSettingProxy* hbisp = HbInputSettingProxy::instance();
 11404         QList<HbKeyboardType> keyBoards;
 11401         QList<HbKeyboardType> keyBoards;
 11444 //
 11441 //
 11445 // XQServiceRequest
 11442 // XQServiceRequest
 11446 //
 11443 //
 11447 
 11444 
 11448 JNIEXPORT jint JNICALL OS_NATIVE( XQServiceRequest_1new )
 11445 JNIEXPORT jint JNICALL OS_NATIVE( XQServiceRequest_1new )
 11449 #ifdef __SYMBIAN32__
 11446 #if 0
 11450 (JNIEnv* aJniEnv, jclass, jstring aService, jstring aOperation, jboolean aSynchronous)
 11447 (JNIEnv* aJniEnv, jclass, jstring aService, jstring aOperation, jboolean aSynchronous)
 11451 #else
 11448 #else
 11452 (JNIEnv* aJniEnv, jclass, jstring, jstring, jboolean)
 11449 (JNIEnv* aJniEnv, jclass, jstring, jstring, jboolean)
 11453 #endif
 11450 #endif
 11454     {
 11451     {
 11455 #ifdef __SYMBIAN32__
 11452 #if 0
 11456     XQServiceRequest* request = NULL;
 11453     XQServiceRequest* request = NULL;
 11457     SWT_TRY
 11454     SWT_TRY
 11458         {
 11455         {
 11459         SWT_LOG_JNI_CALL();
 11456         SWT_LOG_JNI_CALL();
 11460         request = new XQServiceRequest(swtApp->jniUtils().JavaStringToQString(aJniEnv, aService), swtApp->jniUtils().JavaStringToQString(aJniEnv, aOperation), aSynchronous  == JNI_TRUE ? true : false);
 11457         request = new XQServiceRequest(swtApp->jniUtils().JavaStringToQString(aJniEnv, aService), swtApp->jniUtils().JavaStringToQString(aJniEnv, aOperation), aSynchronous  == JNI_TRUE ? true : false);
 11465 return NULL;
 11462 return NULL;
 11466 #endif
 11463 #endif
 11467     }
 11464     }
 11468 
 11465 
 11469 JNIEXPORT void JNICALL OS_NATIVE( XQServiceRequest_1swt_1setArgumentsForFetchEmail )
 11466 JNIEXPORT void JNICALL OS_NATIVE( XQServiceRequest_1swt_1setArgumentsForFetchEmail )
 11470 #ifdef __SYMBIAN32__
 11467 #if 0
 11471 (JNIEnv* aJniEnv, jclass, jint aHandle, jstring aTitle, jstring aAction, jstring)
 11468 (JNIEnv* aJniEnv, jclass, jint aHandle, jstring aTitle, jstring aAction, jstring)
 11472 #else
 11469 #else
 11473 (JNIEnv* aJniEnv, jclass, jint, jstring, jstring, jstring)
 11470 (JNIEnv* aJniEnv, jclass, jint, jstring, jstring, jstring)
 11474 #endif
 11471 #endif
 11475     {
 11472     {
 11476 #ifdef __SYMBIAN32__    
 11473 #if 0
 11477     SWT_TRY
 11474     SWT_TRY
 11478         {
 11475         {
 11479         SWT_LOG_JNI_CALL();
 11476         SWT_LOG_JNI_CALL();
 11480         SWT_LOG_DATA_1( "handle=%x", aHandle );
 11477         SWT_LOG_DATA_1( "handle=%x", aHandle );
 11481         XQServiceRequest* request = reinterpret_cast<XQServiceRequest*>(aHandle);
 11478         XQServiceRequest* request = reinterpret_cast<XQServiceRequest*>(aHandle);
 11485     SWT_CATCH
 11482     SWT_CATCH
 11486 #endif    
 11483 #endif    
 11487     }
 11484     }
 11488 
 11485 
 11489 JNIEXPORT void JNICALL OS_NATIVE( XQServiceRequest_1swt_1setArgumentsForDial )
 11486 JNIEXPORT void JNICALL OS_NATIVE( XQServiceRequest_1swt_1setArgumentsForDial )
 11490 #ifdef __SYMBIAN32__
 11487 #if 0
 11491 (JNIEnv* aJniEnv, jclass, jint aHandle, jstring aNumber, jboolean aAsyncAnswer)
 11488 (JNIEnv* aJniEnv, jclass, jint aHandle, jstring aNumber, jboolean aAsyncAnswer)
 11492 #else
 11489 #else
 11493 (JNIEnv* aJniEnv, jclass, jint, jstring, jboolean)
 11490 (JNIEnv* aJniEnv, jclass, jint, jstring, jboolean)
 11494 #endif
 11491 #endif
 11495     {
 11492     {
 11496 #ifdef __SYMBIAN32__    
 11493 #if 0
 11497     SWT_TRY
 11494     SWT_TRY
 11498         {
 11495         {
 11499         SWT_LOG_JNI_CALL();
 11496         SWT_LOG_JNI_CALL();
 11500         SWT_LOG_DATA_1( "handle=%x", aHandle );
 11497         SWT_LOG_DATA_1( "handle=%x", aHandle );
 11501         XQServiceRequest* request = reinterpret_cast<XQServiceRequest*>(aHandle);
 11498         XQServiceRequest* request = reinterpret_cast<XQServiceRequest*>(aHandle);
 11505     SWT_CATCH
 11502     SWT_CATCH
 11506 #endif    
 11503 #endif    
 11507     }
 11504     }
 11508 
 11505 
 11509 JNIEXPORT jboolean JNICALL OS_NATIVE( XQServiceRequest_1send )
 11506 JNIEXPORT jboolean JNICALL OS_NATIVE( XQServiceRequest_1send )
 11510 #ifdef __SYMBIAN32__
 11507 #if 0
 11511 (JNIEnv* aJniEnv, jclass, jint aHandle)
 11508 (JNIEnv* aJniEnv, jclass, jint aHandle)
 11512 #else
 11509 #else
 11513 (JNIEnv* aJniEnv, jclass, jint)
 11510 (JNIEnv* aJniEnv, jclass, jint)
 11514 #endif
 11511 #endif
 11515     {
 11512     {
 11516 #ifdef __SYMBIAN32__    
 11513 #if 0
 11517     bool result = false;
 11514     bool result = false;
 11518     SWT_TRY
 11515     SWT_TRY
 11519         {
 11516         {
 11520         SWT_LOG_JNI_CALL();
 11517         SWT_LOG_JNI_CALL();
 11521         SWT_LOG_DATA_1( "handle=%x", aHandle );
 11518         SWT_LOG_DATA_1( "handle=%x", aHandle );
 11533 //
 11530 //
 11534 // XQApplicationManager
 11531 // XQApplicationManager
 11535 //
 11532 //
 11536 
 11533 
 11537 JNIEXPORT jint JNICALL OS_NATIVE( XQApplicationManager_1new )
 11534 JNIEXPORT jint JNICALL OS_NATIVE( XQApplicationManager_1new )
 11538 #ifdef __SYMBIAN32__
 11535 #if 0
 11539 (JNIEnv* aJniEnv, jclass)
 11536 (JNIEnv* aJniEnv, jclass)
 11540 #else
 11537 #else
 11541 (JNIEnv* aJniEnv, jclass)
 11538 (JNIEnv* aJniEnv, jclass)
 11542 #endif
 11539 #endif
 11543     {
 11540     {
 11544 #ifdef __SYMBIAN32__    
 11541 #if 0
 11545     XQApplicationManager* aiwMgr = NULL;
 11542     XQApplicationManager* aiwMgr = NULL;
 11546     SWT_TRY
 11543     SWT_TRY
 11547         {
 11544         {
 11548         SWT_LOG_JNI_CALL();
 11545         SWT_LOG_JNI_CALL();
 11549         aiwMgr = new XQApplicationManager();
 11546         aiwMgr = new XQApplicationManager();
 11554     return NULL;
 11551     return NULL;
 11555 #endif    
 11552 #endif    
 11556     }
 11553     }
 11557 
 11554 
 11558 JNIEXPORT jint JNICALL OS_NATIVE( XQApplicationManager_1create )
 11555 JNIEXPORT jint JNICALL OS_NATIVE( XQApplicationManager_1create )
 11559 #ifdef __SYMBIAN32__
 11556 #if 0
 11560   (JNIEnv * aJniEnv, jclass,jint aHandle, jstring aService, jstring aInterface, jstring aOperation, jboolean aSynchronous)
 11557   (JNIEnv * aJniEnv, jclass,jint aHandle, jstring aService, jstring aInterface, jstring aOperation, jboolean aSynchronous)
 11561 #else
 11558 #else
 11562 (JNIEnv *, jclass, jint, jstring, jstring, jstring, jboolean)
 11559 (JNIEnv *, jclass, jint, jstring, jstring, jstring, jboolean)
 11563 #endif
 11560 #endif
 11564     {
 11561     {
 11565 #ifdef __SYMBIAN32__
 11562 #if 0
 11566     XQAiwRequest* request = NULL;
 11563     XQAiwRequest* request = NULL;
 11567     SWT_TRY
 11564     SWT_TRY
 11568         {
 11565         {
 11569         SWT_LOG_JNI_CALL();
 11566         SWT_LOG_JNI_CALL();
 11570         XQApplicationManager* aiwmgr = reinterpret_cast<XQApplicationManager*>(aHandle);
 11567         XQApplicationManager* aiwmgr = reinterpret_cast<XQApplicationManager*>(aHandle);
 11582 
 11579 
 11583 //
 11580 //
 11584 // XQAiwRequest
 11581 // XQAiwRequest
 11585 //
 11582 //
 11586 JNIEXPORT void JNICALL OS_NATIVE( XQAiwRequest_1setArguments )
 11583 JNIEXPORT void JNICALL OS_NATIVE( XQAiwRequest_1setArguments )
 11587 #ifdef __SYMBIAN32__
 11584 #if 0
 11588 (JNIEnv* aJniEnv, jclass, jint aHandle, jstring aNumber)
 11585 (JNIEnv* aJniEnv, jclass, jint aHandle, jstring aNumber)
 11589 #else
 11586 #else
 11590 (JNIEnv* aJniEnv, jclass, jint, jstring)
 11587 (JNIEnv* aJniEnv, jclass, jint, jstring)
 11591 #endif
 11588 #endif
 11592     {
 11589     {
 11593 #ifdef __SYMBIAN32__    
 11590 #if 0
 11594     SWT_TRY
 11591     SWT_TRY
 11595         {
 11592         {
 11596         SWT_LOG_JNI_CALL();
 11593         SWT_LOG_JNI_CALL();
 11597         SWT_LOG_DATA_1( "handle=%x", aHandle );
 11594         SWT_LOG_DATA_1( "handle=%x", aHandle );
 11598         XQAiwRequest* request = reinterpret_cast<XQAiwRequest*>(aHandle);
 11595         XQAiwRequest* request = reinterpret_cast<XQAiwRequest*>(aHandle);
 11607     SWT_CATCH
 11604     SWT_CATCH
 11608 #endif    
 11605 #endif    
 11609     }
 11606     }
 11610 
 11607 
 11611 JNIEXPORT void JNICALL OS_NATIVE( XQAiwRequest_1swtDialer_1setArguments )
 11608 JNIEXPORT void JNICALL OS_NATIVE( XQAiwRequest_1swtDialer_1setArguments )
 11612 #ifdef __SYMBIAN32__
 11609 #if 0
 11613 (JNIEnv* aJniEnv, jclass, jint aHandle, jstring aNumber)
 11610 (JNIEnv* aJniEnv, jclass, jint aHandle, jstring aNumber)
 11614 #else
 11611 #else
 11615 (JNIEnv* aJniEnv, jclass, jint, jstring)
 11612 (JNIEnv* aJniEnv, jclass, jint, jstring)
 11616 #endif
 11613 #endif
 11617     {
 11614     {
 11618 #ifdef __SYMBIAN32__    
 11615 #if 0
 11619     SWT_TRY
 11616     SWT_TRY
 11620         {
 11617         {
 11621         SWT_LOG_JNI_CALL();
 11618         SWT_LOG_JNI_CALL();
 11622         SWT_LOG_DATA_1( "handle=%x", aHandle );
 11619         SWT_LOG_DATA_1( "handle=%x", aHandle );
 11623         XQAiwRequest* request = reinterpret_cast<XQAiwRequest*>(aHandle);
 11620         XQAiwRequest* request = reinterpret_cast<XQAiwRequest*>(aHandle);
 11636     SWT_CATCH
 11633     SWT_CATCH
 11637 #endif    
 11634 #endif    
 11638     }
 11635     }
 11639 
 11636 
 11640 JNIEXPORT jboolean JNICALL OS_NATIVE( XQAiwRequest_1send )
 11637 JNIEXPORT jboolean JNICALL OS_NATIVE( XQAiwRequest_1send )
 11641 #ifdef __SYMBIAN32__
 11638 #if 0
 11642 (JNIEnv* aJniEnv, jclass, jint aHandle)
 11639 (JNIEnv* aJniEnv, jclass, jint aHandle)
 11643 #else
 11640 #else
 11644 (JNIEnv* aJniEnv, jclass, jint)
 11641 (JNIEnv* aJniEnv, jclass, jint)
 11645 #endif
 11642 #endif
 11646     {
 11643     {
 11647 #ifdef __SYMBIAN32__    
 11644 #if 0
 11648     bool result = false;
 11645     bool result = false;
 11649     SWT_TRY
 11646     SWT_TRY
 11650         {
 11647         {
 11651         SWT_LOG_JNI_CALL();
 11648         SWT_LOG_JNI_CALL();
 11652         SWT_LOG_DATA_1( "handle=%x", aHandle );
 11649         SWT_LOG_DATA_1( "handle=%x", aHandle );
 11666 //
 11663 //
 11667 // CntServicesContactList
 11664 // CntServicesContactList
 11668 //
 11665 //
 11669 
 11666 
 11670 JNIEXPORT jobjectArray  JNICALL OS_NATIVE( CntServicesContactList_1swt_1contacts )
 11667 JNIEXPORT jobjectArray  JNICALL OS_NATIVE( CntServicesContactList_1swt_1contacts )
 11671 #ifdef __SYMBIAN32__
 11668 #if 0
 11672 (JNIEnv* aJniEnv, jclass, jint aHandle)
 11669 (JNIEnv* aJniEnv, jclass, jint aHandle)
 11673 #else
 11670 #else
 11674 (JNIEnv* aJniEnv, jclass, jint)
 11671 (JNIEnv* aJniEnv, jclass, jint)
 11675 #endif
 11672 #endif
 11676     {
 11673     {
 11677 #ifdef __SYMBIAN32__        
 11674 #if 0
 11678     jobjectArray javaStringArray = NULL;
 11675     jobjectArray javaStringArray = NULL;
 11679     SWT_TRY
 11676     SWT_TRY
 11680         {
 11677         {
 11681         SWT_LOG_JNI_CALL();
 11678         SWT_LOG_JNI_CALL();
 11682         SWT_LOG_DATA_1( "handle=%x", aHandle );
 11679         SWT_LOG_DATA_1( "handle=%x", aHandle );
 11919 #endif
 11916 #endif
 11920     return hwInputs;    
 11917     return hwInputs;    
 11921     }
 11918     }
 11922 
 11919 
 11923 //
 11920 //
 11924 // QNetworkConfigurationManager
       
 11925 //
       
 11926 
       
 11927 JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_extension_OS_QNetworkConfigurationManager_1new
       
 11928 #ifdef __SYMBIAN32__
       
 11929 (JNIEnv* aJniEnv, jclass, jint aParent)
       
 11930 #else
       
 11931 (JNIEnv*, jclass, jint)
       
 11932 #endif
       
 11933 {
       
 11934     jint result = 0;
       
 11935 #ifdef __SYMBIAN32__    
       
 11936     SWT_TRY
       
 11937         {
       
 11938         SWT_LOG_JNI_CALL();
       
 11939         SWT_LOG_DATA_1("parent=%x", aParent);
       
 11940         HANDLE_TO_POINTER(QObject*, parent, aParent);
       
 11941         result = POINTER_TO_HANDLE(new QtMobility::QNetworkConfigurationManager(parent));
       
 11942         }
       
 11943     SWT_CATCH
       
 11944 #endif
       
 11945     return result;
       
 11946 }
       
 11947 
       
 11948 JNIEXPORT jintArray JNICALL Java_org_eclipse_swt_internal_extension_OS_QNetworkConfigurationManager_1allConfigurations
       
 11949 #ifdef __SYMBIAN32__
       
 11950 (JNIEnv* aJniEnv, jclass, jint aHandle, jint aFilter)
       
 11951 #else
       
 11952 (JNIEnv*, jclass, jint, jint)
       
 11953 #endif
       
 11954 {
       
 11955     jintArray javaArray = NULL;
       
 11956 #ifdef __SYMBIAN32__
       
 11957     SWT_TRY
       
 11958         {
       
 11959         SWT_LOG_JNI_CALL();
       
 11960         SWT_LOG_DATA_2("handle=%x filter=%x", aHandle, aFilter);
       
 11961 
       
 11962         HANDLE_TO_POINTER(QtMobility::QNetworkConfigurationManager*, manager, aHandle);
       
 11963         
       
 11964         QList<QtMobility::QNetworkConfiguration> configs = 
       
 11965                 manager->allConfigurations(static_cast<QtMobility::QNetworkConfiguration::StateFlags>(aFilter));
       
 11966 
       
 11967         int count = configs.size();
       
 11968         QVector<int> handles(count);
       
 11969         int* handleData = handles.data();
       
 11970         for(int i = 0; i < count; ++i)
       
 11971             {
       
 11972             handleData[i] = reinterpret_cast<int>(new QtMobility::QNetworkConfiguration(configs.at(i)));
       
 11973             }
       
 11974         javaArray = swtApp->jniUtils().NewJavaIntArray(aJniEnv, handleData, count);
       
 11975         }
       
 11976     SWT_CATCH
       
 11977 #endif
       
 11978     return javaArray;
       
 11979 }
       
 11980 
       
 11981 //
       
 11982 // QNetworkConfiguration
       
 11983 //
       
 11984 
       
 11985 JNIEXPORT jstring JNICALL Java_org_eclipse_swt_internal_extension_OS_QNetworkConfiguration_1bearerName
       
 11986 #ifdef __SYMBIAN32__
       
 11987 (JNIEnv* aJniEnv, jclass, jint aHandle)
       
 11988 #else
       
 11989 (JNIEnv *, jclass, jint)
       
 11990 #endif
       
 11991 {
       
 11992 #ifdef __SYMBIAN32__
       
 11993     jstring result = NULL;
       
 11994 #ifdef __SYMBIAN32__    
       
 11995     SWT_TRY
       
 11996         {
       
 11997         SWT_LOG_JNI_CALL();
       
 11998         SWT_LOG_DATA_1("handle=%x", aHandle);
       
 11999         QtMobility::QNetworkConfiguration* config = reinterpret_cast<QtMobility::QNetworkConfiguration*>(aHandle);
       
 12000         result = swtApp->jniUtils().QStringToJavaString(aJniEnv, config->bearerName());
       
 12001         }
       
 12002     SWT_CATCH
       
 12003 #endif
       
 12004     return result;
       
 12005 #endif
       
 12006 }
       
 12007 
       
 12008 JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_extension_OS_QNetworkConfiguration_1delete
       
 12009 #ifdef __SYMBIAN32__
       
 12010 (JNIEnv* aJniEnv, jclass, jint aHandle)
       
 12011 #else
       
 12012 (JNIEnv *, jclass, jint)
       
 12013 #endif
       
 12014 {
       
 12015 #ifdef __SYMBIAN32__
       
 12016     SWT_TRY
       
 12017         {
       
 12018         SWT_LOG_JNI_CALL();
       
 12019         SWT_LOG_DATA_1("handle=%x", aHandle);
       
 12020         delete reinterpret_cast<QtMobility::QNetworkConfiguration*>(aHandle);
       
 12021         }
       
 12022     SWT_CATCH
       
 12023 #endif
       
 12024 }
       
 12025 
       
 12026 //
       
 12027 // XQCallInfo
       
 12028 //
       
 12029 
       
 12030 JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_extension_OS_XQCallInfo_1create
       
 12031 #ifdef __SYMBIAN32__
       
 12032 (JNIEnv* aJniEnv, jclass)
       
 12033 #else
       
 12034 (JNIEnv *, jclass)
       
 12035 #endif
       
 12036 {
       
 12037     jint result = 0;
       
 12038 #ifdef __SYMBIAN32__
       
 12039     SWT_TRY
       
 12040         {
       
 12041         SWT_LOG_JNI_CALL();
       
 12042 #ifndef __WINSCW__
       
 12043         result = POINTER_TO_HANDLE(XQCallInfo::create());
       
 12044 #endif
       
 12045         }
       
 12046     SWT_CATCH
       
 12047 #endif
       
 12048     return result;
       
 12049 }
       
 12050 
       
 12051 JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_extension_OS_XQCallInfo_1swt_1hasCalls
       
 12052 #ifdef __SYMBIAN32__
       
 12053 (JNIEnv* aJniEnv, jclass, jint aHandle)
       
 12054 #else
       
 12055 (JNIEnv *, jclass, jint)
       
 12056 #endif
       
 12057 {
       
 12058     jboolean result = JNI_FALSE;
       
 12059 #ifdef __SYMBIAN32__
       
 12060     SWT_TRY
       
 12061         {
       
 12062         SWT_LOG_JNI_CALL();
       
 12063         SWT_LOG_DATA_1("handle=%x", aHandle);
       
 12064         HANDLE_TO_POINTER(XQCallInfo*, callInfo, aHandle);
       
 12065         QList<CallInfo> callInfos;
       
 12066         callInfo->getCalls(callInfos);
       
 12067         result = callInfos.empty() ? JNI_FALSE : JNI_TRUE;
       
 12068         }
       
 12069     SWT_CATCH
       
 12070 #endif
       
 12071     return result;
       
 12072 }
       
 12073 
       
 12074 //
       
 12075 // Other
 11921 // Other
 12076 //
 11922 //
 12077 
 11923 
 12078 JNIEXPORT jint JNICALL OS_NATIVE(EventHandler_1new)
 11924 JNIEXPORT jint JNICALL OS_NATIVE(EventHandler_1new)
 12079   ( JNIEnv* aJniEnv, jclass)
 11925   ( JNIEnv* aJniEnv, jclass)