Namespace sh::detailcolumns¶
-
namespace
sh
::
detailcolumns
Implementations of detail columns.
Subclasses of sh::filesystem::DetailColumn (and possibly some auxiliary stuff). They are shown in the fileviews and can be queried in code.
-
class
DetailColumnCustomAttributes
: public sh::filesystem::DetailColumn, public sh::base::Singleton - #include <detailcolumncustomattributes.h>
Detail column which determines the custom attributes.
Custom attributes are filesystem handler specific values about files (like permissions).
Public Functions
-
QString
name
() The internal unique name.
-
QString
displayName
() The display name.
Checks if a value for this detail is available for one given node.
Returns the value for this detail for one given node.
- Parameters
ignoreAged
: If no value should be returned which is older than the last request (not useful for nearly all cases).
Returns the stringified value for this details for one given node considering the configuration of a view.
Requests to determine the value for this detail for one given node. Blocks until the value is available. Get it with the value method afterwards.
-
bool
sort_doTypediff
() If sorting should separate files and directories.
The sorting order.
-
uint
displayIndex
() Controls which place this column should get in the user interface.
Returns a freshly determined value for this column and the given node. It neither asks nor populates any caches or storages.
-
int
defaultWidth
()
-
bool
isRightAligned
()
Applies the detail value to a given eurl (without using any caches).
Used for transferring some details when a file transfer occurs.
Optionally implement the one of the applyValueBy… methods and register the instance with sh::filesystem::FilesystemOperation::addTransferrableDetailColumn. For performance reasons, you should decide to implement applyValueByEurl.
Applies the detail value to a given node (without using any caches).
Used for transferring some details when a file transfer occurs.
Optionally implement the one of the applyValueBy… methods and register the instance with sh::filesystem::FilesystemOperation::addTransferrableDetailColumn. For performance reasons, you should decide to implement applyValueByEurl.
-
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
-
QMap<QString, QString>
getMapByValue
(QVariant val) Converts the QVariant(QString) from native detail column representation to a QString/QString map.
-
QVariant
VALUE_UNAVAILABLE
() A special value expressing that the value is not yet available.
-
std::shared_ptr<DetailColumn>
findKnownDetailColumn
(QString name)
Public Static Attributes
-
const uint
DISPLAYINDEX_CORE
= 10000
-
const uint
DISPLAYINDEX_INTERESTING
= 20000
-
const uint
DISPLAYINDEX_EXOTIC
= 30000
Private Functions
-
DetailColumnCustomAttributes
()
-
QString
-
class
DetailColumnDirectSymlinkTarget
: public sh::filesystem::DetailColumn, public sh::base::Singleton - #include <detailcolumndirectsymlinktarget.h>
Detail column which determines the direct symlink target (by resolving a link once).
Public Functions
-
QString
name
() The internal unique name.
-
QString
displayName
() The display name.
Checks if a value for this detail is available for one given node.
Returns the value for this detail for one given node.
- Parameters
ignoreAged
: If no value should be returned which is older than the last request (not useful for nearly all cases).
Returns the stringified value for this details for one given node considering the configuration of a view.
Requests to determine the value for this detail for one given node. Blocks until the value is available. Get it with the value method afterwards.
-
bool
sort_doTypediff
() If sorting should separate files and directories.
The sorting order.
-
uint
displayIndex
() Controls which place this column should get in the user interface.
Returns a freshly determined value for this column and the given node. It neither asks nor populates any caches or storages.
-
int
defaultWidth
()
-
bool
isRightAligned
()
Applies the detail value to a given eurl (without using any caches).
Used for transferring some details when a file transfer occurs.
Optionally implement the one of the applyValueBy… methods and register the instance with sh::filesystem::FilesystemOperation::addTransferrableDetailColumn. For performance reasons, you should decide to implement applyValueByEurl.
Applies the detail value to a given node (without using any caches).
Used for transferring some details when a file transfer occurs.
Optionally implement the one of the applyValueBy… methods and register the instance with sh::filesystem::FilesystemOperation::addTransferrableDetailColumn. For performance reasons, you should decide to implement applyValueByEurl.
-
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
-
QVariant
VALUE_UNAVAILABLE
() A special value expressing that the value is not yet available.
-
std::shared_ptr<DetailColumn>
findKnownDetailColumn
(QString name)
Public Static Attributes
-
const uint
DISPLAYINDEX_CORE
= 10000
-
const uint
DISPLAYINDEX_INTERESTING
= 20000
-
const uint
DISPLAYINDEX_EXOTIC
= 30000
Private Functions
-
DetailColumnDirectSymlinkTarget
()
-
QString
-
class
DetailColumnExtendedAttributes
: public sh::filesystem::DetailColumn, public sh::base::Singleton - #include <detailcolumnextendedattributes.h>
Detail column which determines the extended attributes.
Extended attributes are a feature of some filesystems.
Public Functions
-
QString
name
() The internal unique name.
-
QString
displayName
() The display name.
Checks if a value for this detail is available for one given node.
Returns the value for this detail for one given node.
- Parameters
ignoreAged
: If no value should be returned which is older than the last request (not useful for nearly all cases).
Returns the stringified value for this details for one given node considering the configuration of a view.
Requests to determine the value for this detail for one given node. Blocks until the value is available. Get it with the value method afterwards.
-
bool
sort_doTypediff
() If sorting should separate files and directories.
The sorting order.
-
uint
displayIndex
() Controls which place this column should get in the user interface.
Returns a freshly determined value for this column and the given node. It neither asks nor populates any caches or storages.
-
int
defaultWidth
()
-
bool
isRightAligned
()
Applies the detail value to a given eurl (without using any caches).
Used for transferring some details when a file transfer occurs.
Optionally implement the one of the applyValueBy… methods and register the instance with sh::filesystem::FilesystemOperation::addTransferrableDetailColumn. For performance reasons, you should decide to implement applyValueByEurl.
Applies the detail value to a given node (without using any caches).
Used for transferring some details when a file transfer occurs.
Optionally implement the one of the applyValueBy… methods and register the instance with sh::filesystem::FilesystemOperation::addTransferrableDetailColumn. For performance reasons, you should decide to implement applyValueByEurl.
-
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
-
QMap<QString, QByteArray>
getMapByValue
(QVariant val) Converts the QVariant(QString) from native detail column representation to a QString/QString map.
-
QVariant
VALUE_UNAVAILABLE
() A special value expressing that the value is not yet available.
-
std::shared_ptr<DetailColumn>
findKnownDetailColumn
(QString name)
Public Static Attributes
-
const uint
DISPLAYINDEX_CORE
= 10000
-
const uint
DISPLAYINDEX_INTERESTING
= 20000
-
const uint
DISPLAYINDEX_EXOTIC
= 30000
Private Functions
-
DetailColumnExtendedAttributes
()
-
QString
-
class
DetailColumnFilesize
: public sh::filesystem::DetailColumn, public sh::base::Singleton - #include <detailcolumnfilesize.h>
Detail column which determines the file size.
Public Functions
-
QString
name
() The internal unique name.
-
QString
displayName
() The display name.
Checks if a value for this detail is available for one given node.
Returns the value for this detail for one given node.
- Parameters
ignoreAged
: If no value should be returned which is older than the last request (not useful for nearly all cases).
-
bool
isVisible
() If this detail shall be a visible column in the view.
Requests to determine the value for this detail for one given node. Blocks until the value is available. Get it with the value method afterwards.
-
bool
sort_doTypediff
() If sorting should separate files and directories.
The sorting order.
-
uint
displayIndex
() Controls which place this column should get in the user interface.
Returns a freshly determined value for this column and the given node. It neither asks nor populates any caches or storages.
-
int
defaultWidth
()
-
bool
isRightAligned
()
Applies the detail value to a given eurl (without using any caches).
Used for transferring some details when a file transfer occurs.
Optionally implement the one of the applyValueBy… methods and register the instance with sh::filesystem::FilesystemOperation::addTransferrableDetailColumn. For performance reasons, you should decide to implement applyValueByEurl.
Applies the detail value to a given node (without using any caches).
Used for transferring some details when a file transfer occurs.
Optionally implement the one of the applyValueBy… methods and register the instance with sh::filesystem::FilesystemOperation::addTransferrableDetailColumn. For performance reasons, you should decide to implement applyValueByEurl.
-
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
-
QVariant
VALUE_UNAVAILABLE
() A special value expressing that the value is not yet available.
-
std::shared_ptr<DetailColumn>
findKnownDetailColumn
(QString name)
Public Static Attributes
-
const uint
DISPLAYINDEX_CORE
= 10000
-
const uint
DISPLAYINDEX_INTERESTING
= 20000
-
const uint
DISPLAYINDEX_EXOTIC
= 30000
Private Functions
-
DetailColumnFilesize
()
-
QString
-
class
DetailColumnMimetype
: public sh::filesystem::DetailColumn, public sh::base::Singleton - #include <detailcolumnmimetype.h>
Detail column which determines the file’s mimetype.
Public Functions
-
QString
name
() The internal unique name.
-
QString
displayName
() The display name.
Checks if a value for this detail is available for one given node.
Returns the value for this detail for one given node.
- Parameters
ignoreAged
: If no value should be returned which is older than the last request (not useful for nearly all cases).
-
bool
isVisible
() If this detail shall be a visible column in the view.
Requests to determine the value for this detail for one given node. Blocks until the value is available. Get it with the value method afterwards.
-
bool
sort_doTypediff
() If sorting should separate files and directories.
The sorting order.
-
uint
displayIndex
() Controls which place this column should get in the user interface.
Returns a freshly determined value for this column and the given node. It neither asks nor populates any caches or storages.
-
int
defaultWidth
()
-
bool
isRightAligned
()
Applies the detail value to a given eurl (without using any caches).
Used for transferring some details when a file transfer occurs.
Optionally implement the one of the applyValueBy… methods and register the instance with sh::filesystem::FilesystemOperation::addTransferrableDetailColumn. For performance reasons, you should decide to implement applyValueByEurl.
Applies the detail value to a given node (without using any caches).
Used for transferring some details when a file transfer occurs.
Optionally implement the one of the applyValueBy… methods and register the instance with sh::filesystem::FilesystemOperation::addTransferrableDetailColumn. For performance reasons, you should decide to implement applyValueByEurl.
-
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
-
QVariant
VALUE_UNAVAILABLE
() A special value expressing that the value is not yet available.
-
std::shared_ptr<DetailColumn>
findKnownDetailColumn
(QString name)
Public Static Attributes
-
const uint
DISPLAYINDEX_CORE
= 10000
-
const uint
DISPLAYINDEX_INTERESTING
= 20000
-
const uint
DISPLAYINDEX_EXOTIC
= 30000
Private Functions
-
DetailColumnMimetype
()
-
QString
-
class
DetailColumnMtime
: public sh::filesystem::DetailColumn, public sh::base::Singleton - #include <detailcolumnmtime.h>
Detail column which determines the file’s modification time.
Public Functions
-
QString
name
() The internal unique name.
-
QString
displayName
() The display name.
Checks if a value for this detail is available for one given node.
Returns the value for this detail for one given node.
- Parameters
ignoreAged
: If no value should be returned which is older than the last request (not useful for nearly all cases).
-
bool
isVisible
() If this detail shall be a visible column in the view.
Requests to determine the value for this detail for one given node. Blocks until the value is available. Get it with the value method afterwards.
-
bool
sort_doTypediff
() If sorting should separate files and directories.
The sorting order.
-
uint
displayIndex
() Controls which place this column should get in the user interface.
Returns a freshly determined value for this column and the given node. It neither asks nor populates any caches or storages.
-
int
defaultWidth
()
-
bool
isRightAligned
()
Applies the detail value to a given eurl (without using any caches).
Used for transferring some details when a file transfer occurs.
Optionally implement the one of the applyValueBy… methods and register the instance with sh::filesystem::FilesystemOperation::addTransferrableDetailColumn. For performance reasons, you should decide to implement applyValueByEurl.
Applies the detail value to a given node (without using any caches).
Used for transferring some details when a file transfer occurs.
Optionally implement the one of the applyValueBy… methods and register the instance with sh::filesystem::FilesystemOperation::addTransferrableDetailColumn. For performance reasons, you should decide to implement applyValueByEurl.
-
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
-
QVariant
VALUE_UNAVAILABLE
() A special value expressing that the value is not yet available.
-
std::shared_ptr<DetailColumn>
findKnownDetailColumn
(QString name)
Public Static Attributes
-
const uint
DISPLAYINDEX_CORE
= 10000
-
const uint
DISPLAYINDEX_INTERESTING
= 20000
-
const uint
DISPLAYINDEX_EXOTIC
= 30000
Private Functions
-
DetailColumnMtime
()
-
QString
-
class
DetailColumnResolvedSymlink
: public sh::filesystem::DetailColumn, public sh::base::Singleton - #include <detailcolumnresolvedsymlink.h>
Detail column which determines the symlink target (by resolving links recursively).
This detail column has some active behavior. It informs the filesystem model about the ‘buddy nodes’.
Public Functions
-
QString
name
() The internal unique name.
-
QString
displayName
() The display name.
Checks if a value for this detail is available for one given node.
Returns the value for this detail for one given node.
- Parameters
ignoreAged
: If no value should be returned which is older than the last request (not useful for nearly all cases).
Requests to determine the value for this detail for one given node. Blocks until the value is available. Get it with the value method afterwards.
-
bool
sort_doTypediff
() If sorting should separate files and directories.
The sorting order.
-
uint
displayIndex
() Controls which place this column should get in the user interface.
Returns a freshly determined value for this column and the given node. It neither asks nor populates any caches or storages.
-
int
defaultWidth
()
-
bool
isRightAligned
()
Applies the detail value to a given eurl (without using any caches).
Used for transferring some details when a file transfer occurs.
Optionally implement the one of the applyValueBy… methods and register the instance with sh::filesystem::FilesystemOperation::addTransferrableDetailColumn. For performance reasons, you should decide to implement applyValueByEurl.
Applies the detail value to a given node (without using any caches).
Used for transferring some details when a file transfer occurs.
Optionally implement the one of the applyValueBy… methods and register the instance with sh::filesystem::FilesystemOperation::addTransferrableDetailColumn. For performance reasons, you should decide to implement applyValueByEurl.
-
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
-
QVariant
VALUE_UNAVAILABLE
() A special value expressing that the value is not yet available.
-
std::shared_ptr<DetailColumn>
findKnownDetailColumn
(QString name)
Public Static Attributes
-
const uint
DISPLAYINDEX_CORE
= 10000
-
const uint
DISPLAYINDEX_INTERESTING
= 20000
-
const uint
DISPLAYINDEX_EXOTIC
= 30000
Private Functions
-
DetailColumnResolvedSymlink
()
-
QString
-
class