Class sh::detailcolumns::DetailColumnCustomAttributes¶
-
class
sh::detailcolumns
::
DetailColumnCustomAttributes
: public sh::filesystem::DetailColumn, public sh::base::Singleton¶ 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