/*
 * Class:     net_cp_jlibical_ICalValue
 * Method:    set_trigger
 * Signature: (Lnet/cp/jlibical/ICalTriggerType;)V
 */
JNIEXPORT void JNICALL Java_net_cp_jlibical_ICalValue_set_1trigger
  (JNIEnv *env, jobject jobj, jobject arg)
{
	// get the c++ object from the jobj
	ICalValue* cObj = getSubjectAsICalValue(env,jobj,JLIBICAL_ERR_CLIENT_INTERNAL);
	if (cObj != NULL)
	{
		icaltriggertype aTrigger; 

		if (copyObjToicaltriggertype(env,arg,&aTrigger))
		{
			cObj->set_trigger(aTrigger);
		}
	}
}
Пример #2
0
/*
 * Class:     net_cp_jlibical_ICalProperty
 * Method:    set_trigger
 * Signature: (Lnet/cp/jlibical/ICalTriggerType;)V
 */
JNIEXPORT void JNICALL Java_net_cp_jlibical_ICalProperty_set_1trigger
  (JNIEnv *env, jobject jobj, jobject arg)
{
	ICalProperty* cObj = getSubjectAsICalProperty(env,jobj,JLIBICAL_ERR_CLIENT_INTERNAL);

	if (cObj != NULL)
	{
		icaltriggertype aTrigger;

		if (copyObjToicaltriggertype(env,arg,&aTrigger))
		{
			cObj->set_trigger(aTrigger);
		}
	}
}