Namespace sh::filesystemhandlers¶
-
namespace
sh
::
filesystemhandlers
Implementations of filesystem handlers.
Subclasses of sh::filesystem::FilesystemHandler (and possibly some auxiliary stuff). They implement how to access various types of filesystems.
Some special purpose handlers reside outside of this namespace.
-
class
ActionMountGnomeIOLocation
: public sh::actions::ActionActionItem - #include <gnomeiofilesystemhandler.h>
Action for mounting a GIO location.
Public Functions
Constructed only internally.
-
void
execute
() Executes this action.
-
void
execute
(sh::actions::ActionExecutionInfo *info) Executes this action.
-
QKeySequence
shortcuthint
() Returns the keyboard shortcut for triggering this action.
-
bool
shortcuthintTriggersOnCurrentDirectory
() Checks if using the keyboard shortcut shall trigger the action on the current directory (or on the entry selection).
-
void
setShortcuthint
(QKeySequence shortcut, bool triggersOnCurrentDirectory = false) Sets the keyboard shortcut for triggering this action.
-
QString
text
() Returns the displayed text for this action.
-
QString
icon
() Returns the icon for this action.
-
bool
enabled
() Checks if this action is enabled.
-
bool
isChecked
() Checks if this action is checked (has a cross in the ui).
-
bool
isCheckable
() Checks if this action is checkable (can have a cross in the ui).
-
int
defaultActionPrecedence
() const Returns the precedence for becoming the default action of a parent submenu.
This e.g. leads to a bold label.
The action with the highest value becomes the default. Only values >0 will be considered. See ActionDefaultPrecedenceValues for reference values.
-
void
setText
(QString text) Sets the displayed text.
-
void
setIcon
(QString icon) Sets the icon.
-
void
setEnabled
(bool enabled) Sets if the item is enabled.
-
void
setChecked
(bool checked) Sets if the item is checked (has a cross in the ui).
-
void
setVisible
(bool visible) Sets the visibility of this item.
-
bool
visible
() Checks the visibility of this item (non-recursively).
-
std::weak_ptr<AbstractActionItem>
parentAction
() Returns the parent action, if it is added to a container.
Sets the parent action. .
-
void
initializeAsync
(std::function<void()> oninitialized = 0) Asynchonously initializes the action.
-
void
initializeSync
() Synchonously initializes the action.
-
bool
isInitialized
() Checks if this action is initialized.
-
bool
isInitializing
() Checks if this action is initializing.
Signals
-
void
changed
() Emits when some data changed.
Public Static Functions
-
void
doInitialize
()
-
void
doShutdown
()
-
class
ActionMountNetworkGnomeIOLocation
: public sh::actions::ActionActionItem - #include <gnomeionetworkfilesystemhandler.h>
Action for mounting a GIO network location.
Public Functions
-
ActionMountNetworkGnomeIOLocation
() Constructed only internally.
-
void
execute
() Executes this action.
-
void
execute
(sh::actions::ActionExecutionInfo *info) Executes this action.
-
QKeySequence
shortcuthint
() Returns the keyboard shortcut for triggering this action.
-
bool
shortcuthintTriggersOnCurrentDirectory
() Checks if using the keyboard shortcut shall trigger the action on the current directory (or on the entry selection).
-
void
setShortcuthint
(QKeySequence shortcut, bool triggersOnCurrentDirectory = false) Sets the keyboard shortcut for triggering this action.
-
QString
text
() Returns the displayed text for this action.
-
QString
icon
() Returns the icon for this action.
-
bool
enabled
() Checks if this action is enabled.
-
bool
isChecked
() Checks if this action is checked (has a cross in the ui).
-
bool
isCheckable
() Checks if this action is checkable (can have a cross in the ui).
-
int
defaultActionPrecedence
() const Returns the precedence for becoming the default action of a parent submenu.
This e.g. leads to a bold label.
The action with the highest value becomes the default. Only values >0 will be considered. See ActionDefaultPrecedenceValues for reference values.
-
void
setText
(QString text) Sets the displayed text.
-
void
setIcon
(QString icon) Sets the icon.
-
void
setEnabled
(bool enabled) Sets if the item is enabled.
-
void
setChecked
(bool checked) Sets if the item is checked (has a cross in the ui).
-
void
setVisible
(bool visible) Sets the visibility of this item.
-
bool
visible
() Checks the visibility of this item (non-recursively).
-
std::weak_ptr<AbstractActionItem>
parentAction
() Returns the parent action, if it is added to a container.
Sets the parent action. .
-
void
initializeAsync
(std::function<void()> oninitialized = 0) Asynchonously initializes the action.
-
void
initializeSync
() Synchonously initializes the action.
-
bool
isInitialized
() Checks if this action is initialized.
-
bool
isInitializing
() Checks if this action is initializing.
Signals
-
void
changed
() Emits when some data changed.
-
-
class
ActionUnmountGnomeIOLocation
: public sh::actions::ActionActionItem - #include <gnomeiofilesystemhandler.h>
Action for unmounting a GIO location.
Public Functions
Constructed only internally.
-
void
execute
() Executes this action.
-
void
execute
(sh::actions::ActionExecutionInfo *info) Executes this action.
-
QKeySequence
shortcuthint
() Returns the keyboard shortcut for triggering this action.
-
bool
shortcuthintTriggersOnCurrentDirectory
() Checks if using the keyboard shortcut shall trigger the action on the current directory (or on the entry selection).
-
void
setShortcuthint
(QKeySequence shortcut, bool triggersOnCurrentDirectory = false) Sets the keyboard shortcut for triggering this action.
-
QString
text
() Returns the displayed text for this action.
-
QString
icon
() Returns the icon for this action.
-
bool
enabled
() Checks if this action is enabled.
-
bool
isChecked
() Checks if this action is checked (has a cross in the ui).
-
bool
isCheckable
() Checks if this action is checkable (can have a cross in the ui).
-
int
defaultActionPrecedence
() const Returns the precedence for becoming the default action of a parent submenu.
This e.g. leads to a bold label.
The action with the highest value becomes the default. Only values >0 will be considered. See ActionDefaultPrecedenceValues for reference values.
-
void
setText
(QString text) Sets the displayed text.
-
void
setIcon
(QString icon) Sets the icon.
-
void
setEnabled
(bool enabled) Sets if the item is enabled.
-
void
setChecked
(bool checked) Sets if the item is checked (has a cross in the ui).
-
void
setVisible
(bool visible) Sets the visibility of this item.
-
bool
visible
() Checks the visibility of this item (non-recursively).
-
std::weak_ptr<AbstractActionItem>
parentAction
() Returns the parent action, if it is added to a container.
Sets the parent action. .
-
void
initializeAsync
(std::function<void()> oninitialized = 0) Asynchonously initializes the action.
-
void
initializeSync
() Synchonously initializes the action.
-
bool
isInitialized
() Checks if this action is initialized.
-
bool
isInitializing
() Checks if this action is initializing.
Signals
-
void
changed
() Emits when some data changed.
Public Static Functions
-
void
doInitialize
()
-
void
doShutdown
()
-
class
ArchiveFilesystemHandler
: public sh::filesystem::FilesystemHandler - #include <archivefilesystemhandler.h>
A filesystem handler for archive files of some formats.
This implementation uses process calls to some external utility tools.
Public Functions
-
ArchiveFilesystemHandler
(sh::filesystem::FilesystemModel *model)
Determine a list of subelements in a certain directory.
Configure newly created nodes (e.g. setting another icon or changing the display name).
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.
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.
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/…
Deletes a directory only of it is empty.
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.
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.
-
bool
isWellKnownScheme
() Returns if the scheme for this handler is a well known one (which external programs typically would understand).
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).
Public Static Functions
-
void
doInitialize
()
-
void
doShutdown
()
-
-
class
GnomeIODevicesFilesystemHandler
: public sh::filesystemhandlers::GnomeIOFilesystemHandler, public sh::base::Singleton - #include <gnomeiodevicesfilesystemhandler.h>
A filesystem handler for the GIO filesystem ‘Devices’ subtree.
Public Functions
-
~GnomeIODevicesFilesystemHandler
()
-
void
refresh
() Refreshes the device list.
Requests a new device 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
-
GnomeIODevicesFilesystemHandler
()
Friends
- friend class ActionMount
-
-
class
GnomeIOFilesystemHandler
: public sh::filesystem::FilesystemHandler - #include <gnomeiofilesystemhandler.h>
A filesystem handler for GIO filesystem parts.
This is the abstract base class.
Subclassed by sh::filesystemhandlers::GnomeIODevicesFilesystemHandler, sh::filesystemhandlers::GnomeIOGenericFilesystemHandler, sh::filesystemhandlers::GnomeIONetworkFilesystemHandler, sh::filesystemhandlers::GnomeIOSmbFilesystemHandler
Public Functions
-
GnomeIOFilesystemHandler
()
-
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).
Determine a list of subelements in a certain directory.
Configure newly created nodes (e.g. setting another icon or changing the display name).
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.
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.
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/…
Deletes a directory only of it is empty.
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.
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).
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)
-
class
MountOperations
- #include <gnomeiofilesystemhandler.h>
Public Static Functions
-
void *
createMountOperation
(sh::actions::ActionExecutionInfo *info, QString address, MountOperationsCallbackData **opdata)
-
void
deleteMountOperation
(MountOperationsCallbackData *opdata)
Public Static Attributes
-
QHash<size_t, MountOperationsCallbackData*>
callbackdata
-
size_t
callbackdataindex
-
QMutex
callbackdatamutex
-
void *
-
struct
MountOperationsCallbackData
- #include <gnomeiofilesystemhandler.h>
Public Functions
-
MountOperationsCallbackData
(sh::actions::ActionExecutionInfo *info, size_t index, void *mountoperation, QString address)
Public Members
-
sh::actions::ActionExecutionInfo *
info
-
size_t
index
-
void *
mountoperation
-
QString
address
-
-
-
class
GnomeIOGenericFilesystemHandler
: public sh::filesystemhandlers::GnomeIOFilesystemHandler - #include <gnomeiogenericfilesystemhandler.h>
A filesystem handler for common/unspecial GIO filesystem parts.
This is a generic non-abstract implementation without special behavior.
Public Functions
-
GnomeIOGenericFilesystemHandler
(sh::filesystem::FilesystemModel *model)
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).
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)
-
-
class
GnomeIONetworkFilesystemHandler
: public sh::filesystemhandlers::GnomeIOFilesystemHandler, public sh::base::Singleton - #include <gnomeionetworkfilesystemhandler.h>
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
()
-
class
GnomeIOSmbFilesystemHandler
: public sh::filesystemhandlers::GnomeIOFilesystemHandler, public sh::base::Singleton - #include <gnomeiosmbfilesystemhandler.h>
A filesystem handler for the GIO filesystem ‘smb’ subtrees (in ‘Network’).
Public Functions
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
-
GnomeIOSmbFilesystemHandler
()
-
class
LocalFilesystemHandler
: public sh::filesystem::FilesystemHandler, public sh::base::Singleton - #include <localfilesystemhandler.h>
A filesystem handler for the local filesystem.
Subclassed by sh::filesystemhandlers::WindowsNetworkFilesystemHandler
Public Functions
Configure newly created nodes (e.g. setting another icon or changing the display name).
-
bool
requiresResolvedLinks
() override Returns if this handler requires to be used by the engine with resolved links.
-
bool
isWellKnownScheme
() override Returns if the scheme for this handler is a well known one (which external programs typically would understand).
-
std::shared_ptr<const sh::filesystem::Eurl>
localToEurl
(const QString local)
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.
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.
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/…
Deletes a directory only of it is empty.
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.
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).
-
class
SharcFilesystemHandler
: public sh::filesystem::FilesystemHandler, public sh::base::Singleton - #include <sharcfilesystemhandler.h>
A filesystem handler for the sharc archives.
This is a brutally easy and inefficient archive format which exists mostly for testing.
Public Functions
Determine a list of subelements in a certain directory.
Configure newly created nodes (e.g. setting another icon or changing the display name).
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.
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.
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/…
Deletes a directory only of it is empty.
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.
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.
-
bool
isWellKnownScheme
() Returns if the scheme for this handler is a well known one (which external programs typically would understand).
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
-
std::shared_ptr<const filesystem::Eurl>
localToEurl
(const QString local)
Private Functions
-
SharcFilesystemHandler
()
-
class
WindowsNetworkFilesystemHandler
: public sh::filesystemhandlers::LocalFilesystemHandler - #include <windowsnetworkfilesystemhandler.h>
Public Functions
Determine a list of subelements in a certain directory.
Configure newly created nodes (e.g. setting another icon or changing the display name).
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.
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.
-
bool
requiresResolvedLinks
() override Returns if this handler requires to be used by the engine with resolved links.
-
bool
isWellKnownScheme
() override Returns if the scheme for this handler is a well known one (which external programs typically would understand).
-
std::shared_ptr<const sh::filesystem::Eurl>
localToEurl
(const QString local)
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).
-
class