public interface WFXPluginInterface
| Modifier and Type | Field and Description |
|---|---|
static int |
CONTENT_DELAYIFSLOW
fsContentGetValue(): called in foreground.
|
static int |
CONTFLAGS_EDIT
fsContentGetSupportedFieldFlags(): The plugin allows to edit (modify)
this field.
|
static int |
CONTFLAGS_FIELDEDIT
fsContentGetSupportedFieldFlags(): TC will show a button in "change
attributes".
|
static int |
CONTFLAGS_PASSTHROUGH_SIZE_FLOAT
fsContentGetSupportedFieldFlags(): Pass the size as
FieldValue.FT_NUMERIC_FLOATING to contentGetValue.
|
static int |
CONTFLAGS_SUBSTATTRIBUTES
fsContentGetSupportedFieldFlags(): Use the file attributes
(FieldValue.NUMERIC_32 or FieldValue.NUMERIC_64).
|
static int |
CONTFLAGS_SUBSTATTRIBUTESTR
fsContentGetSupportedFieldFlags(): Use the file attribute string in form:
-a-- .
|
static int |
CONTFLAGS_SUBSTDATE
fsContentGetSupportedFieldFlags(): Use the file date
(FieldValue.FD_DATE).
|
static int |
CONTFLAGS_SUBSTDATETIME
fsContentGetSupportedFieldFlags(): Use the file date+time
(FieldValue.FT_DATETIME).
|
static int |
CONTFLAGS_SUBSTMASK
fsContentGetSupportedFieldFlags(): A combination of all above
substitution flags.
|
static int |
CONTFLAGS_SUBSTSIZE
fsContentGetSupportedFieldFlags(): Use the file size.
|
static int |
CONTFLAGS_SUBSTTIME
fsContentGetSupportedFieldFlags(): Use the file time
(FieldValue.FD_TIME).
|
static int |
FS_COPYFLAGS_EXISTS_DIFFERENTCASE
fsPutFile: The remote file exists and needs to be overwritten.This is a
hint to the plugin to allow optimizations:
Depending on the plugin type, it may be very slow to check the server for every single file when uploading. |
static int |
FS_COPYFLAGS_EXISTS_SAMECASE
fsPutFile: The remote file exists and needs to be overwritten.This is a
hint to the plugin to allow optimizations:
Depending on the plugin type, it may be very slow to check the server for every single file when uploading. |
static int |
FS_COPYFLAGS_MOVE
fsGetFile, fsPutFile: The plugin needs to delete the remote file after
uploading.
|
static int |
FS_COPYFLAGS_OVERWRITE
fsGetFile, fsPutFile: overwrite without warning.
|
static int |
FS_COPYFLAGS_RESUME
fsGetFile, fsPutFile: Resume an aborted or failed transfer.
|
static int |
FS_EXEC_ERROR
fsExecuteFile: program executed with errors.
|
static int |
FS_EXEC_OK
fsExecuteFile: program executed successfully.
|
static int |
FS_EXEC_SYMLINK
fsExecuteFile: Let Total Commander switch to that directory.
|
static int |
FS_EXEC_YOURSELF
fsExecuteFile: Let Total Commander execute the program himself.
|
static int |
FS_FILE_EXISTS
fsRenMovFile: The target file already exists.
|
static int |
FS_FILE_EXISTSRESUMEALLOWED
fsRenMovFile: not used here.
|
static int |
FS_FILE_NOTFOUND
fsRenMovFile: The source file couldn't be found or opened.
|
static int |
FS_FILE_NOTSUPPORTED
fsRenMovFile: The operation is not supported (e.g. resume)
|
static int |
FS_FILE_OK
The file was copied/moved OK.
|
static int |
FS_FILE_READERROR
fsRenMovFile: There was an error reading from the source file.
|
static int |
FS_FILE_USERABORT
fsRenMovFile: Copying was aborted by the user (through ProgressProc).
|
static int |
FS_FILE_WRITEERROR
fsRenMovFile: There was an error writing to the target file, e.g. disk
full
|
static int |
FS_ICON_DELAYED
fsExtractCustomIcon: This return value is only valid if
FS_ICONFLAG_BACKGROUND was NOT set.
|
static int |
FS_ICON_EXTRACTED
fsExtractCustomIcon: An icon was returned in TheIcon.
|
static int |
FS_ICON_EXTRACTED_DESTROY
fsExtractCustomIcon: An icon was returned in TheIcon.
|
static int |
FS_ICON_USEDEFAULT
fsExtractCustomIcon: No icon is returned.
|
static int |
FS_ICONFLAG_BACKGROUND
fsExtractCustomIcon: The function is called from the background thread
(see note below).
|
static int |
FS_ICONFLAG_SMALL
fsExtractCustomIcon: Requests the small 16x16 icon.
|
static int |
FS_STATUS_END
fsStatusInfo: Operation has ended (free buffers, flush cache etc).
|
static int |
FS_STATUS_OP_ATTRIB
fsStatusInfo: Change attributes/times, may include subdirs.
|
static int |
FS_STATUS_OP_CALCSIZE
fsStatusInfo: Calculating size of subdir (user pressed SPACE).
|
static int |
FS_STATUS_OP_DELETE
fsStatusInfo: Delete multiple files, may include subdirs.
|
static int |
FS_STATUS_OP_EXEC
fsStatusInfo: Start a single remote item, or a command line.
|
static int |
FS_STATUS_OP_GET_MULTI
fsStatusInfo: Get multiple files, may include subdirs.
|
static int |
FS_STATUS_OP_GET_SINGLE
fsStatusInfo: Get a single file from the plugin file system.
|
static int |
FS_STATUS_OP_LIST
fsStatusInfo: Retrieve a directory listing.
|
static int |
FS_STATUS_OP_MKDIR
fsStatusInfo: Create a single directory.
|
static int |
FS_STATUS_OP_PUT_MULTI
fsStatusInfo: Put multiple files, may include subdirs.
|
static int |
FS_STATUS_OP_PUT_SINGLE
fsStatusInfo: Put a single file to the plugin file system.
|
static int |
FS_STATUS_OP_RENMOV_MULTI
fsStatusInfo: RenMov multiple files, may include subdirs.
|
static int |
FS_STATUS_OP_RENMOV_SINGLE
fsStatusInfo: Rename/Move/Remote copy a single file.
|
static int |
FS_STATUS_OP_SEARCH
fsStatusInfo: Searching for file names only (using
FsFindFirst/Next/Close).
|
static int |
FS_STATUS_OP_SEARCH_TEXT
fsStatusInfo: Searching for file contents (using also FsGetFile() calls).
|
static int |
FS_STATUS_OP_SYNC_DELETE
fsStatusInfo: Synchronize: Deleting files from plugin.
|
static int |
FS_STATUS_OP_SYNC_GET
fsStatusInfo: Synchronize: Downloading files from plugin.
|
static int |
FS_STATUS_OP_SYNC_PUT
fsStatusInfo: Synchronize: Uploading files to plugin.
|
static int |
FS_STATUS_OP_SYNC_SEARCH
fsStatusInfo: Synchronize dirs searches subdirs for info.
|
static int |
FS_STATUS_START
fsStatusInfo: Operation starts (allocate buffers if needed).
|
static int |
HUNDRED_PERCENT
fsSetProgress: one hundred percent progress done.
|
static java.lang.Object |
INVALID_HANDLE_VALUE
error code for fsFindFirst(): An invalid file handle indicates an error.
|
static int |
MSGTYPE_CONNECT
fsLog: Connect to a file system requiring disconnect.
|
static int |
MSGTYPE_CONNECTCOMPLETE
fsLog: unused.
|
static int |
MSGTYPE_DETAILS
fsLog: Not so important messages like directory changing.
|
static int |
MSGTYPE_DISCONNECT
fsLog: Disconnected successfully.
|
static int |
MSGTYPE_IMPORTANTERROR
fsLog: An important error has occured.
|
static int |
MSGTYPE_OPERATIONCOMPLETE
fsLog: An operation other than a file transfer has completed.
|
static int |
MSGTYPE_TRANSFERCOMPLETE
fsLog: A file transfer was completed successfully.
|
static int |
RT_ACCOUNT
fsRequest: Ask for an account (needed for some FTP servers).
|
static int |
RT_MSGOK
fsRequest: Shows MessageBox with OK button.
|
static int |
RT_MSGOKCANCEL
fsRequest: Shows MessageBox with OK/Cancel buttons.
|
static int |
RT_MSGYESNO
fsRequest: Shows MessageBox with Yes/No buttons.
|
static int |
RT_OTHER
fsRequest: The requested string is none of the default types.
|
static int |
RT_PASSWORD
fsRequest: Ask for a password, e.g. for a connection (shows ***).
|
static int |
RT_PASSWORDFIREWALL
fsRequest: Password for a firewall.
|
static int |
RT_TARGETDIR
fsRequest: Asks for a local directory (with browse button).
|
static int |
RT_URL
fsRequest: Asks for an URL.
|
static int |
RT_USERNAME
fsRequest: Ask for the user name, e.g. for a connection.
|
static int |
RT_USERNAMEFIREWALL
fsRequest: User name for a firewall.
|
static int |
SETFLAGS_FIRST_ATTRIBUTE
fsContentSetValue(): First attribute of this file.
|
static int |
SETFLAGS_LAST_ATTRIBUTE
fsContentSetValue(): Last attribute of this file.
|
static int |
SETFLAGS_ONLY_DATE
fsContentSetValue(): Only set the date of the datetime value.
|
| Modifier and Type | Method and Description |
|---|---|
int |
fsContentGetDefaultSortOrder(int fieldIndex)
fsContentGetDefaultSortOrder is called when the user clicks on the
sorting header above the columns.
|
boolean |
fsContentGetDefaultView(java.lang.String viewContents,
java.lang.String viewHeaders,
java.lang.String viewWidths,
java.lang.String viewOptions,
int maxlen)
FsContentGetDefaultView is called to get the default view to which Total
Commander should switch when this file system plugin is entered.
|
int |
fsContentGetSupportedField(int fieldIndex,
java.lang.StringBuffer fieldName,
java.lang.StringBuffer units,
int maxlen)
FsContentGetSupportedField is called to enumerate all supported fields.
|
int |
fsContentGetSupportedFieldFlags(int fieldIndex)
fsContentGetSupportedFieldFlags is called to get various information
about a plugin variable.
|
int |
fsContentGetValue(java.lang.String fileName,
int fieldIndex,
int unitIndex,
FieldValue fieldValue,
int maxlen,
int flags)
fsContentGetValue is called to retrieve the value of a specific field for
a given file, e.g. the date field of a file.
|
void |
fsContentPluginUnloading()
fsContentPluginUnloading is called just before the plugin is unloaded,
e.g. to close buffers, abort operations etc.
|
int |
fsContentSetValue(java.lang.String fileName,
int fieldIndex,
int unitIndex,
int fieldType,
FieldValue fieldValue,
int flags)
fsContentSetValue is called to set the value of a specific field for a
given file, e.g. to change the date field of a file.
|
void |
fsContentStopGetValue(java.lang.String fileName)
fsContentStopGetValue is called to tell a plugin that a directory change
has occurred, and the plugin should stop loading a value.
|
boolean |
fsDeleteFile(java.lang.String remoteName)
FsDeleteFile is called to delete a file from the plugin's file system.
|
boolean |
fsDisconnect(java.lang.String disconnectRoot)
FsDisconnect is called when the user presses the Disconnect button in the
FTP connections toolbar.
|
int |
fsExecuteFile(int mainWin,
java.lang.String remoteName,
java.lang.String verb)
FsExecuteFile is called to execute a file on the plugin's file system, or
show its property sheet.
|
int |
fsExtractCustomIcon(java.lang.String remoteName,
int extractFlags,
java.lang.StringBuffer theIcon)
FsExtractCustomIcon is called when a file/directory is displayed in the
file list.
|
int |
fsFindClose(java.lang.Object handle)
FsFindClose is called to end a FsFindFirst/FsFindNext loop, either after
retrieving all files, or when the user aborts it.
|
java.lang.Object |
fsFindFirst(java.lang.String path,
Win32FindData lastFindData)
FsFindFirst is called to retrieve the first file in a directory of the
plugin's file system.
|
boolean |
fsFindNext(java.lang.Object handle,
Win32FindData findData)
FsFindNext is called to retrieve the next file in a directory of the
plugin's file system.
|
java.lang.String |
fsGetDefRootName(int maxlen)
FsGetDefRootName is called only when the plugin is installed.
|
int |
fsGetFile(java.lang.String remoteName,
java.lang.String localName,
int copyFlags,
RemoteInfo remoteInfo)
FsGetFile is called to transfer a file from the plugin's file system to
the normal file system (drive letters or UNC).
|
boolean |
fsGetLocalName(java.lang.String remoteName,
int maxlen)
FsGetLocalName must not be implemented unless your plugin is a temporary
file panel plugin!
|
int |
fsGetPreviewBitmap(java.lang.String remoteName,
int width,
int height,
java.lang.StringBuffer filename)
FsGetPreviewBitmap is called when a file/directory is displayed in
thumbnail view.
|
int |
fsInit(int pluginNr)
FsInit is called when loading the plugin.
|
boolean |
fsLinksToLocalFiles()
FsLinksToLocalFiles must not be implemented unless your plugin is a
temporary file panel plugin!
|
boolean |
fsMkDir(java.lang.String path)
FsMkDir is called to create a directory on the plugin's file system.
|
int |
fsPutFile(java.lang.String localName,
java.lang.String remoteName,
int copyFlags)
FsPutFile is called to transfer a file from the normal file system (drive
letters or UNC) to the plugin's file system.
|
boolean |
fsRemoveDir(java.lang.String remoteName)
FsRemoveDir is called to remove a directory from the plugin's file
system.
|
int |
fsRenMovFile(java.lang.String oldName,
java.lang.String newName,
boolean move,
boolean overwrite,
RemoteInfo remoteInfo)
FsRenMovFile is called to transfer (copy or move) a file within the
plugin's file system.
|
boolean |
fsSetAttr(java.lang.String remoteName,
int newAttr)
FsSetAttr is called to set the (Windows-Style) file attributes of a
file/dir.
|
void |
fsSetDefaultParams(DefaultParam dps)
FsSetDefaultParams is called immediately after FsInit().
|
boolean |
fsSetTime(java.lang.String remoteName,
FileTime creationTime,
FileTime lastAccessTime,
FileTime lastWriteTime)
FsSetTime is called to set the (Windows-Style) file times of a file/dir.
|
void |
fsStatusInfo(java.lang.String remoteDir,
int infoStartEnd,
int infoOperation)
FsStatusInfo is called just as an information to the plugin that a
certain operation starts or ends.
|
static final java.lang.Object INVALID_HANDLE_VALUE
static final int FS_EXEC_OK
static final int FS_EXEC_ERROR
static final int FS_EXEC_YOURSELF
static final int FS_EXEC_SYMLINK
static final int FS_FILE_OK
static final int FS_FILE_EXISTS
static final int FS_FILE_NOTFOUND
static final int FS_FILE_READERROR
static final int FS_FILE_WRITEERROR
static final int FS_FILE_USERABORT
static final int FS_FILE_NOTSUPPORTED
static final int FS_FILE_EXISTSRESUMEALLOWED
static final int FS_COPYFLAGS_OVERWRITE
static final int FS_COPYFLAGS_RESUME
static final int FS_COPYFLAGS_MOVE
static final int FS_COPYFLAGS_EXISTS_SAMECASE
static final int FS_COPYFLAGS_EXISTS_DIFFERENTCASE
static final int FS_STATUS_START
static final int FS_STATUS_END
static final int FS_STATUS_OP_LIST
static final int FS_STATUS_OP_GET_SINGLE
static final int FS_STATUS_OP_GET_MULTI
static final int FS_STATUS_OP_PUT_SINGLE
static final int FS_STATUS_OP_PUT_MULTI
static final int FS_STATUS_OP_RENMOV_SINGLE
static final int FS_STATUS_OP_RENMOV_MULTI
static final int FS_STATUS_OP_DELETE
static final int FS_STATUS_OP_ATTRIB
static final int FS_STATUS_OP_MKDIR
static final int FS_STATUS_OP_EXEC
static final int FS_STATUS_OP_CALCSIZE
static final int FS_STATUS_OP_SEARCH
static final int FS_STATUS_OP_SEARCH_TEXT
static final int FS_STATUS_OP_SYNC_SEARCH
static final int FS_STATUS_OP_SYNC_GET
static final int FS_STATUS_OP_SYNC_PUT
static final int FS_STATUS_OP_SYNC_DELETE
static final int FS_ICONFLAG_SMALL
static final int FS_ICONFLAG_BACKGROUND
static final int FS_ICON_USEDEFAULT
static final int FS_ICON_EXTRACTED
static final int FS_ICON_EXTRACTED_DESTROY
static final int FS_ICON_DELAYED
static final int HUNDRED_PERCENT
static final int MSGTYPE_CONNECT
static final int MSGTYPE_DISCONNECT
static final int MSGTYPE_DETAILS
static final int MSGTYPE_TRANSFERCOMPLETE
static final int MSGTYPE_CONNECTCOMPLETE
static final int MSGTYPE_IMPORTANTERROR
static final int MSGTYPE_OPERATIONCOMPLETE
static final int RT_OTHER
static final int RT_USERNAME
static final int RT_PASSWORD
static final int RT_ACCOUNT
static final int RT_USERNAMEFIREWALL
static final int RT_PASSWORDFIREWALL
static final int RT_TARGETDIR
static final int RT_URL
static final int RT_MSGOK
static final int RT_MSGYESNO
static final int RT_MSGOKCANCEL
static final int CONTENT_DELAYIFSLOW
static final int CONTFLAGS_EDIT
static final int CONTFLAGS_SUBSTSIZE
static final int CONTFLAGS_SUBSTDATETIME
static final int CONTFLAGS_SUBSTDATE
static final int CONTFLAGS_SUBSTTIME
static final int CONTFLAGS_SUBSTATTRIBUTES
static final int CONTFLAGS_SUBSTATTRIBUTESTR
static final int CONTFLAGS_PASSTHROUGH_SIZE_FLOAT
static final int CONTFLAGS_FIELDEDIT
static final int CONTFLAGS_SUBSTMASK
static final int SETFLAGS_FIRST_ATTRIBUTE
static final int SETFLAGS_LAST_ATTRIBUTE
static final int SETFLAGS_ONLY_DATE
int fsInit(int pluginNr)
pluginNr - Internal number this plugin was given in Total Commander. Has
to be passed as the first parameter in all callback functions
so Wincmd knows which plugin has sent the request.java.lang.Object fsFindFirst(java.lang.String path,
Win32FindData lastFindData)
path - Full path to the directory for which the directory listing has
to be retrieved. Important: no wildcards are passed to the
plugin! All separators will be backslashes, so you will need
to convert them to forward slashes if your file system uses
them! As root, a single backslash is passed to the plugin. The
root items appear in the plugin base directory retrieved by
FsGetDefRootName at installation time. This default root name
is NOT part of the path passed to the plugin! All subdirs are
built from the directory names the plugin returns through
FsFindFirst and FsFindNext, separated by single backslashes,
e.g. \Some server\c:\subdirlastFindData - Contains the file or directory details. Use the
dwFileAttributes field set to FILE_ATTRIBUTE_DIRECTORY to
distinguish files from directories. On Unix systems, you can |
(or) the dwFileAttributes field with 0x80000000 and set the
dwReserved0 parameter to the Unix file mode (permissions).boolean fsFindNext(java.lang.Object handle,
Win32FindData findData)
handle - The object returned by FsFindFirst.findData - Contains the file or directory details. Use the
dwFileAttributes field set to FILE_ATTRIBUTE_DIRECTORY to
distinguish files from directories. On Unix systems, you can |
(or) the dwFileAttributes field with 0x80000000 and set the
dwReserved0 parameter to the Unix file mode (permissions).int fsFindClose(java.lang.Object handle)
handle - The find handle returned by FsFindFirst.java.lang.String fsGetDefRootName(int maxlen)
maxlen - Maximum number of characters (including the final 0) which fit
in the buffer.int fsGetFile(java.lang.String remoteName,
java.lang.String localName,
int copyFlags,
RemoteInfo remoteInfo)
remoteName - Name of the file to be retrieved, with full path. The name
always starts with a backslash, then the names returned by
FsFindFirst/FsFindNext separated by backslashes.localName - Local file name with full path, either with a drive letter or
UNC path (\\Server\Share\filename). The plugin may change the
NAME/EXTENSION of the file (e.g. when file conversion is
done), but not the path!copyFlags - Can be a combination of the following three flags:remoteInfo - This parameter contains information about the remote file
which was previously retrieved via FsFindFirst/FsFindNext: The
size, date/time, and attributes of the remote file. May be
useful to copy the attributes with the file, and for
displaying a progress dialog.int fsPutFile(java.lang.String localName,
java.lang.String remoteName,
int copyFlags)
localName - Local file name with full path, either with a drive letter or
UNC path (\\Server\Share\filename). This file needs to be
uploaded to the plugin's file system.remoteName - Name of the remote file, with full path. The name always
starts with a backslash, then the names returned by
FsFindFirst/FsFindNext separated by backslashes. The plugin
may change the NAME/EXTENSION of the file (e.g. when file
conversion is done), but not the path!copyFlags - Can be a combination of the FS_COPYFLAGS_xxx flagsint fsRenMovFile(java.lang.String oldName,
java.lang.String newName,
boolean move,
boolean overwrite,
RemoteInfo remoteInfo)
oldName - Name of the remote source file, with full path. The name
always starts with a backslash, then the names returned by
FsFindFirst/FsFindNext separated by backslashes.newName - Name of the remote destination file, with full path. The name
always starts with a backslash, then the names returned by
FsFindFirst/FsFindNext separated by backslashes.move - If true, the file needs to be moved to the new location and
name. Many file systems allow to rename/move a file without
actually moving any of its data, only the pointer to it.overwrite - Tells the function whether it should overwrite the target file
or not. See notes below on how this parameter is used.remoteInfo - An instance of class RemoteInfo which contains the parameters
of the file being renamed/moved (not of the target file!). In
TC 5.51, the fields are set as follows for directories:
SizeLow=0, SizeHigh=0xFFFFFFFF.boolean fsDeleteFile(java.lang.String remoteName)
remoteName - RemoteName Name of the file to be deleted, with full path. The
name always starts with a backslash, then the names returned
by FsFindFirst/FsFindNext separated by backslashes.boolean fsRemoveDir(java.lang.String remoteName)
remoteName - Name of the directory to be removed, with full path. The name
always starts with a backslash, then the names returned by
FsFindFirst/FsFindNext separated by backslashes.boolean fsMkDir(java.lang.String path)
path - Name of the directory to be created, with full path. The name
always starts with a backslash, then the names returned by
FsFindFirst/FsFindNext separated by backslashes.int fsExecuteFile(int mainWin,
java.lang.String remoteName,
java.lang.String verb)
mainWin - Parent window which can be used for showing a property sheet.remoteName - Name of the file to be executed, with full path.verb - This can be either "open", "properties", "chmod" or "quote"
(case-insensitive). open: This is called when the user presses
ENTER on a file. There are three ways to handle it: a) For
internal commands like "Add new connection", execute it in the
plugin and return FS_EXEC_OK or FS_EXEC_ERROR b) Let Total
Commander download the file and execute it locally: return
FS_EXEC_YOURSELF c) If the file is a (symbolic) link, set
RemoteName to the location to which the link points (including
the full plugin path), and return FS_EXEC_SYMLINK. Total
Commander will then switch to that directory. You can also
switch to a directory on the local harddisk! To do this,
return a path starting either with a drive letter, or an UNC
location (\\server\share). The maximum allowed length of such
a path is MAX_PATH-1 = 259 characters! properties: Show a
property sheet for the file (optional). Currently not handled
by internal Wincmd functions if FS_EXEC_YOURSELF is returned,
so the plugin needs to do it internally. chmod xxx: The xxx
stands for the new Unix mode (attributes) to be applied to the
file RemoteName. This verb is only used when returning Unix
attributes through FsFindFirst/FsFindNext quote commandline:
Execute the command line entered by the user in the directory
RemoteName . This is called when the user enters a command in
Wincmd's command line, and presses ENTER. This is optional,
and allows to send plugin-specific commands. It's up to the
plugin writer what to support here. If the user entered e.g. a
cd directory command, you can return the new path in
RemoteName (max 259 characters), and give FS_EXEC_SYMLINK as
return value. Return FS_EXEC_OK to cause a refresh (re-read)
of the active panel.boolean fsSetAttr(java.lang.String remoteName,
int newAttr)
remoteName - Name of the file/directory whose attributes have to be setnewAttr - New file attributes. These are a commbination of the following
standard file attributes:
boolean fsSetTime(java.lang.String remoteName,
FileTime creationTime,
FileTime lastAccessTime,
FileTime lastWriteTime)
remoteName - Name of the file/directory whose attributes have to be setcreationTime - Creation time of the file. May be NULL to leave it unchanged.lastAccessTime - Last access time of the file. May be NULL to leave it
unchanged.lastWriteTime - Last write time of the file. May be NULL to leave it
unchanged. If your file system only supports one time, use
this parameter!boolean fsDisconnect(java.lang.String disconnectRoot)
disconnectRoot - This is the root dir which was passed to LogProc when
connecting. It allows the plugin to have serveral open
connections to different file systems (e.g. ftp servers).
Should be either \ (for a single possible connection) or
\Servername (e.g. when having multiple open connections).void fsStatusInfo(java.lang.String remoteDir,
int infoStartEnd,
int infoOperation)
remoteDir - RemoteDir This is the current source directory when the
operation starts. May be used to find out which part of the
file system is affected.infoStartEnd - Information whether the operation starts or ends. Possible
values:
infoOperation - Information of which operaration starts/ends. Possible values:
int fsExtractCustomIcon(java.lang.String remoteName,
int extractFlags,
java.lang.StringBuffer theIcon)
remoteName - This is the full path to the file or directory whose icon is
to be retrieved. When extracting an icon, you can return an
icon name here - this ensures that the icon is only cached
once in the calling program. The returned icon name must not
be longer than MAX_PATH characters (including terminating 0!).
The icon handle must still be returned in TheIcon!extractFlags - Flags for the extract operation. A combination of the
following:
theIcon - Here you need to return the icon handle. Three forms are
supported:
void fsSetDefaultParams(DefaultParam dps)
dps - This structure of type FsDefaultParamStruct currently contains
the version number of the plugin interface, and the suggested
location for the settings file (ini file). It is recommended
to store any plugin-specific information either directly in
that file, or in that directory under a different name. Make
sure to use a unique header when storing data in this file,
because it is shared by other file system plugins! If your
plugin needs more than 1kbyte of data, you should use your own
ini file because ini files are limited to 64k.int fsGetPreviewBitmap(java.lang.String remoteName,
int width,
int height,
java.lang.StringBuffer filename)
remoteName - This is the full path to the file or directory whose bitmap is
to be retrieved. When extracting a bitmap, you can return a
bitmap name here - this ensures that the icon is only cached
once in the calling program. The returned bitmap name must not
be longer than MAX_PATH characters (including terminating 0!).
The bitmap handle must still be returned in ReturnedBitmap!width - The maximum width of the preview bitmap. If your image is
smaller, or has a different side ratio, then you need to
return an image which is smaller than these dimensions! See
notes below!height - The maximum height of the preview bitmap. If your image is
smaller, or has a different side ratio, then you need to
return an image which is smaller than these dimensions! See
notes below!filename - Here you need to return the bitmap handle. Three forms are
supported:
boolean fsLinksToLocalFiles()
boolean fsGetLocalName(java.lang.String remoteName,
int maxlen)
remoteName - In: Full path to the file name in the plugin namespace, e.g.
\somedir\file.ext maxlen - Maximum number of characters you can return in RemoteName,
including the final 0.int fsContentGetSupportedField(int fieldIndex,
java.lang.StringBuffer fieldName,
java.lang.StringBuffer units,
int maxlen)
fieldIndex - The index of the field for which TC requests information.
Starting with 0, the FieldIndex is increased until the plugin
returns an error.fieldName - Here the plugin has to return the name of the field with index
FieldIndex. The field may not contain the following chars: .
(dot) | (vertical line) : (colon). You may return a maximum of
maxlen characters, including the trailing 0.units - When a field supports several units like bytes, kbytes, Mbytes
etc, they need to be specified here in the following form:
bytes|kbytes|Mbytes . The separator is the vertical dash
(Alt+0124). As field names, unit names may not contain a
vertical dash, a dot, or a colon. You may return a maximum of
maxlen characters, including the trailing 0. If the field type
is FT_MULTIPLECHOICE, the plugin needs to return all possible
values here. maxlen - The maximum number of characters, including the trailing 0,
which may be returned in each of the fields.int fsContentGetValue(java.lang.String fileName,
int fieldIndex,
int unitIndex,
FieldValue fieldValue,
int maxlen,
int flags)
fileName - The name of the file for which the plugin needs to return the
field data.fieldIndex - The index of the field for which the content has to be
returned. This is the same index as the FieldIndex value in
fsContentGetSupportedField.unitIndex - The index of the unit used. fieldValue - Here the plugin needs to return the requested data. The data
format depends on the field type:
maxlen - The maximum number of bytes fitting into the FieldValue
variable.flags - Currently only one flag is defined:
void fsContentStopGetValue(java.lang.String fileName)
fileName - The name of the file for which fsContentGetValue is currently
being called.int fsContentGetDefaultSortOrder(int fieldIndex)
fieldIndex - The index of the field for which the sort order should be
returned.void fsContentPluginUnloading()
int fsContentGetSupportedFieldFlags(int fieldIndex)
fieldIndex - The index of the field for which the sort order should be
returned.
int fsContentSetValue(java.lang.String fileName,
int fieldIndex,
int unitIndex,
int fieldType,
FieldValue fieldValue,
int flags)
fileName - The name of the file for which the plugin needs to change the
field data. This is set to NULL to indicate the end of change
attributes (see remarks below).fieldIndex - The index of the field for which the content has to be
returned. This is the same index as the FieldIndex value in
fsContentGetSupportedField. This is set to -1 to signal the
end of change attributes (see remarks below).unitIndex - The index of the unit used. fieldType - The type of data passed to the plugin in FieldValue. This is
the same type as returned by the plugin via
fsContentGetSupportedField. If the plugin returned a different
type via fsContentGetValue, the the FieldType _may_ be of that
type too.fieldValue - Here the plugin receives the data to be changed. The data
format depends on the field type:
flags - Currently the following flags are defined:
boolean fsContentGetDefaultView(java.lang.String viewContents,
java.lang.String viewHeaders,
java.lang.String viewWidths,
java.lang.String viewOptions,
int maxlen)
viewContents - Return the default fields for this plugin here, e.g. [=viewHeaders - Return the default headers shown in the sorting header bar,
e.g. "Size\nDate/Time"viewWidths - Return the default column widths shown in the sorting header
bar, e.g. "148,23,-35,-35" viewOptions - The two values, separated by a vertical line, mean: -
auto-adjust-width, or -1 for no adjust - horizontal scrollbar
flag