FsContentGetSupportedFieldFlags
FsContentGetSupportedFieldFlags is called to get various information about a plugin variable. It's first called with FieldIndex=-1 to find out whether the plugin supports any special flags at all, and then for each field separately.
Declaration:
int __stdcall FsContentGetSupportedFieldFlags(int FieldIndex);
Description of parameters:
FieldIndex The index of the field for which the sort order should be returned.
-1: Return a combination (or) of all supported flags, e.g. contflags_edit | contflags_substmask
>=0: Return the field-specific flags
Return value:
The function needs to return a combination of the following flags:
contflags_edit The plugin allows to edit (modify) this field via Files - Change attributes. This should only be returned for fields where it makes sense, e.g. a file date.
Only ONE of the following flags: (See description and example under "Note").
contflags_substsize use the file size
contflags_substdatetime use the file date+time (ft_datetime)
contflags_substdate use the file date (fd_date)
contflags_substtime use the file time (fd_time)
contflags_substattributes use the file attributes (numeric)
contflags_substattributestr use the file attribute string in form -a--
contflags_substmask A combination of all above substituion flags. Should be returned for index -1 if the content plugin contains ANY of the substituted fields.
Note:
Returning one of the contflags_subst* flags instructs Total Commander to replace (substitute) the returned variable by the indicated default internal value if this field is displayed outside of the context of the plugin. It may also be used to determine default sort orders.