blob: a35c54c91f1ea3ac5bdfc58b915b180addf43cde (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
/*======================================================================
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();
}
|