/***************************************************************************
                            KAutoMount.java -  description
                             -------------------
    begin                : Sun Jan 27 16:22:17 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd.
    email                : Richard_Dale@tipitina.demon.co.uk
    generated by         : duke@tipitina on Sun Jan 27 16:22:17 2002, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

package org.kde.koala;

import org.kde.qt.*;
import java.util.*;
import java.lang.Error;

/**

 This class implements synchronous mounting of devices,
 as well as showing a file-manager window after mounting a device, optionally.
 It is a wrapper around the asychronous {@link KIO#special} call for mount,
 used by {@link KMimeType}.

 See {@link KAutoMountSignals} for signals emitted by KAutoMount.

 See {@link KAutoMountEventHandling} for event handlers to override in subclasses of KAutoMount.

 @short This class implements synchronous mounting of devices.
 
*/
public class KAutoMount extends QObject  {
	protected KAutoMount(Class dummy){super((Class) null);}

	private native void newKAutoMount( boolean readonly, String format, String device, String mountpoint, String desktopFile, boolean show_filemanager_window);

/** 
 Mounts a device.

*/
	public KAutoMount( boolean readonly, String format, String device, String mountpoint, String desktopFile, boolean show_filemanager_window) {
		super((Class) null);
		newKAutoMount( readonly, format, device, mountpoint, desktopFile, show_filemanager_window);
	}
	private native void newKAutoMount( boolean readonly, String format, String device, String mountpoint, String desktopFile);
	public KAutoMount( boolean readonly, String format, String device, String mountpoint, String desktopFile) {
		super((Class) null);
		newKAutoMount( readonly, format, device, mountpoint, desktopFile);
	}
	protected native void slotResult( Job arg1);
}
