/*
 * 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-08 10:21:58 EDT
 */

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

    /*
     * Class:     org.gnu.gnome.FileEntry
     * Method:    gnome_file_entry_new
     * Signature: (java.lang.String;java.lang.String;)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_FileEntry_gnome_1file_1entry_1new (JNIEnv *env, 
        jclass cls, jstring historyId, jstring browseDialogTitle) 
    {
        gchar* historyId_g = (gchar*)(*env)->GetStringUTFChars(env, historyId, 0);
        gchar* browseDialogTitle_g = (gchar*)(*env)->GetStringUTFChars(env, browseDialogTitle, 0);
        jint result = (jint)gnome_file_entry_new (historyId_g, browseDialogTitle_g);
        if (historyId) (*env)->ReleaseStringUTFChars(env, historyId, historyId_g);
        if (browseDialogTitle) (*env)->ReleaseStringUTFChars(env, browseDialogTitle, browseDialogTitle_g);
        return result;
    }

    /*
     * Class:     org.gnu.gnome.FileEntry
     * Method:    gnome_file_entry_gnome_entry
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_FileEntry_gnome_1file_1entry_1gnome_1entry (JNIEnv 
        *env, jclass cls, jint fentry) 
    {
        GnomeFileEntry *fentry_g = (GnomeFileEntry *)fentry;
        {
            return (jint)gnome_file_entry_gnome_entry (fentry_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.FileEntry
     * Method:    gnome_file_entry_gtk_entry
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_FileEntry_gnome_1file_1entry_1gtk_1entry (JNIEnv 
        *env, jclass cls, jint fentry) 
    {
        GnomeFileEntry *fentry_g = (GnomeFileEntry *)fentry;
        {
            return (jint)gnome_file_entry_gtk_entry (fentry_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.FileEntry
     * Method:    gnome_file_entry_set_title
     * Signature: (Ijava.lang.String;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_FileEntry_gnome_1file_1entry_1set_1title (JNIEnv 
        *env, jclass cls, jint fentry, jstring browseDialogTitle) 
    {
        gchar* browseDialogTitle_g = (gchar*)(*env)->GetStringUTFChars(env, browseDialogTitle, 0);
        gnome_file_entry_set_title ((GnomeFileEntry*)fentry, browseDialogTitle_g);
        if (browseDialogTitle) (*env)->ReleaseStringUTFChars(env, browseDialogTitle, browseDialogTitle_g);
   }

    /*
     * Class:     org.gnu.gnome.FileEntry
     * Method:    gnome_file_entry_set_default_path
     * Signature: (Ijava.lang.String;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_FileEntry_gnome_1file_1entry_1set_1default_1path (
        JNIEnv *env, jclass cls, jint fentry, jstring path) 
    {
        gchar* path_g = (gchar*)(*env)->GetStringUTFChars(env, path, 0);
        gnome_file_entry_set_default_path ((GnomeFileEntry*)fentry, path_g);
        if (path) (*env)->ReleaseStringUTFChars(env, path, path_g);
    }

    /*
     * Class:     org.gnu.gnome.FileEntry
     * Method:    gnome_file_entry_set_directory_entry
     * Signature: (IZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_FileEntry_gnome_1file_1entry_1set_1directory_1entry (
        JNIEnv *env, jclass cls, jint fentry, jboolean directoryEntry) 
    {
        GnomeFileEntry *fentry_g = (GnomeFileEntry *)fentry;
        gboolean directoryEntry_g = (gboolean) directoryEntry;
        {
            gnome_file_entry_set_directory_entry (fentry_g, directoryEntry_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.FileEntry
     * Method:    gnome_file_entry_get_directory_entry
     * Signature: (I)Z
     */
    JNIEXPORT jboolean JNICALL 
    Java_org_gnu_gnome_FileEntry_gnome_1file_1entry_1get_1directory_1entry (JNIEnv *env, jclass 
        cls, jint fentry) 
    {
        GnomeFileEntry *fentry_g = (GnomeFileEntry *)fentry;
        {
            jboolean result_j = (jboolean) (gnome_file_entry_get_directory_entry (fentry_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gnome.FileEntry
     * Method:    gnome_file_entry_get_full_path
     * Signature: (IZ)java.lang.String;
     */
    JNIEXPORT jstring JNICALL Java_org_gnu_gnome_FileEntry_gnome_1file_1entry_1get_1full_1path (
        JNIEnv *env, jclass cls, jint fentry, jboolean fileMustExist) 
    {
        gchar *result_g = (gchar*)gnome_file_entry_get_full_path ((GnomeFileEntry*)fentry, (gboolean)fileMustExist);
        return (*env)->NewStringUTF(env, result_g);
    }

    /*
     * Class:     org.gnu.gnome.FileEntry
     * Method:    gnome_file_entry_set_filename
     * Signature: (Ijava.lang.String;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_FileEntry_gnome_1file_1entry_1set_1filename (JNIEnv 
        *env, jclass cls, jint fentry, jstring filename) 
    {
        gchar* filename_g = (gchar*)(*env)->GetStringUTFChars(env, filename, 0);
        gnome_file_entry_set_filename ((GnomeFileEntry*)fentry, filename_g);
        if (filename) (*env)->ReleaseStringUTFChars(env, filename, filename_g);
    }

    /*
     * Class:     org.gnu.gnome.FileEntry
     * Method:    gnome_file_entry_set_modal
     * Signature: (IZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_FileEntry_gnome_1file_1entry_1set_1modal (JNIEnv 
        *env, jclass cls, jint fentry, jboolean isModal) 
    {
        GnomeFileEntry *fentry_g = (GnomeFileEntry *)fentry;
        gboolean isModal_g = (gboolean) isModal;
        {
            gnome_file_entry_set_modal (fentry_g, isModal_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.FileEntry
     * Method:    gnome_file_entry_get_modal
     * Signature: (I)Z
     */
    JNIEXPORT jboolean JNICALL Java_org_gnu_gnome_FileEntry_gnome_1file_1entry_1get_1modal (JNIEnv 
        *env, jclass cls, jint fentry) 
    {
        GnomeFileEntry *fentry_g = (GnomeFileEntry *)fentry;
        {
            jboolean result_j = (jboolean) (gnome_file_entry_get_modal (fentry_g));
            return result_j;
        }
    }

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

#endif
