diff options
author | Philippe Mavridis <philippe.mavridis@yandex.com> | 2025-06-24 16:52:05 +0300 |
---|---|---|
committer | Philippe Mavridis <philippe.mavridis@yandex.com> | 2025-08-03 12:48:27 +0300 |
commit | 05da60e3b03b35a1f7aa537be39376350225e936 (patch) | |
tree | a54a6e6a7ade33be4156848b228447d4993f5446 /tdeioslave/file/file.h | |
parent | 2e76346c68e5c1db6b6058014c024bb70fec5e34 (diff) | |
download | tdelibs-feat/extended-attributes.tar.gz tdelibs-feat/extended-attributes.zip |
Add basic extended attributes supportfeat/extended-attributes
This commit adds extended attributes support to TDEIO, UDS, tdeio_file and a read-write plugin for the file properties dialog.
It also adds attribute display support to TDEFileItem, used by KDesktop and Konqueror to show file tooltips.
Signed-off-by: Philippe Mavridis <philippe.mavridis@yandex.com>
Diffstat (limited to 'tdeioslave/file/file.h')
-rw-r--r-- | tdeioslave/file/file.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/tdeioslave/file/file.h b/tdeioslave/file/file.h index 04a6ed225..5ebde9e7c 100644 --- a/tdeioslave/file/file.h +++ b/tdeioslave/file/file.h @@ -62,6 +62,13 @@ public: virtual void mkdir( const KURL& url, int permissions ); virtual void chmod( const KURL& url, int permissions ); virtual void del( const KURL& url, bool isfile); + virtual void listAttr( const KURL& url, const TQCString &ns ); + virtual void readAttr( const KURL& url, const TQCString &ns, + const TQCString& attr ); + virtual void writeAttr( const KURL& url, const TQCString &ns, + const TQCString& attr, const TQCString& value ); + virtual void removeAttr( const KURL& url, const TQCString &ns, + const TQCString& attr ); /** * Special commands supported by this slave: @@ -81,10 +88,10 @@ protected slots: protected: - bool createUDSEntry( const TQString & filename, const TQCString & path, TDEIO::UDSEntry & entry, - short int details, bool withACL ); + bool createUDSEntry( const TQString & filename, const TQCString & path, const TQString & absPath, + TDEIO::UDSEntry & entry, short int details, bool withACL ); int setACL( const char *path, mode_t perm, bool _directoryDefault ); - + TQString getUserName( uid_t uid ); TQString getGroupName( gid_t gid ); |