//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.qt;

import org.kde.qt.Qt;

/**
 See {@link QFtpSignals} for signals emitted by QFtp
*/
public class QFtp extends QNetworkProtocol  {
	protected QFtp(Class dummy){super((Class) null);}
	public static final int Unconnected = 0;
	public static final int HostLookup = 1;
	public static final int Connecting = 2;
	public static final int Connected = 3;
	public static final int LoggedIn = 4;
	public static final int Closing = 5;

	public static final int NoError = 0;
	public static final int UnknownError = 1;
	public static final int HostNotFound = 2;
	public static final int ConnectionRefused = 3;
	public static final int NotConnected = 4;

	public static final int None = 0;
	public static final int ConnectToHost = 1;
	public static final int Login = 2;
	public static final int Close = 3;
	public static final int List = 4;
	public static final int Cd = 5;
	public static final int Get = 6;
	public static final int Put = 7;
	public static final int Remove = 8;
	public static final int Mkdir = 9;
	public static final int Rmdir = 10;
	public static final int Rename = 11;
	public static final int RawCommand = 12;

	public native QMetaObject metaObject();
	public native String className();
	public QFtp() {
		super((Class) null);
		newQFtp();
	}
	private native void newQFtp();
	public QFtp(QObject parent, String name) {
		super((Class) null);
		newQFtp(parent,name);
	}
	private native void newQFtp(QObject parent, String name);
	public QFtp(QObject parent) {
		super((Class) null);
		newQFtp(parent);
	}
	private native void newQFtp(QObject parent);
	public native int supportedOperations();
	public native int connectToHost(String host, short port);
	public native int connectToHost(String host);
	public native int login(String user, String password);
	public native int login(String user);
	public native int login();
	public native int close();
	public native int list(String dir);
	public native int list();
	public native int cd(String dir);
	public native int get(String file, QIODeviceInterface dev);
	public native int get(String file);
	public native int put(byte[] data, String file);
	public native int put(QIODeviceInterface dev, String file);
	public native int remove(String file);
	public native int mkdir(String dir);
	public native int rmdir(String dir);
	public native int rename(String oldname, String newname);
	public native int rawCommand(String command);
	public native long bytesAvailable();
	public native long readBlock(StringBuffer data, long maxlen);
	public native byte[] readAll();
	public native int currentId();
	public native QIODeviceInterface currentDevice();
	public native int currentCommand();
	public native boolean hasPendingCommands();
	public native void clearPendingCommands();
	public native int state();
	public native int error();
	public native String errorString();
	public native void abort();
	public static native String tr(String arg1, String arg2);
	public static native String tr(String arg1);
	protected native void parseDir(String buffer, QUrlInfo info);
	protected native void operationListChildren(QNetworkOperation op);
	protected native void operationMkDir(QNetworkOperation op);
	protected native void operationRemove(QNetworkOperation op);
	protected native void operationRename(QNetworkOperation op);
	protected native void operationGet(QNetworkOperation op);
	protected native void operationPut(QNetworkOperation op);
	protected native void hostFound();
	protected native void connected();
	protected native void closed();
	protected native void dataHostFound();
	protected native void dataConnected();
	protected native void dataClosed();
	protected native void dataReadyRead();
	protected native void dataBytesWritten(int nbytes);
	protected native void error(int arg1);
	/** Deletes the wrapped C++ instance */
	protected native void finalize() throws InternalError;
	/** Delete the wrapped C++ instance ahead of finalize() */
	public native void dispose();
	/** Has the wrapped C++ instance been deleted? */
	public native boolean isDisposed();
}
