/*
 * Java-Gnome Bindings Library
 *
 * Copyright 1998-2002 the Java-Gnome Team, all rights reserved.
 *
 * The Java-Gnome Team Members:
 *   Jean Van Wyk <jeanvanwyk@iname.com>
 *   Jeffrey S. Morgan <jeffrey.morgan@bristolwest.com>
 *   Dan Bornstein <danfuzz@milk.com>
 *
 * The Java-Gnome bindings library is free software distributed under
 * the terms of the GNU Library General Public License version 2.
 *
 * This file was orriginally generated by the Java-GNOME Code Generator
 * Please do not modify the code that is identified as generated.  Also,
 * please insert your code above the generated code.
 *
 * Generation date: 2002-08-16 20:10:31 CDT
 */

#include <jni.h>
#include <sys/types.h>
#include <gnome.h>
#ifdef __cplusplus
extern "C" 
{
#endif
    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/
    /*
     * Class:     org.gnu.gnome.DateEdit
     * Method:    gnome_date_edit_get_type
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_DateEdit_gnome_1date_1edit_1get_1type (JNIEnv *env, 
        jclass cls) 
    {
        {
            return (jint)gnome_date_edit_get_type ();
        }
    }

    /*
     * Class:     org.gnu.gnome.DateEdit
     * Method:    gnome_date_edit_new
     * Signature: (JZZ)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_DateEdit_gnome_1date_1edit_1new (JNIEnv *env, jclass 
        cls, jlong the_time, jboolean show_time, jboolean use_24_format) 
    {
        time_t the_time_g = (time_t) the_time;
        gboolean show_time_g = (gboolean) show_time;
        gboolean use_24_format_g = (gboolean) use_24_format;
        {
            return (jint)gnome_date_edit_new (the_time_g, show_time_g, use_24_format_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.DateEdit
     * Method:    gnome_date_edit_new_flags
     * Signature: (JI)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_DateEdit_gnome_1date_1edit_1new_1flags (JNIEnv *env, 
        jclass cls, jlong the_time, jint flags) 
    {
        time_t the_time_g = (time_t) the_time;
        GnomeDateEditFlags flags_g = (GnomeDateEditFlags) flags;
        {
            return (jint)gnome_date_edit_new_flags (the_time_g, flags_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.DateEdit
     * Method:    gnome_date_edit_set_time
     * Signature: (IJ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_DateEdit_gnome_1date_1edit_1set_1time (JNIEnv *env, 
        jclass cls, jint gde, jlong the_time) 
    {
        GnomeDateEdit *gde_g = (GnomeDateEdit *)gde;
        time_t the_time_g = (time_t) the_time;
        {
            gnome_date_edit_set_time (gde_g, the_time_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.DateEdit
     * Method:    gnome_date_edit_get_time
     * Signature: (I)J
     */
    JNIEXPORT jlong JNICALL Java_org_gnu_gnome_DateEdit_gnome_1date_1edit_1get_1time (JNIEnv *env, 
        jclass cls, jint gde) 
    {
        GnomeDateEdit *gde_g = (GnomeDateEdit *)gde;
        {
            jlong result = gnome_date_edit_get_time (gde_g);
            return result;
        }
    }

    /*
     * Class:     org.gnu.gnome.DateEdit
     * Method:    gnome_date_edit_set_popup_range
     * Signature: (III)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_DateEdit_gnome_1date_1edit_1set_1popup_1range (JNIEnv 
        *env, jclass cls, jint gde, jint low_hour, jint up_hour) 
    {
        GnomeDateEdit *gde_g = (GnomeDateEdit *)gde;
        gint32 low_hour_g = (gint32) low_hour;
        gint32 up_hour_g = (gint32) up_hour;
        {
            gnome_date_edit_set_popup_range (gde_g, low_hour_g, up_hour_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.DateEdit
     * Method:    gnome_date_edit_set_flags
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_DateEdit_gnome_1date_1edit_1set_1flags (JNIEnv *env, 
        jclass cls, jint gde, jint flags) 
    {
        GnomeDateEdit *gde_g = (GnomeDateEdit *)gde;
        GnomeDateEditFlags flags_g = (GnomeDateEditFlags) flags;
        {
            gnome_date_edit_set_flags (gde_g, flags_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.DateEdit
     * Method:    gnome_date_edit_get_flags
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_DateEdit_gnome_1date_1edit_1get_1flags (JNIEnv *env, 
        jclass cls, jint gde) 
    {
        GnomeDateEdit *gde_g = (GnomeDateEdit *)gde;
        {
            jint result_j = (jint) (gnome_date_edit_get_flags (gde_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gnome.DateEdit
     * Method:    gnome_date_edit_get_initial_time
     * Signature: (I)J
     */
    JNIEXPORT jlong JNICALL Java_org_gnu_gnome_DateEdit_gnome_1date_1edit_1get_1initial_1time (
        JNIEnv *env, jclass cls, jint gde) 
    {
        GnomeDateEdit *gde_g = (GnomeDateEdit *)gde;
        {
            jlong result = gnome_date_edit_get_initial_time (gde_g);
            return result;
        }
    }

    /****************************************
     * END OF GENERATED CODE
     ****************************************/
#ifdef __cplusplus
}

#endif
