Logo Search packages:      
Sourcecode: libical version File versions

ICalTriggerType.java

/*======================================================================
 FILE: ICalTriggerType.java
 CREATOR: structConverter 01/11/02
 (C) COPYRIGHT 2002, Critical Path
======================================================================*/

package net.cp.jlibical;

/** struct icaltriggertype */
00010 public class ICalTriggerType
{
      /**
       * Constructor for pre-existing native icaltriggertype
       * @param obj c++ pointer
       */
00016       ICalTriggerType(long obj)
      {
            init(obj);
      }

      /**
      * Constructor for pre-existing native icaltriggertype
      * @param aTime c++ pointer
      * @param aDuration c++ pointer
      */
00026       ICalTriggerType(long aTime, long aDuration)
      {
            init(aTime, aDuration);
      }

      /**
      * Constructor for default ICalTriggerType
      */
00034       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
      */
00063       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();
}


Generated by  Doxygen 1.6.0   Back to index