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); |
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); |
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) |