' FTP Client Custom Control
' (C) Copyright 1993, 1994 by Distinct Corporation
' All rights reserved

' actions
Const ACTION_NONE = 0
Const ACTION_ABORT = 1
Const ACTION_CONNECT = 2
Const ACTION_DISCONNECT = 3

Const FILE_ACTION_NONE = 0
Const FILE_ACTION_ABORT = 1
Const FILE_ACTION_DELETE = 2
Const FILE_ACTION_GET = 3
Const FILE_ACTION_PUT = 4
Const FILE_ACTION_RENAME = 5

Const DIR_ACTION_NONE = 0
Const DIR_ACTION_ABORT = 1
Const DIR_ACTION_CHANGE = 2
Const DIR_ACTION_CREATE = 3
Const DIR_ACTION_DELETE = 4
Const DIR_ACTION_LIST = 5
Const DIR_ACTION_PARENT = 6
Const DIR_ACTION_RENAME = 7

' modes
Const TRANSFER_TYPE_ASCII = 0
Const TRANSFER_TYPE_BINARY = 1

Const TRANSFER_MODE_FILE = 0
Const TRANSFER_MODE_EVENT = 1

Const LIST_TYPE_SHORT = 0
Const LIST_TYPE_LONG = 1

' result
Const FTP_OK = 0
Const FTP_ERROR = 1
Const FTP_CONN_CLOSED = 3

' error codes
Const ERR_CANNOT_CHANGE_XFER_TYPE = 1
Const ERR_CANNOT_CHANGE_XFER_MODE = 2
Const ERR_CANNOT_CHANGE_LIST_TYPE = 3
Const ERR_CANNOT_CHANGE_PORT = 4
Const ERR_PORT_UNDEFINED = 5
Const ERR_HOST_UNDEFINED = 6
Const ERR_IN_TRANSFER = 7
Const ERR_CANNOT_CONNECT = 8
Const ERR_NEED_ACCOUNT = 9
Const ERR_CANNOT_LOG_IN = 10
Const ERR_NOT_CONNECTED = 11
Const ERR_IN_ACTION = 12
Const ERR_NO_DIR_TARGET = 13
Const ERR_NO_NEW_DIR_NAME = 14
Const ERR_NO_FILE_TARGET = 15
Const ERR_NO_NEW_FILE_NAME = 16
Const ERR_NO_REMOTE_FILE = 17
Const ERR_NO_LOCAL_FILE = 18
Const ERR_CANNOT_OPEN_LOCAL_FILE = 19
