summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/org/trinitydesktop/qt/TQFtp.java
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/org/trinitydesktop/qt/TQFtp.java')
-rw-r--r--qtjava/javalib/org/trinitydesktop/qt/TQFtp.java110
1 files changed, 110 insertions, 0 deletions
diff --git a/qtjava/javalib/org/trinitydesktop/qt/TQFtp.java b/qtjava/javalib/org/trinitydesktop/qt/TQFtp.java
new file mode 100644
index 00000000..17c8c59e
--- /dev/null
+++ b/qtjava/javalib/org/trinitydesktop/qt/TQFtp.java
@@ -0,0 +1,110 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.trinitydesktop.qt;
+
+import org.trinitydesktop.qt.Qt;
+
+/**
+ See {@link TQFtpSignals} for signals emitted by TQFtp
+*/
+public class TQFtp extends TQNetworkProtocol {
+ protected TQFtp(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 TQMetaObject metaObject();
+ public native String className();
+ public TQFtp() {
+ super((Class) null);
+ newTQFtp();
+ }
+ private native void newTQFtp();
+ public TQFtp(TQObject parent, String name) {
+ super((Class) null);
+ newTQFtp(parent,name);
+ }
+ private native void newTQFtp(TQObject parent, String name);
+ public TQFtp(TQObject parent) {
+ super((Class) null);
+ newTQFtp(parent);
+ }
+ private native void newTQFtp(TQObject 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, TQIODeviceInterface dev);
+ public native int get(String file);
+ public native int put(byte[] data, String file);
+ public native int put(TQIODeviceInterface 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 TQIODeviceInterface 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, TQUrlInfo info);
+ protected native void operationListChildren(TQNetworkOperation op);
+ protected native void operationMkDir(TQNetworkOperation op);
+ protected native void operationRemove(TQNetworkOperation op);
+ protected native void operationRename(TQNetworkOperation op);
+ protected native void operationGet(TQNetworkOperation op);
+ protected native void operationPut(TQNetworkOperation 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();
+}