Created
March 25, 2014 10:10
-
-
Save fracek/9758550 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module: com.trolltech.qt.core | |
synopsis: generated bindings | |
copyright: See LICENSE file in this distribution. | |
define open C-subtype <QDate> (<C-void*>) | |
end; | |
public enum MonthNameType implements com.trolltech.qt.QtEnumerator { | |
DateFormat(0), | |
StandaloneFormat(1); | |
MonthNameType(int value) { this.value = value; } | |
public int value() { return value; } | |
public static MonthNameType resolve(int value) { | |
return (MonthNameType) resolve_internal(value); | |
} | |
private static Object resolve_internal(int value) { | |
switch (value) { | |
case 0: return DateFormat; | |
case 1: return StandaloneFormat; | |
} | |
throw new com.trolltech.qt.QNoSuchEnumValueException(value); | |
} | |
private final int value; | |
} | |
define C-function QDate | |
c-name: "qtc_QDate_QDate"; | |
end; | |
define C-function QDate | |
parameter y :: <int>; | |
parameter m :: <int>; | |
parameter d :: <int>; | |
c-name: "qtc_QDate_QDate_int_int_int"; | |
end; | |
define C-function qdate-add-days | |
input parameter self :: <QDate>; | |
parameter days :: <int>; | |
c-name: "qtc_QDate_addDays_int_const"; | |
end; | |
define C-function qdate-add-months | |
input parameter self :: <QDate>; | |
parameter months :: <int>; | |
c-name: "qtc_QDate_addMonths_int_const"; | |
end; | |
define C-function qdate-add-years | |
input parameter self :: <QDate>; | |
parameter years :: <int>; | |
c-name: "qtc_QDate_addYears_int_const"; | |
end; | |
define C-function qdate-day | |
input parameter self :: <QDate>; | |
c-name: "qtc_QDate_day_const"; | |
end; | |
define C-function qdate-day-of-week | |
input parameter self :: <QDate>; | |
c-name: "qtc_QDate_dayOfWeek_const"; | |
end; | |
define C-function qdate-day-of-year | |
input parameter self :: <QDate>; | |
c-name: "qtc_QDate_dayOfYear_const"; | |
end; | |
define C-function qdate-days-in-month | |
input parameter self :: <QDate>; | |
c-name: "qtc_QDate_daysInMonth_const"; | |
end; | |
define C-function qdate-days-in-year | |
input parameter self :: <QDate>; | |
c-name: "qtc_QDate_daysInYear_const"; | |
end; | |
define C-function qdate-days-to | |
input parameter self :: <QDate>; | |
parameter arg__1 :: <QDate>; | |
c-name: "qtc_QDate_daysTo_QDate_const"; | |
end; | |
define C-function qdate-is-null | |
input parameter self :: <QDate>; | |
c-name: "qtc_QDate_isNull_const"; | |
end; | |
define C-function qdate-is-valid | |
input parameter self :: <QDate>; | |
c-name: "qtc_QDate_isValid_const"; | |
end; | |
define C-function qdate-month | |
input parameter self :: <QDate>; | |
c-name: "qtc_QDate_month_const"; | |
end; | |
define C-function qdate-operator_less | |
input parameter self :: <QDate>; | |
parameter other :: <QDate>; | |
c-name: "qtc_QDate_operator_less_QDate_const"; | |
end; | |
define C-function qdate-write-to | |
input parameter self :: <QDate>; | |
parameter arg__1 :: <QDataStream>; | |
c-name: "qtc_QDate_writeTo_QDataStream"; | |
end; | |
define C-function qdate-operator_equal | |
input parameter self :: <QDate>; | |
parameter other :: <QDate>; | |
c-name: "qtc_QDate_operator_equal_QDate_const"; | |
end; | |
define C-function qdate-read-from | |
input parameter self :: <QDate>; | |
parameter arg__1 :: <QDataStream>; | |
c-name: "qtc_QDate_readFrom_QDataStream"; | |
end; | |
define C-function qdate-set-date | |
input parameter self :: <QDate>; | |
parameter year :: <int>; | |
parameter month :: <int>; | |
parameter day :: <int>; | |
c-name: "qtc_QDate_setDate_int_int_int"; | |
end; | |
define C-function qdate-to-julian-day | |
input parameter self :: <QDate>; | |
c-name: "qtc_QDate_toJulianDay_const"; | |
end; | |
define C-function qdate-to-string | |
input parameter self :: <QDate>; | |
parameter f :: <DateFormat>; | |
c-name: "qtc_QDate_toString_DateFormat_const"; | |
end; | |
define C-function qdate-to-string | |
input parameter self :: <QDate>; | |
parameter format :: <QString>; | |
c-name: "qtc_QDate_toString_String_const"; | |
end; | |
define C-function qdate-week-number | |
input parameter self :: <QDate>; | |
parameter yearNum :: <int>; | |
c-name: "qtc_QDate_weekNumber_nativepointerint_const"; | |
end; | |
define C-function qdate-year | |
input parameter self :: <QDate>; | |
c-name: "qtc_QDate_year_const"; | |
end; | |
define C-function qdate-current-date | |
c-name: "qtc_QDate_currentDate"; | |
end; | |
define C-function qdate-from-julian-day | |
parameter jd :: <int>; | |
c-name: "qtc_QDate_fromJulianDay_int"; | |
end; | |
define C-function qdate-from-string | |
parameter s :: <QString>; | |
parameter f :: <DateFormat>; | |
c-name: "qtc_QDate_fromString_String_DateFormat"; | |
end; | |
define C-function qdate-from-string | |
parameter s :: <QString>; | |
parameter format :: <QString>; | |
c-name: "qtc_QDate_fromString_String_String"; | |
end; | |
define C-function qdate-gregorian-to-julian | |
parameter y :: <int>; | |
parameter m :: <int>; | |
parameter d :: <int>; | |
c-name: "qtc_QDate_gregorianToJulian_int_int_int"; | |
end; | |
define C-function qdate-is-leap-year | |
parameter year :: <int>; | |
c-name: "qtc_QDate_isLeapYear_int"; | |
end; | |
define C-function qdate-is-valid | |
parameter y :: <int>; | |
parameter m :: <int>; | |
parameter d :: <int>; | |
c-name: "qtc_QDate_isValid_int_int_int"; | |
end; | |
define C-function qdate-long-day-name | |
parameter weekday :: <int>; | |
c-name: "qtc_QDate_longDayName_int"; | |
end; | |
define C-function qdate-long-day-name | |
parameter weekday :: <int>; | |
parameter type :: <MonthNameType>; | |
c-name: "qtc_QDate_longDayName_int_MonthNameType"; | |
end; | |
define C-function qdate-long-month-name | |
parameter month :: <int>; | |
c-name: "qtc_QDate_longMonthName_int"; | |
end; | |
define C-function qdate-long-month-name | |
parameter month :: <int>; | |
parameter type :: <MonthNameType>; | |
c-name: "qtc_QDate_longMonthName_int_MonthNameType"; | |
end; | |
define C-function qdate-short-day-name | |
parameter weekday :: <int>; | |
c-name: "qtc_QDate_shortDayName_int"; | |
end; | |
define C-function qdate-short-day-name | |
parameter weekday :: <int>; | |
parameter type :: <MonthNameType>; | |
c-name: "qtc_QDate_shortDayName_int_MonthNameType"; | |
end; | |
define C-function qdate-short-month-name | |
parameter month :: <int>; | |
c-name: "qtc_QDate_shortMonthName_int"; | |
end; | |
define C-function qdate-short-month-name | |
parameter month :: <int>; | |
parameter type :: <MonthNameType>; | |
c-name: "qtc_QDate_shortMonthName_int_MonthNameType"; | |
end; | |
public static native QDate fromNativePointer(QNativePointer nativePointer); | |
protected QDate(QPrivateConstructor p) { super(p); } | |
public static native QNativePointer nativePointerArray(QDate array[]); | |
@SuppressWarnings("unchecked") | |
@Override | |
public boolean equals(Object other) { | |
if (other instanceof com.trolltech.qt.core.QDate) | |
return operator_equal((com.trolltech.qt.core.QDate) other); | |
return false; | |
} | |
public int compareTo(Object other) { | |
if (equals(other)) return 0; | |
else if (other instanceof com.trolltech.qt.core.QDate) { | |
if (operator_less((com.trolltech.qt.core.QDate) other)) return -1; | |
else return 1; | |
} | |
throw new ClassCastException(); | |
} | |
@Override | |
public int hashCode() { return 0; } | |
public final int weekNumber() { | |
return weekNumber(null); | |
} | |
public final int yearOfWeekNumber() { | |
QNativePointer np = new QNativePointer(QNativePointer.Type.Int); | |
weekNumber(np); | |
return np.intValue(); | |
} | |
@Override | |
public QDate clone() { | |
if (nativeId() == 0) | |
throw new QNoNativeResourcesException("Function call on incomplete object of type: " +getClass().getName()); | |
return __qt_clone(nativeId()); | |
} | |
native QDate __qt_clone(long __this_nativeId); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment