aboutsummaryrefslogtreecommitdiffstats
path: root/libical/src/java/ICalTriggerType.java
diff options
context:
space:
mode:
Diffstat (limited to 'libical/src/java/ICalTriggerType.java')
-rw-r--r--libical/src/java/ICalTriggerType.java93
1 files changed, 93 insertions, 0 deletions
diff --git a/libical/src/java/ICalTriggerType.java b/libical/src/java/ICalTriggerType.java
new file mode 100644
index 0000000000..e2ef7a72e0
--- /dev/null
+++ b/libical/src/java/ICalTriggerType.java
@@ -0,0 +1,93 @@
+/*======================================================================
+ FILE: ICalTriggerType.java
+ CREATOR: structConverter 01/11/02
+ (C) COPYRIGHT 2002, Critical Path
+======================================================================*/
+
+package net.cp.jlibical;
+
+/** struct icaltriggertype */
+public class ICalTriggerType
+{
+ /**
+ * Constructor for pre-existing native icaltriggertype
+ * @param obj c++ pointer
+ */
+ ICalTriggerType(long obj)
+ {
+ init(obj);
+ }
+
+ /**
+ * Constructor for pre-existing native icaltriggertype
+ * @param aTime c++ pointer
+ * @param aDuration c++ pointer
+ */
+ ICalTriggerType(long aTime, long aDuration)
+ {
+ init(aTime, aDuration);
+ }
+
+ /**
+ * Constructor for default ICalTriggerType
+ */
+ public ICalTriggerType()
+ {
+ }
+
+ public void setTime(ICalTimeType lcl_arg0)
+ {
+ time = lcl_arg0;
+ }
+ public ICalTimeType getTime()
+ {
+ return time;
+ }
+
+ public void setDuration(ICalDurationType lcl_arg0)
+ {
+ duration = lcl_arg0;
+ }
+ public ICalDurationType getDuration()
+ {
+ return duration;
+ }
+
+ // --------------------------------------------------------
+ // Initialization
+ // --------------------------------------------------------
+
+ /**
+ * init with a native object
+ */
+ private void init(long aTime, long aDuration)
+ {
+ time = new ICalTimeType(aTime);
+ duration = new ICalDurationType(aDuration);
+ }
+
+ /**
+ * copy data from an existing struct.
+ */
+ private native void init(long obj);
+
+ /**
+ * optimization: init field id cache,
+ */
+ private native static void initFIDs();
+
+ /**
+ * load the jni library for this class
+ */
+ static {
+ System.loadLibrary("ical_jni");
+ initFIDs();
+ }
+
+ // --------------------------------------------------------
+ // Fields
+ // --------------------------------------------------------
+ private ICalTimeType time = new ICalTimeType();
+ private ICalDurationType duration = new ICalDurationType();
+}
+