/***************************************************************************
                            MimetypeJob.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;

/**
 See {@link MimetypeJobSignals} for signals emitted by MimetypeJob.

 See {@link MimetypeJobEventHandling} for event handlers to override in subclasses of MimetypeJob.

*/
public class MimetypeJob extends TransferJob  {
	protected MimetypeJob(Class dummy){super((Class) null);}

	private native void newMimetypeJob( KURL url, int command, byte[] packedArgs, boolean showProgressInfo);
	public MimetypeJob( KURL url, int command, byte[] packedArgs, boolean showProgressInfo) {
		super((Class) null);
		newMimetypeJob( url, command, packedArgs, showProgressInfo);
	}

/** 
 Call this in the slot connected to {@link result},
 and only after making sure no error happened.
         
*/
	public native String mimetype();

/** 
 Called by the scheduler when a slave gets to
 work on this job.
         
*/
	public native void start( Slave slave);
	protected native void slotFinished();
}
