Class sh::filesystemhandlers::GnomeIONetworkFilesystemHandler¶
-
class
sh::filesystemhandlers
::
GnomeIONetworkFilesystemHandler
: public sh::filesystemhandlers::GnomeIOFilesystemHandler, public sh::base::Singleton¶ A filesystem handler for the GIO filesystem ‘Network’ subtree.
Public Functions
Requests a new network node.
Determine a list of subelements in a certain directory.
Determine if a file is regular, or a dir, or a link, …
Determine the size of a file.
Determine the mtime of a file.
Set the mtime of a file.
Determine mime type of a file.
Resolve a link.
Returns if it is allowed to get the content of a certain file.
Get the content of a file.
Returns if it is allowed to create subdirectories in a certain directory.
Create a directory.
Returns if it is allowed to create a link in a certain directory.
Create a link.
Returns if it is allowed to create files in a certain directory.
Creates a file with some content.
It may use
handlertransfer
for some better integration, like cancel support and progress monitoring.
Returns if it is allowed to delete a certain file/directory/link/….
Delete a file/directory/link/…
Returns if it is allowed to rename a certain file, directory, link, … (see renameItem).
Renames an item to another path.
It can be a simple filename change or also changes in the deeper path segments.
Returns a list of actions (see former example) for showing for certain files.
-
bool
requiresResolvedLinks
()¶ Returns if this handler requires to be used by the engine with resolved links.
-
bool
isWellKnownScheme
()¶ Returns if the scheme for this handler is a well known one (which external programs typically would understand).
Configure newly created nodes (e.g. setting another icon or changing the display name).
Fetches the list of available extended attributes for an entry.
Returns the site of value for one extended attribute for an entry.
Returns the value for one extended attribute for an entry.
Sets the value for one extended attribute for an entry.
Removes one extended attributes for an entry.
Returns the custom attributes for an entry.
In contrast to extended attributes, the custom attributes are not directly stored in the filesystem this way, but handle implementation specific aspects (like permissions).
Sets the value for one custom attribute for an entry.
See also getCustomAttributes.
Deletes a directory only of it is empty.
Callback for preparing stuff when the view entered some directory (e.g. for enabling watchers). See also viewLeftDirectory.
Callback for preparing stuff when the view left some directory. See also viewEnteredDirectory.
Helps searching for files.
Override this method with a behavior identical to the default, if a specialized implementation can be much faster than the default one.
Creates a custom gui, which becomes part of the fileview.
-
sh::filesystem::FilesystemModel *
model
()¶ A convenience shortcut to the sh::filesystem::FilesystemModel (a singleton).
-
void
doShutdown
()¶ Executes singleton shutdown.
-
void
shutdown
()¶ Shutdown down this singleton.
-
bool
isAlive
()¶ Returns if this singleton is alive (true until its shutdown begins).
Public Static Functions
-
QString
mountDevice
(QString gvolumeuuid, sh::actions::ActionExecutionInfo *info)¶
-
QString
mountLocation
(QString gurl, sh::actions::ActionExecutionInfo *info)¶
-
QString
unmountLocation
(QString gurl, sh::actions::ActionExecutionInfo *info)¶
-
std::shared_ptr<const sh::filesystem::Eurl>
gurl2eurl
(QString gurl)¶
-
void
logIfError
(void *error)¶
-
void
throwIfError
(void *error)¶
Private Functions
-
GnomeIONetworkFilesystemHandler
()¶