/* * Class: net_cp_jlibical_ICalValue * Method: get_datetime * Signature: ()Lnet/cp/jlibical/ICalTimeType; */ JNIEXPORT jobject JNICALL Java_net_cp_jlibical_ICalValue_get_1datetime (JNIEnv *env, jobject jobj) { jobject result = NULL; // get the c++ object from the jobj ICalValue* cObj = getSubjectAsICalValue(env,jobj,JLIBICAL_ERR_CLIENT_INTERNAL); if (cObj != NULL) { icaltimetype aTime = cObj->get_datetime(); result = createNewICalTimeType(env,&aTime); } return (result); }
/* * Class: net_cp_jlibical_ICalProperty * Method: get_due * Signature: ()Lnet/cp/jlibical/ICalTimeType; */ JNIEXPORT jobject JNICALL Java_net_cp_jlibical_ICalProperty_get_1due (JNIEnv *env, jobject jobj) { jobject result = 0; ICalProperty* cObj = getSubjectAsICalProperty(env,jobj,JLIBICAL_ERR_CLIENT_INTERNAL); if (cObj != NULL) { // get the dtend time from CObj icaltimetype aTime = cObj->get_due(); // create a new surrogate, using aTime as the subject. result = createNewICalTimeType(env,&aTime); } return (result); }
/* * Class: net_cp_jlibical_ICalProperty * Method: get_recurrenceid * Signature: ()Lnet/cp/jlibical/ICalTimeType; */ JNIEXPORT jobject JNICALL Java_net_cp_jlibical_ICalProperty_get_1recurrenceid (JNIEnv *env, jobject jobj) { jobject result = 0; // get the ICalProperty c++ object from jobj ICalProperty* cObj = getSubjectAsICalProperty(env,jobj,JLIBICAL_ERR_CLIENT_INTERNAL); if (cObj != NULL) { // get the exdate from CObj icaltimetype aRecurrenceId = cObj->get_recurrenceid(); // create a new surrogate, using aRecurrenceId as the subject. result = createNewICalTimeType(env,&aRecurrenceId); } return(result); }