blob: ad0946c9f3182aa5a1d1be00d86f57d62f7b159b (
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
|
/*======================================================================
FILE: ICalTimeType.java
CREATOR: structConverter 01/11/02
SPDX-FileCopyrightText: 2002, Critical Path
SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0
======================================================================*/
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_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_date;
private String zone = new String(); // Converted from char*
}
|