@ -24,6 +24,7 @@
# include <sys/stat.h>
# include <tqptrlist.h>
# include <tdestringmatcher.h>
# include <tdeio/global.h>
# include <kurl.h>
# include <kacl.h>
@ -229,15 +230,32 @@ public:
bool isWritable ( ) const ;
/**
* Checks whether the file is hidden .
* @ return true if the file is hidden .
* Sets pointer to object that encapsulates criteria for determining
* whether or not a filesystem entity is hidden based on characteristics
* of its name . Pointer is stored in @ property m_pHiddenFileMatcher .
*/
bool isHidden ( ) const ;
void setHiddenFileMatcher ( TDEHiddenFileMatcher * hiddenFileMatcher ) ;
/**
* Returns the link destination if isLink ( ) = = true .
* @ return the link destination . TQString : : null if the item is not a link
* Sets @ property m_bCheckHidden to true , thereby forcing next call
* to method isHidden ( ) to call method checkHiddenByMatcher ( ) instead
* of simply relying on previously cached result .
*/
void reEvaluateHidden ( ) ;
/**
Checks whether or not the current filesystem object is " hidden " by
calling the match ( ) method of the TDEHiddenFileMatcher object stored
in @ property m_pHiddenFileMatcher . Result of this check is cached in
@ property m_bHiddenByMatcher .
*/
void checkHiddenByMatcher ( ) ;
/**
Checks whether or not the current filesystem object is " hidden " .
*/
bool isHidden ( ) const ;
TQString linkDest ( ) const ;
/**
@ -667,9 +685,31 @@ private:
bool m_bMimeTypeKnown : 1 ;
// Auto: check leading dot .
// Auto: always check if hidden .
enum { Auto , Hidden , Shown } m_hidden : 3 ;
/**
* If true , next call to isHidden ( ) will force a full ( re - ) evaluation of
* whether or not a filesystem object is hidden based on criteria stored
* in the TDEHiddenFileMatcher object @ property m_pHiddenFileMatcher . Can
* be set to true by external callers using method reEvaluateHidden ( ) .
*/
mutable bool m_bCheckHidden : 1 ;
/**
* Caches result of most recent call to the TDEHiddenFileMatcher object
* @ property m_pHiddenFileMatcher . True if file is " hidden " ( i . e . hide - able ) ,
* false otherwise .
*/
mutable bool m_bHiddenByMatcher : 1 ;
/**
* Pointer to object that encapsulates criteria for determining whether
* or not a this filesystem entity is hidden based on characteristics of
* its name . This property is set by method setHiddenFileMatcher ( ) .
*/
mutable TDEHiddenFileMatcher * m_pHiddenFileMatcher ;
// For special case like link to dirs over FTP
TQString m_guessedMimeType ;
mutable TQString m_access ;