sys::fsh
service
The sys::fsh
service is in charge of handling high-level filesystem operations, such as file associations and thumbnails generation.
Methods
0x0001
REGISTER_OPENER
Register an application as an opener for a list of file types.
Arguments:
- File extensions to handle as a delimited list of delimited strings
Return value:
None
Errors:
0x1000
: One of the provided extensions is empty0x1001
: At least one of the provided extensions is reserved to the system0x3000
: Client does not expose a file opening service0x3001
: Client already handles at least one of the provided extensions
0x0002
UNREGISTER_OPENER
Unregister an application as an opener for a list of file types.
Argument:
- File extensions to unhandle as a delimited list of delimited strings
Return value:
None
Errors:
0x1001
: One of the provided extensions is empty0x3000
: Client does not expose a file opening service0x3001
: Client does not currently handle at least one of the provided extensions
0x0003
LIST_OPENERS
List the file openers associated to a specific type of items.
The list is not ordered, it's up to the file manager to determine the display order if multiple openers are found.
Arguments:
- Filesystem item's extension as a delimited string
Return value:
- Delimited list of ANID (8 bytes each)
Errors:
0x3000
: Client does not expose a file opening service
0x1000
CHECK_ITEM_THUMBNAIL_CACHE
Check if a cached thumbnail exists for a given filesystem item to determine if another should be generated or not.
The cache policy is determined using internal criterias.
Arguments:
Return value:
- Presence (1 byte):
0x01
if a thumbnail is present,0x00
else
If a thumbnail is present, this is followed by:
Errors:
0x3000
: Client is not a file manager service0x3001
: Unknown FSID0x3002
: Unknown FEID
0x1001
CACHE_ITEM_THUMBNAIL
Write a filesystem item's thumbnail in the cache.
If a thumbnail already exists in cache, it will be replaced by the new one.
The cache policy is determined using internal criterias.
Arguments:
- FSID (8 bytes)
- FEID (8 bytes)
- Thumbnail as a bitmap image
Return value:
- Thumbnail TFEID (8 bytes)
Errors:
0x1000
: Invalid bitmap data0x3000
: Client is not a file manager service0x3001
: Unknown FSID0x3002
: Unknown FEID
0x1100
CHECK_ITEM_PREVIEW_CACHE
Check if a cached preview exists for a given filesystem item to determine if another should be generated or not.
The cache policy is determined using internal criterias.
Arguments:
Return value:
- Presence (1 byte):
0x01
if a preview is present,0x00
else
If a preview is present, this is followed by:
Errors:
0x3000
: Client is not a file manager service0x3001
: Unknown FSID0x3002
: Unknown FEID
0x1101
CACHE_ITEM_PREVIEW
Write a filesystem item's preview in the cache.
If a preview already exists in cache, it will be replaced by the new one.
The cache policy is determined using internal criterias.
Arguments:
- FSID (8 bytes)
- FEID (8 bytes)
- Preview as a bitmap image
Return value:
- Preview TFEID (8 bytes)
Errors:
0x1000
: Invalid bitmap data0x3000
: Client is not a file manager service0x3001
: Unknown FSID0x3002
: Unknown FEID