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/ICalTimeType.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/ICalTimeType.java')
-rw-r--r-- | libical/src/java/ICalTimeType.java | 145 |
1 files changed, 145 insertions, 0 deletions
diff --git a/libical/src/java/ICalTimeType.java b/libical/src/java/ICalTimeType.java new file mode 100644 index 0000000000..cf4ee40747 --- /dev/null +++ b/libical/src/java/ICalTimeType.java @@ -0,0 +1,145 @@ +/*====================================================================== + FILE: ICalTimeType.java + CREATOR: structConverter 01/11/02 + (C) COPYRIGHT 2002, Critical Path +======================================================================*/ + +package net.cp.jlibical; + +/** struct icaltimetype */ +public class ICalTimeType +{ + /** + * Constructor for pre-existing native icaltimetype + * @param obj c++ pointer + */ + ICalTimeType(long obj) + { + init(obj); + } + + /** + * Constructor for default ICalTimeType + */ + public ICalTimeType() + { + } + + public void setYear(int lcl_arg0) + { + year = lcl_arg0; + } + public int getYear() + { + return year; + } + + public void setMonth(int lcl_arg0) + { + month = lcl_arg0; + } + public int getMonth() + { + return month; + } + + public void setDay(int lcl_arg0) + { + day = lcl_arg0; + } + public int getDay() + { + return day; + } + + public void setHour(int lcl_arg0) + { + hour = lcl_arg0; + } + public int getHour() + { + return hour; + } + + public void setMinute(int lcl_arg0) + { + minute = lcl_arg0; + } + public int getMinute() + { + return minute; + } + + public void setSecond(int lcl_arg0) + { + second = lcl_arg0; + } + public int getSecond() + { + return second; + } + + public void setIs_utc(boolean lcl_arg0) + { + is_utc = lcl_arg0 ? 1 : 0; + } + public boolean getIs_utc() + { + return is_utc == 0 ? false : true; + } + + public void setIs_date(boolean lcl_arg0) + { + is_date = lcl_arg0 ? 1 : 0; + } + public boolean getIs_date() + { + return is_date == 0 ? false : true; + } + + public void setZone(String lcl_arg0) + { + zone = lcl_arg0; + } + public String getZone() + { + return zone; + } + + // -------------------------------------------------------- + // Initialization + // -------------------------------------------------------- + + /** + * 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 int month; + private int day; + private int year; + private int hour; + private int minute; + private int second; + private int is_utc; + private int is_date; + private String zone = new String(); // Converted from char* +} + |