1 /*======================================================================
2 FILE: ICalDurationType.java
3 CREATOR: structConverter 01/11/02
4 (C) COPYRIGHT 2002, Critical Path
5 ======================================================================*/
7 package net.cp.jlibical;
9 /** struct icaldurationtype */
10 public class ICalDurationType
13 * Constructor for pre-existing native icaldurationtype.
14 * @param obj c++ pointer
16 ICalDurationType(long obj)
22 * Constructor for default ICalDurationType
24 public ICalDurationType()
28 public void setIs_neg(int lcl_arg0)
32 public int getIs_neg()
37 public void setDays(long lcl_arg0)
46 public void setWeeks(long lcl_arg0)
50 public long getWeeks()
55 public void setHours(long lcl_arg0)
59 public long getHours()
64 public void setMinutes(long lcl_arg0)
68 public long getMinutes()
73 public void setSeconds(long lcl_arg0)
77 public long getSeconds()
82 // --------------------------------------------------------
84 // --------------------------------------------------------
87 * native code inits from an existing struct.
89 private native void init(long aDuration);
92 * optimization: init field id cache,
94 private native static void initFIDs();
97 * load the jni library for this class
100 System.loadLibrary("ical_jni");
104 // --------------------------------------------------------
106 // --------------------------------------------------------
109 private long days; // unsigned int
110 private long weeks; // unsigned int
111 private long hours; // unsigned int
112 private long minutes; // unsigned int
113 private long seconds; // unsigned int