diff options
author | Hans Petter <hansp@src.gnome.org> | 2003-09-12 06:04:44 +0800 |
---|---|---|
committer | Hans Petter <hansp@src.gnome.org> | 2003-09-12 06:04:44 +0800 |
commit | 697761cc337aa77a47140c8df50ed84bc25e23f6 (patch) | |
tree | b785830f72e9938cceaa016a419c7b6d9892bada /libical/src/java/ICalDurationType.java | |
parent | 733d77e657516f9a59b5c1a7b62acb87b03ec86f (diff) | |
download | gsoc2013-evolution-697761cc337aa77a47140c8df50ed84bc25e23f6.tar gsoc2013-evolution-697761cc337aa77a47140c8df50ed84bc25e23f6.tar.gz gsoc2013-evolution-697761cc337aa77a47140c8df50ed84bc25e23f6.tar.bz2 gsoc2013-evolution-697761cc337aa77a47140c8df50ed84bc25e23f6.tar.lz gsoc2013-evolution-697761cc337aa77a47140c8df50ed84bc25e23f6.tar.xz gsoc2013-evolution-697761cc337aa77a47140c8df50ed84bc25e23f6.tar.zst gsoc2013-evolution-697761cc337aa77a47140c8df50ed84bc25e23f6.zip |
Import new libical from mainline HEAD and make appropriate changes to
Evolution.
svn path=/trunk/; revision=22538
Diffstat (limited to 'libical/src/java/ICalDurationType.java')
-rw-r--r-- | libical/src/java/ICalDurationType.java | 114 |
1 files changed, 114 insertions, 0 deletions
diff --git a/libical/src/java/ICalDurationType.java b/libical/src/java/ICalDurationType.java new file mode 100644 index 0000000000..2dcc23442e --- /dev/null +++ b/libical/src/java/ICalDurationType.java @@ -0,0 +1,114 @@ +/*====================================================================== + FILE: ICalDurationType.java + CREATOR: structConverter 01/11/02 + (C) COPYRIGHT 2002, Critical Path +======================================================================*/ + +package net.cp.jlibical; + +/** struct icaldurationtype */ +public class ICalDurationType +{ + /** + * Constructor for pre-existing native icaldurationtype. + * @param obj c++ pointer + */ + ICalDurationType(long obj) + { + init(obj); + } + + /** + * Constructor for default ICalDurationType + */ + public ICalDurationType() + { + } + + public void setIs_neg(int lcl_arg0) + { + is_neg = lcl_arg0; + } + public int getIs_neg() + { + return is_neg; + } + + public void setDays(long lcl_arg0) + { + days = lcl_arg0; + } + public long getDays() + { + return days; + } + + public void setWeeks(long lcl_arg0) + { + weeks = lcl_arg0; + } + public long getWeeks() + { + return weeks; + } + + public void setHours(long lcl_arg0) + { + hours = lcl_arg0; + } + public long getHours() + { + return hours; + } + + public void setMinutes(long lcl_arg0) + { + minutes = lcl_arg0; + } + public long getMinutes() + { + return minutes; + } + + public void setSeconds(long lcl_arg0) + { + seconds = lcl_arg0; + } + public long getSeconds() + { + return seconds; + } + + // -------------------------------------------------------- + // Initialization + // -------------------------------------------------------- + + /** + * native code inits from an existing struct. + */ + private native void init(long aDuration); + + /** + * 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 int is_neg; + private long days; // unsigned int + private long weeks; // unsigned int + private long hours; // unsigned int + private long minutes; // unsigned int + private long seconds; // unsigned int +} |