summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/org/kde/qt/QFtp.java
blob: b6d7d8434ffab616b659e6fd98704a324d03a92a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.qt;

import org.kde.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();
}