|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<QFtp.Command>
com.trolltech.qt.network.QFtp.Command
public static enum QFtp.Command
This enum is used as the return value for the currentCommand function. This allows you to perform specific actions for particular commands, e.g. in a FTP client, you might want to clear the directory view when a list command is started; in this case you can simply check in the slot connected to the start() signal if the currentCommand is List.
Enum Constant Summary | |
---|---|
Cd
cd is being executed. |
|
Close
close is being executed. |
|
ConnectToHost
connectToHost is being executed. |
|
Get
get is being executed. |
|
List
list is being executed. |
|
Login
login is being executed. |
|
Mkdir
mkdir is being executed. |
|
None
No command is being executed. |
|
Put
put is being executed. |
|
RawCommand
rawCommand is being executed. |
|
Remove
remove is being executed. |
|
Rename
rename is being executed. |
|
Rmdir
rmdir is being executed. |
|
SetProxy
switch proxying on or off. |
|
SetTransferMode
set the transfer mode. |
Method Summary | |
---|---|
static QFtp.Command |
resolve(int value)
|
int |
value()
This function should return an integer value for the enum values of the enumeration that implements this interface. |
static QFtp.Command |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static QFtp.Command[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final QFtp.Command None
No command is being executed.
public static final QFtp.Command SetTransferMode
set the transfer mode.
public static final QFtp.Command SetProxy
switch proxying on or off.
public static final QFtp.Command ConnectToHost
connectToHost is being executed.
public static final QFtp.Command Login
login is being executed.
public static final QFtp.Command Close
close is being executed.
public static final QFtp.Command List
list is being executed.
public static final QFtp.Command Cd
cd is being executed.
public static final QFtp.Command Get
get is being executed.
public static final QFtp.Command Put
put is being executed.
public static final QFtp.Command Remove
remove is being executed.
public static final QFtp.Command Mkdir
mkdir is being executed.
public static final QFtp.Command Rmdir
rmdir is being executed.
public static final QFtp.Command Rename
rename is being executed.
public static final QFtp.Command RawCommand
rawCommand is being executed.
Method Detail |
---|
public static QFtp.Command[] values()
for (QFtp.Command c : QFtp.Command.values()) System.out.println(c);
public static QFtp.Command valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic int value()
QtEnumerator
value
in interface QtEnumerator
public static QFtp.Command resolve(int value)
|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |